-
Notifications
You must be signed in to change notification settings - Fork 0
/
static.config.js
40 lines (36 loc) · 970 Bytes
/
static.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
import path from 'path'
const DOCS_PATH = path.join(__dirname, 'docs');
const siteRoot = process.env.SITE_ROOT || '/';
const basePath = process.env.BASE_PATH || '/';
export default {
entry: path.join(__dirname, 'src', 'index.tsx'),
basePath,
siteRoot,
getRoutes: async () => {
return [
]
},
plugins: [
'react-static-plugin-typescript',
'react-static-plugin-styled-components',
[
'@riboseinc/react-static-plugin-aperis-doc-pages',
{
sourcePath: DOCS_PATH,
urlPrefix: '',
title: "Paneron developer documentation",
headerBanner: 'header-banner.svg',
footerBanner: 'footer-banner.svg',
footerBannerLink: "https://open.ribose.com/",
}
],
require.resolve('react-static-plugin-reach-router'),
require.resolve('react-static-plugin-sitemap'),
[
'react-static-plugin-file-watch-reload',
{
paths: [`${DOCS_PATH}/**/*`],
},
],
],
}