forked from freemarker/fmpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocs.fmpp
132 lines (120 loc) · 4.19 KB
/
docs.fmpp
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<#--
FMPP command-line tool coniguration file, used by the FMPP Ant build
"fmppgdoc" task (FMPP Generated parts of the DOCumentation).
Note that normally you should use the fmpp Ant task in Ant builds, but this
is an exceptional situation, because of the class loading issues caused by
that we (re)build fmpp.jar, and also because documentation building should
work without installing FMPP for Ant.
-->
sourceRoot: src/docs
outputRoot: build/docs
logFile: build/docs.fmpp.log
turns: [turn(2, **/*_T2.*), turn(3, **/*_T3.*)]
removePostfixes: [_T2, _T3]
modes: [
# Information for FMPP developers:
ignore(**/README-BUILD.txt)
# Saved IcoMoon App selection - not used for anything:
ignore(style/fonts/selection.json)
# LESS file go through LESS to CSS conversion before FMPP:
ignore(style/*.less)
copy(style/fonts/**)
]
borders: [
border(
'<#include "/include/site.ftl"><#escape x as x?html>', '</#escape>'
**/*.html
)
]
data: {
basedir: eval('System.getProperties().getProperty("fmpp.home")')
license: text(../../LICENSE.txt)
html: htmlUtils()
stdSettings: eval('
Map res = new HashMap();
Iterator it = fmpp.setting.Settings.getStandardSettingNames();
while (it.hasNext()) {
res.put(it.next(), "");
}
return res;
')
online: false
# If you modify "fmppWebsite", also check src/main/ for references!
fmppWebsite: 'http://fmpp.sourceforge.net/'
fmppBugTracker: 'https://sourceforge.net/p/fmpp/bugs/'
freemarkerWebsite: 'https://freemarker.apache.org/'
freemarkerManualUrl: 'https://freemarker.apache.org/docs/'
freemarkerBugTracker: 'https://sourceforge.net/p/freemarker/bugs/'
# Files described with hashes are auto-generated Table of Contents pages.
# Other entries are already existing HTML pages, that must use <@page> directive.
manualFiles:
[{title:"FMPP Manual", file:manual.html,
preToc: '<p><b>Updated for FMPP ${pp.version}
(requires <a href="http://freemarker.org">FreeMarker</a>
${pp.freemarkerVersion} or later compatible)</b>
<p><i>Note: The FMPP Manual only covers the framework that FMPP builds around FreeMarker.
FreeMarker is a template engine that is independent of FMPP.
For using FMPP you need to <@fma>know the FreeMarker template language</@fma>.</i></p>'
postToc: '<@reportBugs />'
keywords: 'manual, help, guide, tutorial, documentation'}
installing.html
[{title:Basics, file:basics.html}
qtour.html
overview.html
]
[{title:"Core Details", file:details.html}
settings.html
configfile.html
pphash.html
dataloader.html
]
[{title:Front-ends, file:frontends.html}
commandline.html
ant.html
writefrontend.html
]
[{title:"Languages (formats) used", file:languages.html}
tdd.html
pathpattern.html
ftl.html
bsh.html
properties.html
]
[{title:Miscellaneous, file:miscellaneous.html}
versions.html
reportbug.html
tips.html
license.html
]
]
# Flat list of manual files in ToC order.
flattenedManualFiles: eval(r'
flatten(List src, List dst) {
ln = src.size();
for (int i = 0; i < ln; i++) {
o = src.get(i);
if (o instanceof List) {
flatten(o, dst);
} else {
if (o instanceof Map) {
o2 = o.get("file");
if (o2 == null) {
throw new Exception("Key \"file\" is missing from hash " + o);
}
o = o2;
}
dst.add(o);
}
}
}
ffs = new ArrayList();
flatten(mfs, ffs);
return ffs;
',
{mfs:get(manualFiles)}
)
}
freemarkerIncompatibleImprovements: 2.3.21
skipUnchanged: static
timeZone: GMT
quiet