-
Notifications
You must be signed in to change notification settings - Fork 1
/
using.jemdoc
77 lines (62 loc) · 1.63 KB
/
using.jemdoc
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
# jemdoc: menu{MENU}{using.html}
= jemdoc -- running jemdoc
Make sure
[http://www.python.org/ Python] is installed, put jemdoc in your path somewhere,
type in your file, and run
~~~
{}{}
jemdoc index.jemdoc
~~~
This will use a default configuration for the html elements, and create an
+index.html+.
Even simpler, you can omit the extension, and jemdoc will still
process the +index.jemdoc+ file, as in
~~~
{}{}
jemdoc index
~~~
== CSS
You will need to provide a [http://www.w3.org/Style/CSS/ CSS] file on your
server. By default it should be called +jemdoc.css+. Here is an example
[dist/jemdoc.css jemdoc.css] file: download it and place it in the same
directory as your html files. (Or customize it, or start from scratch!)
== Change the configuration
To choose a different output file, use +-o+:
~~~
{}{}
jemdoc -o html/index.html index
~~~
You can specify a different output directory with +-o+:
~~~
{}{}
jemdoc -o html/ index
~~~
This will instead output to +html\/index.html+.
To change the html configuration ([htmlchanges.html details here]), use +-c+:
~~~
{}{}
jemdoc -c mysite.conf index
~~~
Command line options may be combined. For example, the following command will
use +mysite.conf+, reading syntax from +index.jemdoc+ and outputting to
+html\/index.html+:
~~~
{}{}
jemdoc -c mysite.conf -o html/ index
~~~
== Other command line options
To check which version of jemdoc you are using, run the command
~~~
{}{}
jemdoc --version
~~~
To get simple command-line help, you can run +jemdoc+ without arguments, or
~~~
{}{}
jemdoc --help
~~~
To show the html configuration ([htmlchanges.html details here]), run
~~~
{}{}
jemdoc --show-config
~~~