/
config.js
48 lines (45 loc) · 1.02 KB
/
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
const path = require("path");
const components = require('../custom-elements.json');
const getComponents = () => components.tags.map(({ tag }) => {
return `/components/${tag.substr(3)}/`;
});
module.exports = {
title: 'Crayons',
base: '/',
description: 'Use freshworks components to build apps',
dest: 'docs-dist',
docsDir: 'src',
head: [
['script', { type: 'module', src: '/www/build/crayons.esm.js' }],
['script', { nomodule:'', src: '/www/build/crayons.js' }],
],
themeConfig: {
lastUpdated: 'Last Updated',
smoothScroll: true,
sidebar: [
{
title: 'Introduction',
collapsable: false,
sidebarDepth: 1,
children: [
'/components/',
]
},
{
title: 'Components',
collapsable: false,
sidebarDepth: 1,
children: getComponents()
}
],
},
plugins: [
[
"live",
{
layout: path.resolve(__dirname, "./previewLayout.vue")
}
],
['@vuepress/active-header-links']
]
}