This repository was archived by the owner on Aug 2, 2020. It is now read-only.
forked from jem/jemdoc
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmenu.jemdoc
More file actions
executable file
·49 lines (40 loc) · 1.41 KB
/
Copy pathmenu.jemdoc
File metadata and controls
executable file
·49 lines (40 loc) · 1.41 KB
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
# jemdoc: menu{MENU}{menu.html}
= jemdoc -- add a menu
jemdoc provides an easy way to add a `menu' like the one you see at the left of
this page. You should create a file called +MENU+, for example, in the current
directory. This website's +MENU+ looks something like this:
~~~
{}{}
jemdoc
home [index.html]
download [download.html]
revision history [revision.html]
contact [contact.html]
user's guide
cheat sheet [cheatsheet.html]
using [using.html]
goodies
add a menu [menu.html]
other stuff [stuff.html]
~~~
To use the menu, start the first line of /each/ source file with a special
comment like this one:
~~~
{}{}
# jemdoc: menu{MENU}{index.html}
~~~
(Replace +index.html+ with the name of the relevant html page.) This will add a
menu from the file called +MENU+, and underline and darken the menu entry
corresponding to +index.html+.
== Relative paths
Optionally, include a +prefix+ which instructs jemdoc where the root of the menu
is located relative to a particular page.
~~~
{}{}
# jemdoc: menu{MENU}{pageinsubdir.html}{prefix}
~~~
== A note on menu widths
jemdoc will create menu entries that do not wrap. If you have a particularly
long title, or menu item, insert manual linebreaks using +\\++n+ in your
MENU file. Multi-line menu items will (by default) have their second and
subsequent lines slightly indented.