-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocusaurus.config.js
118 lines (115 loc) · 3.24 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
require("dotenv").config();
const GA_MEASUREMENT_ID = "G-Z4JTBB0GN7";
const siteConfig = {
title: "TradeTrust Documentation",
tagline:
"Integrate TradeTrust framework in your apps to future-ready your digital infrastructure for electronic trade documents.",
url: "https://www.tradetrust.io",
baseUrl: "/",
projectName: "website",
organizationName: "IMDA",
favicon: "img/favicon.svg",
stylesheets: ["https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap"],
plugins: [require.resolve("./docusaurus-plugin/src")], // monkey patch webpack config -> https://docusaurus.io/docs/next/api/plugin-methods/lifecycle-apis#configureWebpack
themes: ["@docusaurus/theme-mermaid"],
markdown: {
mermaid: true,
},
onBrokenLinks: "warn",
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
path: "./docs",
sidebarPath: require.resolve("./sidebars.json"),
sidebarCollapsible: true,
editUrl: "https://github.com/tradetrust/documentation/edit/master/",
lastVersion: 'current',
versions: {
current: {
label: '5.x'
},
},
},
theme: {
customCss: [require.resolve("./src/css/tailwind.css")],
},
gtag: {
trackingID: GA_MEASUREMENT_ID,
},
},
],
],
themeConfig: {
navbar: {
logo: {
alt: "TradeTrust Logo",
src: "img/logo/logo-tt-full.svg",
srcDark: "img/logo/logo-tt-full.svg",
},
items: [
{ to: "docs/getting-started", label: "Getting Started" },
{ to: "docs/tutorial/introduction", label: "Tutorial" },
{ to: "docs/topics/introduction/what-is-tradetrust", label: "Topics" },
{ to: "docs/reference/tradetrust-website/overview", label: "References" },
{
type: 'docsVersionDropdown',
position: 'right',
dropdownActiveClassDisabled: true,
dropdownItemsAfter: [
{
type: 'html',
value: '<hr class="dropdown-separator">',
},
],
},
],
},
footer: {
links: [
{
items: [
{
html: `<a href="https://www.tradetrust.io" target="_blank" rel="noreferrer noopener"><img src="/img/logo/logo-tt-full.svg" alt="TradeTrust Logo" style="max-width: 142px;" /></a>`,
},
],
},
{
title: "Docs",
items: [
{
to: "docs/getting-started",
label: "Getting Started",
},
],
},
{
title: "Source Code",
items: [
{
href: "https://github.com/TradeTrust",
label: "Github",
},
],
},
{},
{},
],
copyright: `Copyright © ${new Date().getFullYear()} TradeTrust`,
},
algolia: {
appId: "6DNGPTCB04",
apiKey: process.env.ALGOLIA_SEARCH_API_KEY || "dummykey",
indexName: "tradetrust",
algoliaOptions: {},
},
prism: {
theme: require("prism-react-renderer").themes.nightOwl,
},
},
customFields: {
GA_MEASUREMENT_ID,
},
};
module.exports = siteConfig;