-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocusaurus.config.js
47 lines (42 loc) · 1.07 KB
/
docusaurus.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
41
42
43
44
45
46
47
// @ts-nocheck
try {
require("fs").mkdirSync(__dirname + "/docs", { recursive: true });
} catch (error) {}
const entryPoints = require("fs")
.readdirSync(__dirname + "/src")
.map((x) => __dirname + "/src/" + x);
/** @type {import('typedoc').TypeDocOptions} */
const typedoc = {
tsconfig: __dirname + "/tsconfig.json",
entryPoints: entryPoints,
out: __dirname + "/docs/",
watch: process.env.TYPEDOC_WATCH,
};
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Missing Native JS Functions",
tagline: "A zero-dependecy JavaScript utility library delivering missing native functions 💼",
url: `https://mnjsf.trantlabs.com/`,
deploymentBranch: "gh-pages",
baseUrl: `/`,
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
organizationName: "trantlabs",
projectName: "missing-native-js-functions",
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
path: "./docs/",
routeBasePath: "/",
},
},
],
],
plugins: [["docusaurus-plugin-typedoc", typedoc]],
themeConfig: {
navbar: {},
},
};
module.exports = config;