-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmallery.config.js
66 lines (62 loc) · 1.06 KB
/
mallery.config.js
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
const pkg = require("./package");
let toc = [
{ title: pkg.name, path: "README.md" },
{
path: "installation.md",
title: "Installation",
},
{
path: "usage.md",
title: "Usage",
},
{ title: "Changelog", path: "CHANGELOG.md" },
{ title: "Contributing", path: "CONTRIBUTING.md" },
];
if (pkg.repository && pkg.repository.url) {
toc.push({ title: "Repository", href: pkg.repository.url });
}
toc.push({
path: "examples",
title: "Demo",
children: [
{
path: "test.md",
},
{
path: "readme2.md",
title: "README",
},
{
title: "Hello world",
path: "index.md",
},
{
path: "subfolder2",
},
{
title: "Subfolder",
path: "subfolder",
children: [
{
path: "more-infos.md",
},
],
},
{
title: "Google",
href: "https://google.ch",
},
{
path: "more tests",
},
],
});
module.exports = {
title: pkg.name,
paths: {
src: "./docs",
output: "./site",
public: "./docs/public",
},
toc,
};