-
Notifications
You must be signed in to change notification settings - Fork 411
Expand file tree
/
Copy pathcomponent-docs.config.js
More file actions
44 lines (40 loc) · 917 Bytes
/
component-docs.config.js
File metadata and controls
44 lines (40 loc) · 917 Bytes
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
const path = require('path');
// pages structure and order
const pages = [
'docs/HOME.mdx',
'docs/GET_STARTED.md',
'docs/BASICS.md',
'docs/BENEFITS.md',
'---',
'docs/API.md',
'docs/CONFIGURATION.md',
'docs/CLI.md',
'docs/BUNDLERS_INTEGRATION.md',
'docs/LINTING.md',
'docs/CRITICAL_CSS.md',
'docs/DYNAMIC_STYLES.md',
'docs/THEMING.md',
'docs/HOW_IT_WORKS.md',
'---',
'docs/2.0_MIGRATION_GUIDE.md',
];
const extMap = {
md: 'md',
mdx: 'mdx',
js: 'component',
};
module.exports = {
port: 3031,
root: path.resolve(__dirname),
assets: ['website/assets'],
logo: '/assets/linaria-logo-colored.svg',
output: 'docs-public',
pages: pages.map((page) => {
if (page === '---') return { type: 'separator' };
return {
type: extMap[path.extname(page).substr(1)],
file: path.resolve(__dirname, page),
};
}),
title: '[title] - Linaria Documentation',
};