-
Notifications
You must be signed in to change notification settings - Fork 6
/
README
81 lines (55 loc) · 1.65 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
simple-static
=============
The simplest static site generator I can think of. Great for documentation.
Based on sw (https://github.com/jroimartin/sw)
Installation
------------
$ make install
Or if you want to specify the installation path
$ make install PREFIX=/usr/local
Configuration
-------------
Copy ss.conf and style.css to your working directory, and edit them to fit your
needs.
A method for converting markdown to html is provided (md2html.awk), but if
you need a more sophisticated markdown processor, you can use something like
sundown (https://github.com/tanoku/sundown). Follow its
installation guide and change MDHANDLER line in your ss.conf file to
sundown, like so:
MDHANDLER="sundown"
Static web generation
---------------------
From your working directory:
$ ss site
Where 'site' is the folder where your website is located.
The static version of the website is created under 'site.static'.
For example, if you want to create a site with a subdirectory for projects, you
make an index page 'index.md' under site/, along with a projects/ subdirectory,
which has its own 'index.md', so that the result is a directory tree that looks
like this:
ss.conf
style.css
site/
index.md
projects/
index.md
simple-static will create this:
site.static/
index.html
projects/
index.html
Generate and Upload
-------------------
The whole process can be automated if you create a Makefile like this in your
working directory:
$ cat Makefile
all:
ss site
rsync -avz site.static/ foo.org:/path/to/wwwroot/
clean:
rm -rf site.static
Original Authors
----------------
Nibble <develsec.org>
pancake <nopcode.org>
Andrew Antle