forked from decred/pi-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoczrc.js
More file actions
29 lines (26 loc) · 693 Bytes
/
doczrc.js
File metadata and controls
29 lines (26 loc) · 693 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
import { css } from "docz-plugin-css";
import { createPlugin } from "docz-core";
import copyFileSync from "fs-copy-file-sync";
const customPlugin = () =>
createPlugin({
onPostBuild: () => {
copyFileSync("./_redirects", "./.docz/dist/_redirects");
},
});
const configs = {
title: "pi-ui",
description: "Politeia UI library",
src: "./src",
wrapper: "src/docs/Wrapper",
plugins: [css({ preprocessor: "postcss", cssmodules: true }), customPlugin()],
themeConfig: {
showPlaygroundEditor: true,
colors: {
primary: "#2970ff",
grayDark: "#3d5873",
grayLight: "#c4cbd2",
grayExtraLight: "#e6eaed",
},
},
};
export default configs;