-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
128 lines (115 loc) · 3.73 KB
/
docusaurus.config.ts
File metadata and controls
128 lines (115 loc) · 3.73 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
import { themes as prismThemes } from 'prism-react-renderer';
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'House of Stake',
tagline: "HoS is the NEAR ecosystem's social governance platform",
favicon: '/img/favicon.ico',
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
future: {
v4: true, // Improve compatibility with the upcoming Docusaurus v4
},
// Set the production url of your site here
url: process.env.SITE_URL || 'https://houseofstake.github.io',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: process.env.BASE_URL || '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'houseofstake', // Usually your GitHub org/user name.
projectName: 'houseofstake.org', // Usually your repo name.
onBrokenLinks: 'throw',
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'],
},
presets: [
[
'classic',
{
docs: {
routeBasePath: 'docs', // Serve docs at /docs
sidebarPath: './sidebars.ts',
editUrl:
'https://github.com/houseofstake/houseofstake.org/tree/main/',
breadcrumbs: true, // Enable breadcrumbs
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
blog: {
showReadingTime: true,
blogTitle: 'House of Stake Blog',
blogDescription:
'Latest updates and insights from the NEAR House of Stake community',
postsPerPage: 10,
blogSidebarTitle: 'Recent posts',
blogSidebarCount: 5,
editUrl:
'https://github.com/houseofstake/houseofstake.org/tree/main/',
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
theme: {
customCss: './src/css/global.css',
},
} satisfies Preset.Options,
],
],
plugins: [
require.resolve('./plugins/homepage-content'),
[
'docusaurus-plugin-llms',
{
generateLLMsTxt: true,
generateLLMsFullTxt: true,
docsDir: 'docs',
includeBlog: true,
excludeImports: true,
title: 'House of Stake',
},
],
],
headTags: [
// Add font loading script to wait for fonts before showing page
{
tagName: 'script',
attributes: {
src: '/scripts/font-loader.js',
async: 'false',
},
},
],
stylesheets: [
{
href: 'https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/katex.min.css',
type: 'text/css',
integrity:
'sha384-5TcZemv2l/9On385z///+d7MSYlvIEw9FuZTIdZ14vJLqWphw7e7ZPuOiCHJcFCP',
crossorigin: 'anonymous',
},
],
themeConfig: {
// Open Graph and social card image - Docusaurus will automatically handle og:image and twitter:image
image: 'img/og-image.jpg',
metadata: [
{ name: 'twitter:card', content: 'summary_large_image' },
{ property: 'og:type', content: 'website' },
],
prism: {
theme: prismThemes.github,
},
colorMode: {
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: false,
},
} satisfies Preset.ThemeConfig,
};
export default config;