forked from DTLab-LabCN/DTT-Docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
101 lines (89 loc) · 3.12 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
import {themes as prismThemes} from 'prism-react-renderer';
// Configuration also set according to:
// https://docusaurus.io/docs/deployment#deploying-to-github-pages
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'DTT Documentation',
tagline: 'Digital Trust Testing at your fingertips.',
favicon: 'img/DTLab-Logo-RGB-V.svg',
// Set the production url of your site here
// url: 'https://dtt.docs.dtlab-labcn.app',
// Use environnment variable to keep code identical in the case of
// different source repositories
url: process.env.DTT_DOCS_URL,
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: process.env.DTT_DOCS_BASE_PATH,
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
// This should be set by the environment variable ORGANIZATION_NAME
// organizationName: 'DTLab-LabCN',
// For our way of working, either 'DTT-Docs' or 'DTT-Docs-staging'
// This should be set by the environment variable PROJECT_NAME
// projectName: // Usually your repo name.
// This should be configured as the default deployment branch in both
// DTT-Docs and DTT-Docs-staging repository
// Warning: could be overriden by the DEPLOYMENT_BRANCH environment variable
deploymentBranch : 'gh-pages',
// According to
// https://github.com/slorber/trailing-slash-guide/blob/main/docs/Hosting-Providers.md#github-pages
trailingSlash: false,
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: './sidebars.js',
routeBasePath: '/', // Serve the docs at the site's root
},
theme: {
customCss: './custom.css',
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
// image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'DTT-Docs',
logo: {
alt: 'DTLab Logo',
src: 'img/DTLab-Logo-RGB-V.svg',
},
items: [
{
href: 'https://dtlab-labcn.org',
label: 'DTLab-LabCN',
position: 'right',
},
],
},
footer: {
style: 'light',
copyright: `Copyright © ${new Date().getFullYear()} DTLab.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),
};
export default config;