blob: 733844de7153c2ea81ec912d9bdb2856c2abe5ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  | 
export const description = `static wiki-wide content pages specified in data`;
// Static pages are written in the wiki's data folder and contain content and
// basic page metadata. They're used for a variety of purposes, such as an
// "about" page, a changelog, links to places beyond the wiki, and so on.
export function targets({wikiData}) {
  return wikiData.staticPageData;
}
export function pathsForTarget(staticPage) {
  return [
    {
      type: 'page',
      path: ['staticPage', staticPage.directory],
      absoluteLinks: staticPage.absoluteLinks,
      contentFunction: {
        name: 'generateStaticPage',
        args: [staticPage],
      },
    },
  ];
}
  |