1
- import { themes as prismThemes } from ' prism-react-renderer' ;
2
- import type { Config } from ' @docusaurus/types' ;
3
- import type * as Preset from ' @docusaurus/preset-classic' ;
4
- import remarkMath from ' remark-math' ;
5
- import rehypeKatex from ' rehype-katex' ;
1
+ import { themes as prismThemes } from " prism-react-renderer" ;
2
+ import type { Config } from " @docusaurus/types" ;
3
+ import type * as Preset from " @docusaurus/preset-classic" ;
4
+ import remarkMath from " remark-math" ;
5
+ import rehypeKatex from " rehype-katex" ;
6
6
7
7
const config : Config = {
8
- title : 'Graphics Programming Discord' ,
9
- tagline : 'Articles, guides, tips and tricks from and for frogs and forgis of the graphics programming discord. This is what we do:' ,
10
- favicon : 'img/favicon.ico' ,
8
+ title : "Graphics Programming Discord" ,
9
+ tagline :
10
+ "Articles, guides, tips and tricks from and for frogs and forgis of the graphics programming discord. This is what we do:" ,
11
+ favicon : "img/favicon.ico" ,
11
12
12
13
// Set the production url of your site here
13
- url : ' https://graphicsprogramming.github.io/' ,
14
+ url : " https://graphicsprogramming.github.io/" ,
14
15
// Set the /<baseUrl>/ pathname under which your site is served
15
16
// For GitHub pages deployment, it is often '/<projectName>/'
16
- baseUrl : '/' ,
17
+ baseUrl : "/" ,
17
18
18
19
// GitHub pages deployment config.
19
- organizationName : ' GraphicsProgramming' ,
20
- projectName : ' blog' ,
21
- deploymentBranch : ' gh-pages' ,
20
+ organizationName : " GraphicsProgramming" ,
21
+ projectName : " blog" ,
22
+ deploymentBranch : " gh-pages" ,
22
23
trailingSlash : false ,
23
24
24
- onBrokenLinks : ' warn' ,
25
- onBrokenMarkdownLinks : ' warn' ,
25
+ onBrokenLinks : " warn" ,
26
+ onBrokenMarkdownLinks : " warn" ,
26
27
27
- plugins : [ [ require . resolve ( 'docusaurus-lunr-search' ) , {
28
- languages : [ 'en' ] // language codes
29
- } ] ] ,
28
+ plugins : [
29
+ [
30
+ require . resolve ( "docusaurus-lunr-search" ) ,
31
+ {
32
+ languages : [ "en" ] , // language codes
33
+ } ,
34
+ ] ,
35
+ ] ,
30
36
31
37
// Even if you don't use internationalization, you can use this field to set
32
38
// useful metadata like html lang. For example, if your site is Chinese, you
33
39
// may want to replace "en" with "zh-Hans".
34
40
i18n : {
35
- defaultLocale : 'en' ,
36
- locales : [ 'en' ] ,
41
+ defaultLocale : "en" ,
42
+ locales : [ "en" ] ,
37
43
} ,
38
44
stylesheets : [
39
45
{
40
- href :
' https://cdn.jsdelivr.net/npm/[email protected] /dist/katex.min.css' ,
41
- type : ' text/css' ,
46
+ href :
" https://cdn.jsdelivr.net/npm/[email protected] /dist/katex.min.css" ,
47
+ type : " text/css" ,
42
48
integrity :
43
- ' sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+' ,
44
- crossorigin : ' anonymous' ,
45
- }
49
+ " sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" ,
50
+ crossorigin : " anonymous" ,
51
+ } ,
46
52
] ,
47
53
presets : [
48
54
[
49
- ' classic' ,
55
+ " classic" ,
50
56
{
51
57
docs : {
52
- routeBasePath : ' docs' ,
53
- sidebarPath : ' ./sidebars.ts' ,
58
+ routeBasePath : " docs" ,
59
+ sidebarPath : " ./sidebars.ts" ,
54
60
} ,
55
61
blog : {
56
62
showLastUpdateTime : true ,
57
63
showLastUpdateAuthor : true ,
58
64
showReadingTime : true ,
59
65
feedOptions : {
60
- type : [ ' rss' , ' atom' ] ,
66
+ type : [ " rss" , " atom" ] ,
61
67
xslt : true ,
62
68
} ,
63
69
// Remove this to remove the "edit this page" links.
64
- editUrl :
65
- 'https://github.com/GraphicsProgramming/blog' ,
70
+ editUrl : "https://github.com/GraphicsProgramming/blog" ,
66
71
// Useful options to enforce blogging best practices
67
- onInlineTags : ' warn' ,
68
- onInlineAuthors : ' warn' ,
69
- onUntruncatedBlogPosts : ' warn' ,
72
+ onInlineTags : " warn" ,
73
+ onInlineAuthors : " warn" ,
74
+ onUntruncatedBlogPosts : " warn" ,
70
75
//routeBasePath: '/',
71
- blogSidebarCount : ' ALL' ,
76
+ blogSidebarCount : " ALL" ,
72
77
remarkPlugins : [ remarkMath ] ,
73
78
rehypePlugins : [ rehypeKatex ] ,
74
79
} ,
75
80
theme : {
76
- customCss : ' ./src/css/custom.css' ,
81
+ customCss : " ./src/css/custom.css" ,
77
82
} ,
78
83
sitemap : {
79
- changefreq : ' always'
80
- }
84
+ changefreq : " always" ,
85
+ } ,
81
86
} satisfies Preset . Options ,
82
87
] ,
83
88
] ,
84
89
85
90
themeConfig : {
86
91
colorMode : {
87
- defaultMode : ' dark' ,
92
+ defaultMode : " dark" ,
88
93
respectPrefersColorScheme : true ,
89
94
} ,
90
- image : ' img/social-embed.png' ,
95
+ image : " img/social-embed.png" ,
91
96
navbar : {
92
- title : ' Graphics Programming' ,
97
+ title : " Graphics Programming" ,
93
98
logo : {
94
- alt : ' Graphics Programming' ,
95
- src : ' img/gp-discord-logo.webp' ,
99
+ alt : " Graphics Programming" ,
100
+ src : " img/gp-discord-logo.webp" ,
96
101
} ,
97
102
items : [
98
103
{
99
- to : '/blog' ,
100
- label : 'Blog' ,
101
- position : 'left'
104
+ to : "/blog" ,
105
+ label : "Blog" ,
106
+ position : "left" ,
107
+ } ,
108
+ {
109
+ type : "docSidebar" ,
110
+ sidebarId : "discordServer" ,
111
+ position : "left" ,
112
+ label : "Discord Server" ,
102
113
} ,
103
114
{
104
- type : ' docSidebar' ,
105
- sidebarId : 'discordServer' ,
106
- position : ' left' ,
107
- label : 'Discord Server' ,
115
+ type : " docSidebar" ,
116
+ sidebarId : "communityProjects" ,
117
+ position : " left" ,
118
+ label : "Community Projects" ,
108
119
} ,
109
120
{
110
- type : 'docSidebar' ,
111
- sidebarId : 'communityProjects' ,
112
- position : 'left' ,
113
- label : 'Community Projects'
114
- }
121
+ to : "/webring" ,
122
+ label : "Webring" ,
123
+ position : "left" ,
124
+ } ,
115
125
] ,
116
126
} ,
117
127
footer : {
118
- style : ' dark' ,
128
+ style : " dark" ,
119
129
links : [
120
130
{
121
- title : ' Community' ,
131
+ title : " Community" ,
122
132
items : [
123
133
{
124
- label : ' Discord' ,
125
- href : ' https://discord.com/invite/graphicsprogramming' ,
134
+ label : " Discord" ,
135
+ href : " https://discord.com/invite/graphicsprogramming" ,
126
136
} ,
127
137
{
128
- label : ' YouTube' ,
129
- href : ' https://www.youtube.com/@graphicsprogramming9074' ,
138
+ label : " YouTube" ,
139
+ href : " https://www.youtube.com/@graphicsprogramming9074" ,
130
140
} ,
131
141
{
132
- label : ' Twitter' ,
133
- href : ' https://x.com/i/communities/1500963350825472000'
134
- }
142
+ label : " Twitter" ,
143
+ href : " https://x.com/i/communities/1500963350825472000" ,
144
+ } ,
135
145
] ,
136
146
} ,
137
147
{
138
- title : ' More' ,
148
+ title : " More" ,
139
149
items : [
140
150
{
141
- label : ' Blog' ,
142
- to : ' https://graphics-programming.org/' ,
151
+ label : " Blog" ,
152
+ to : " https://graphics-programming.org/" ,
143
153
} ,
144
154
{
145
- label : ' GitHub' ,
146
- href : ' https://github.com/GraphicsProgramming' ,
155
+ label : " GitHub" ,
156
+ href : " https://github.com/GraphicsProgramming" ,
147
157
} ,
148
158
] ,
149
159
} ,
@@ -153,9 +163,7 @@ const config: Config = {
153
163
prism : {
154
164
theme : prismThemes . duotoneLight ,
155
165
darkTheme : prismThemes . duotoneDark ,
156
- additionalLanguages : [
157
- 'glsl'
158
- ]
166
+ additionalLanguages : [ "glsl" ] ,
159
167
} ,
160
168
} satisfies Preset . ThemeConfig ,
161
169
} ;
0 commit comments