-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsiteConfig.ts
More file actions
119 lines (116 loc) · 3.86 KB
/
siteConfig.ts
File metadata and controls
119 lines (116 loc) · 3.86 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
// This file is never changed by teaching-dev.
// Use it to override or extend your app configuration.
import {
detailsPluginConfig,
recommendedBeforeDefaultRemarkPlugins
} from './src/siteConfig/markdownPluginConfigs';
import { devModeAccessLocalFS, taskStateOverview } from './src/siteConfig/navbarItems';
import { SiteConfigProvider } from './src/siteConfig/siteConfig';
import detailsPlugin from './src/plugins/remark-details/plugin';
import { PluginOptions } from '@docusaurus/types';
const GIT_COMMIT_SHA = process.env.GITHUB_SHA || Math.random().toString(36).substring(7);
const ADMONITION_CONFIG = {
admonitions: {
keywords: ['aufgabe', 'finding'],
extendDefaults: true
}
};
const getSiteConfig: SiteConfigProvider = () => {
return {
title: 'ICT am Gymnasium Biel-Seeland',
tagline: 'Anleitungen, Tipps und Tricks',
url: 'https://ict.gbsl.website',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'GBSL-Informatik',
projectName: 'ict',
blog: false,
onBrokenLinks: 'warn',
locales: ['de'],
docs: {
...ADMONITION_CONFIG,
routeBasePath: '/',
lastVersion: 'current',
versions: {
current: {
label: 'ICT',
banner: 'none',
badge: false
},
onboarding: {
label: 'Onboarding',
banner: 'none',
badge: false
}
}
},
siteStyles: ['website/css/custom.scss'],
navbarItems: [taskStateOverview, devModeAccessLocalFS],
footer: {
style: 'dark',
links: [
{
items: [
{
label: 'ICT-Website V1 (Legacy)',
href: 'https://ict-v1.gbsl.website'
}
]
},
{
items: [
{
label: 'GBSL Website',
href: 'https://gbsl.ch'
}
]
},
{
items: [
{
label: 'Terminplan',
href: 'https://events.gbsl.website'
}
]
}
],
copyright: `Copyright © ${new Date().getFullYear()} Begleitgruppe DigiTrans - GBSL. <br />
<a class="badge badge--primary" href="https://github.com/GBSL-Informatik/ict-v2/commits/${GIT_COMMIT_SHA}">
ᚶ ${GIT_COMMIT_SHA.substring(0, 7)}
</a>
`
},
tdevConfig: {
excalidraw: {
excalidoc: true
}
},
scripts: [
{
src: 'https://umami.gbsl.website/tell-me.js',
['data-website-id']: process.env.UMAMI_ID,
['data-domains']: 'ict.gbsl.website',
async: true,
defer: true
}
],
beforeDefaultRemarkPlugins: [
...recommendedBeforeDefaultRemarkPlugins.filter((p) => p !== detailsPluginConfig),
[
detailsPlugin,
{
directiveNames: ['details', 'solution'],
classNames: {
details: 'details',
solution: 'solution'
},
defaultLabel: {
solution: 'Lösung'
}
}
]
] as unknown as PluginOptions[],
apiDocumentProviders: [require.resolve('@tdev/page-read-check/register')]
};
};
export default getSiteConfig;