-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
128 lines (125 loc) · 3.71 KB
/
docusaurus.config.js
File metadata and controls
128 lines (125 loc) · 3.71 KB
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
119
120
121
122
123
124
125
126
127
128
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",
headTags: [
{
tagName: "meta",
attributes: {
name: "algolia-site-verification",
content: "272AFA3283E853CB", // Replace with your actual user ID
},
},
],
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/custom.css"), 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/4.x/getting-started", label: "Getting Started", className: "navbar-item-getting-started" },
{ to: "docs/4.x/tutorial/introduction", label: "Tutorial", className: "navbar-item-tutorial" },
{ to: "docs/4.x/topics/introduction/what-is-tradetrust", label: "Topics", className: "navbar-item-topics" },
{
to: "docs/4.x/reference/tradetrust-website/overview",
label: "References",
className: "navbar-item-references",
},
{
to: "https://gallery.tradetrust.io/",
label: "Gallery",
className: "navbar-item-gallery",
},
{ to: "https://toolkit.openattestation.com/", label: "Tools", className: "navbar-item-tools" },
{
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: "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,
indexName: "tradetrust",
algoliaOptions: {},
},
prism: {
theme: require("prism-react-renderer").themes.nightOwl,
},
},
customFields: {
GA_MEASUREMENT_ID,
},
};
module.exports = siteConfig;