forked from Semantic-Org/Semantic-UI-React
-
Notifications
You must be signed in to change notification settings - Fork 0
/
static.config.js
40 lines (39 loc) · 1.23 KB
/
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
40
import Document from './docs/src/components/Document'
import { getComponentMenu } from './docs/static/utils'
import config from './config'
import pkg from './package'
import getRoutes from './static.routes'
import webpack from './static.webpack'
export default {
Document,
getSiteData: async ({ dev }) => ({
dev,
componentMenu: getComponentMenu(),
pkg: {
description: pkg.description,
name: pkg.name,
},
title: 'Semantic UI React',
versions: {
anchor: require('anchor-js/package.json').version,
babel: {
standalone: require('@babel/standalone/package.json').version,
standaloneEnv: require('@babel/preset-env-standalone/package.json').version,
},
faker: require('faker/package.json').version,
prettier: require('prettier/package.json').version,
propTypes: require('prop-types/package.json').version,
react: require('react/package.json').version,
sui: require('semantic-ui-css/package.json').version,
suir: require('./package.json').version,
},
}),
getRoutes,
paths: {
dist: config.paths.docsDist(),
src: config.paths.docsSrc(),
public: config.paths.docsPublic(),
},
siteRoot: 'https://react.semantic-ui.com',
webpack,
}