Repository navigation
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
160 lines (148 loc) · 4.9 KB
/
Copy pathdocusaurus.config.ts
File metadata and controls
160 lines (148 loc) · 4.9 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
150
151
152
153
154
155
156
157
158
159
160
import { themes as prismThemes } from 'prism-react-renderer';
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: 'codeuctivity',
tagline: 'Turning Coffee into Code: A Journey of Joyful Creation',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://codeuctivity.cloud',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub Pages redirects /blog/post to /blog/post/, so emit the slash form in links,
// canonicals and the sitemap - otherwise every sitemap entry is a 301.
trailingSlash: true,
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'codeuctivity', // Usually your GitHub org/user name.
projectName: 'codeuctivity.github.io', // Usually your repo name.
onBrokenLinks: 'throw',
markdown: {
hooks: {
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'],
},
// Self-hosted, cookieless Umami analytics. GitHub Pages cannot reverse-proxy the
// script under this origin the way the nginx-served apps do, so it loads directly.
// data-domains keeps local dev and the github.io mirror out of the stats.
scripts: [
{
src: 'https://analytics.codeuctivity.cloud/script.js',
defer: true,
'data-website-id': 'dc19b213-947c-477b-8eb5-4a5816542c18',
'data-domains': 'codeuctivity.cloud',
},
],
// Makes the site installable ("Add to Home screen" / "Install app"): the manifest names
// the app and its icons. There is deliberately no service worker, so the installed app
// needs a connection, like the site itself.
headTags: [
{ tagName: 'link', attributes: { rel: 'manifest', href: '/manifest.webmanifest' } },
{ tagName: 'meta', attributes: { name: 'theme-color', content: '#1b1b1d' } },
{ tagName: 'link', attributes: { rel: 'apple-touch-icon', href: '/img/app/icon-192.png' } },
],
// Catches the browser's install offer for the homepage's "Install app" button.
clientModules: ['./src/clientModules/installPrompt.ts'],
presets: [
[
'classic',
{
// No docs section; the template's tutorial pages were removed.
docs: false,
blog: {
showReadingTime: true,
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
theme: {
customCss: './src/css/custom.css',
},
// Tag, archive, author and pagination pages only list posts. Google reports them as
// "Discovered - currently not indexed", so keep the sitemap to the pages worth indexing.
sitemap: {
ignorePatterns: ['/blog/tags/**', '/blog/archive/', '/blog/authors/**', '/blog/page/**'],
},
} satisfies Preset.Options,
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: true,
},
navbar: {
title: 'codeuctivity',
logo: {
alt: 'codeuctivity Logo',
src: 'img/logo.svg',
},
items: [
{
href: 'https://github.com/codeuctivity',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
links: [
{
title: 'Awesome Stuff',
items: [
{
label: 'More nuget packages',
href: 'https://www.nuget.org/packages?q=Codeuctivity',
},
{
label: 'Buy me a coffee! Do it!',
href: 'https://buymeacoffee.com/stesee',
},
],
},
{
title: 'More cool things',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/codeuctivity',
},
],
},
{
title: 'Even more things',
items: [
{
label: 'NPM Packages',
to: 'https://www.npmjs.com/~codeuctivity',
},
{
label: 'Office document service',
href: 'https://ods.codeuctivity.cloud/',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} codeuctivity`,
},
prism: {
darkTheme: prismThemes.dracula,
theme: prismThemes.github,
},
} satisfies Preset.ThemeConfig,
};
export default config;