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
|
/** @format */
// Static content page specification. (These are static pages coded into the
// wiki data folder, used for a variety of purposes, e.g. wiki info,
// changelog, and so on.)
export function targets({wikiData}) {
return wikiData.staticPageData;
}
export function write(staticPage) {
const page = {
type: 'page',
path: ['staticPage', staticPage.directory],
page: ({html, transformMultiline}) => ({
title: staticPage.name,
stylesheet: staticPage.stylesheet,
main: {
content: html.tag('div',
{class: 'long-content'},
transformMultiline(staticPage.content)),
},
nav: {simple: true},
}),
};
return [page];
}
|