forked from dlang/dlang.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chm-nav.dd
74 lines (71 loc) · 1.51 KB
/
chm-nav.dd
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
Ddoc
Macros:
DDOC=
[
{
"hook" : "",
"root" : "",
"nav" : [
{"t":"D Programming Language","a":"index.html"},
$(NAVIGATION)
{"t":"Change Log","a":"changelog/index.html"}
]
},
{
"hook" : "Language Reference",
"root" : "",
"nav" : [$(SUBNAV_SPEC)]
},
{
"hook" : "Library Reference",
"root" : "phobos/",
"nav" : [{"t":"Library Reference","a":"index.html"},$(MODULE_MENU)]
},
{
"hook" : "Articles",
"root" : "",
"nav" : [$(SUBNAV_ARTICLES)]
},
{
"hook" : "D-Specific Tools",
"root" : "",
"nav" : [$(SUBNAV_CLI_REFERENCE)]
},
{
"hook" : "Change Log",
"root" : "changelog/",
"nav" : [{"t":"Change Log","a":"index.html"},$(CHANGELOG_VERSIONS)]
},
]
_=
DIVID=$2
B=$0
TT=$0
UL=$0
_LI=$0,
AMP=&
NBSP=
LATEST=
MENU={"t":"$2","a":"$1"},
MENU_W_SUBMENU=[{"t":"$2"},
MENU_W_SUBMENU_END=
MENU_W_SUBMENU_LINK=[{"t":"$2","a":"$1"},
ITEMIZE=$(ITEMS_HELPER $1, $+)],
ITEMS_HELPER = $1$(ITEMS_HELPER $+)
SUBMENU=$(SUBMENU2 $1,$+)],
SUBMENU2={"t":"$2","a":"$1"},
$(SUBMENU3 $+)
SUBMENU3=$(SUBMENU2 $+)
SUBMENU_MANUAL=$0],
SUBMENU_LINK={"t":"$2","a":"$1"},
SUBMENU_LINK_DIVIDER={"t":"$2","a":"$1"},
SUBNAV_TEMPLATE=$0
SUBNAV_HEAD={"t":"$3","a":"$2"},
MODULE=
{"t":"$1","a":"$2$(JOIN_LINE_TAIL $+).html"},
PACKAGE=[$1$(ITEMIZE $+)
PACKAGE_NAME={"t":"$1"},
CHANGELOG_VERSION={"t":"$1","a":"$1.html"},
ESCAPES=/"/\"/
ROOT_DIR=
_=