aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2016-02-24 04:14:46 -0300
committerMatias Linares <matiaslina@openmailbox.org>2016-02-24 04:14:46 -0300
commitf8bdb18fd92ee60370893cc670fa5094062dbcbd (patch)
treef8fb1ce634a213c80ceff2d1bdacb41d8db7da81 /README.md
parent9b21febff64925a894763cd12f09f1cb49dd3f56 (diff)
downloadssg-f8bdb18fd92ee60370893cc670fa5094062dbcbd.tar.gz
Add options for the output directory.
This commit changes the command line changing the -d flag to -o, and the input directory is passed on $ARGV[1]. Also update readme :)
Diffstat (limited to 'README.md')
-rw-r--r--README.md32
1 files changed, 31 insertions, 1 deletions
diff --git a/README.md b/README.md
index aaded25..87492f9 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,33 @@
# SSG
-Static site generator written in perl.
+Minimal **S**tatic **S**ite **G**enerator written in perl. This software was
+inspired in [sw](https://github.com/jroimartin/sw), a suckless webframework.
+
+## Installation
+
+There's no installation method for now. The *ssh* and *styles.css* should be on the same
+directory, and the result directory will be there as well.
+
+## Usage
+
+ssg [switches] input-directory
+
+where switches can be:
+
+* -v print version and exits
+* -h print this help and exits
+* -o set the input directory (by default site.static/)
+
+By default the output directory is *./site.static/* (on the same directory as
+this program
+
+## Generation + upload
+
+You can automate all the process creating the following script.
+
+ ./ssg -o mysite input-dir
+ rsync -avz mysite/ your.site:/path/to/www
+
+## Author
+
+Matias Linares <matias@deprecated.org>