Repository navigation
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
149 lines (140 loc) · 4.52 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
149 lines (140 loc) · 4.52 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "SCI for Web Guidelines",
tagline:
"Explanatory guidance, worked examples and data-source references for implementers calculating an SCI for Web score. Companion to the SCI for Web Specification; not itself normative.",
favicon: "img/favicon.svg",
// TODO(domain): confirm the production domain before the first deployment.
url: "https://sci-for-web-guidelines.greensoftware.foundation/",
baseUrl: "/",
organizationName: "Green-Software-Foundation",
projectName: "sci-for-web-guidelines",
trailingSlash: false,
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
editUrl:
"https://github.com/Green-Software-Foundation/sci-for-web-guidelines/tree/web",
},
blog: false,
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: "SCI for Web Guidelines",
logo: {
alt: "SCI for Web Guidelines Logo",
src: "img/logo.svg",
},
items: [
{
type: "doc",
docId: "index",
position: "left",
label: "Guidelines",
},
{
href: "https://github.com/Green-Software-Foundation/sci-for-web-guidelines",
label: "GitHub",
position: "right",
},
{
type: "html",
position: "right",
value:
'<a href="https://greensoftware.foundation/" target="_blank" rel="noopener noreferrer" class="navbar__link" style="display:flex;align-items:center;gap:6px;"><span style="font-size:0.8rem;">a project of</span><img src="/img/gsf-logo.svg" alt="Green Software Foundation" style="height:14px;width:auto;" /></a>',
},
],
},
footer: {
style: "dark",
links: [
{
title: "Links",
items: [
{
label: "Github",
href: "https://github.com/Green-Software-Foundation/sci-for-web-guidelines",
},
{
label: "SCI for Web Specification",
// TODO(spec-url): replace with the published SCI for Web Specification URL.
href: "#",
},
{
label: "ISO/IEC 21031:2024 (SCI)",
href: "https://www.iso.org/standard/86612.html",
},
],
},
{
title: "Legal",
items: [
{
label: "Trademark Policy",
href: "https://greensoftware.foundation/policy/trademark",
},
{
label: "Terms of Use",
href: "https://greensoftware.foundation/terms-of-use",
},
{
label: "Privacy Policy",
href: "https://greensoftware.foundation/privacy-policy",
},
],
},
{
title: "GSF Info",
items: [
{
label: "Green Software Foundation",
href: "https://greensoftware.foundation/",
},
{
label: "LinkedIn",
href: "https://www.linkedin.com/company/green-software-foundation/",
},
{
label: "Twitter / X",
href: "https://twitter.com/GrnSoftwareFdn",
},
],
},
],
logo: {
alt: "Green Software Foundation",
src: "img/gsf-footer-mark.svg",
href: "https://greensoftware.foundation/",
width: 48,
},
copyright: `Copyright © ${new Date().getFullYear()} Green Software Foundation. Content licensed CC-BY-4.0, code licensed MIT.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;