-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdoczrc.js
67 lines (63 loc) · 1.87 KB
/
doczrc.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
const path = require("path");
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
// https://www.docz.site/documentation/project-configuration
export default {
base: "/rbx",
// unfortnately, "too-many-modules"
// https://github.com/codesandbox/codesandboxer/blob/af013874f5a2f7bb6325c9608597883a8f5061ef/packages/codesandboxer-fs/src/assembleFiles.js#L120
codeSandbox: false,
description:
"The Comprehensive Bulma UI Framework for React. This is a lightweight, yet robust, React framework that enables rapid, beautiful web development.",
files: "**/[^_]*(.docs)?*.mdx",
htmlContext: {
favicon: "/rbx/public/favicon.ico",
},
indexHtml: "src/__docs__/index.html",
modifyBundlerConfig: config => {
config.resolve.alias["src"] = path.join(__dirname, "./src");
config.resolve.plugins = [
new TsconfigPathsPlugin({ configFile: "./tsconfig.json" }),
];
config.entry.app.push("src/index.sass");
config.module.rules.push({
test: /\.s[ac]ss$/,
use: ["style-loader", "css-loader", "sass-loader"],
});
return config;
},
// we manually create them rather than relying on React-Docgen
propsParser: false,
public: "src/__docs__/public",
themeConfig: {
colors: {
white: "#FFFFFF",
grayExtraLight: "#dbdbdb",
grayLight: "#b5b5b5",
gray: "#7a7a7a",
grayDark: "#4a4a4a",
grayExtraDark: "#363636",
dark: "#242424",
negative: "#121212",
blue: "#3273dc",
skyBlue: "#209cee",
primary: "#3273dc",
codeColor: "#ff3860",
codeBg: "#f5f5f5",
sidebarBg: "#f5f5f5",
text: "#4a4a4a",
link: "#3273dc",
},
logo: {
src: "/rbx/public/logo-wide.svg",
width: "150px",
},
styles: {
code: {
fontFamily: "monospace",
padding: "0.25em 0.5em",
},
},
},
title: "rbx",
typescript: true,
};