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" ;
66
77const 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" ,
1112
1213 // Set the production url of your site here
13- url : ' https://graphicsprogramming.github.io/' ,
14+ url : " https://graphicsprogramming.github.io/" ,
1415 // Set the /<baseUrl>/ pathname under which your site is served
1516 // For GitHub pages deployment, it is often '/<projectName>/'
16- baseUrl : '/' ,
17+ baseUrl : "/" ,
1718
1819 // GitHub pages deployment config.
19- organizationName : ' GraphicsProgramming' ,
20- projectName : ' blog' ,
21- deploymentBranch : ' gh-pages' ,
20+ organizationName : " GraphicsProgramming" ,
21+ projectName : " blog" ,
22+ deploymentBranch : " gh-pages" ,
2223 trailingSlash : false ,
2324
24- onBrokenLinks : ' warn' ,
25- onBrokenMarkdownLinks : ' warn' ,
25+ onBrokenLinks : " warn" ,
26+ onBrokenMarkdownLinks : " warn" ,
2627
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+ ] ,
3036
3137 // Even if you don't use internationalization, you can use this field to set
3238 // useful metadata like html lang. For example, if your site is Chinese, you
3339 // may want to replace "en" with "zh-Hans".
3440 i18n : {
35- defaultLocale : 'en' ,
36- locales : [ 'en' ] ,
41+ defaultLocale : "en" ,
42+ locales : [ "en" ] ,
3743 } ,
3844 stylesheets : [
3945 {
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" ,
4248 integrity :
43- ' sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+' ,
44- crossorigin : ' anonymous' ,
45- }
49+ " sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" ,
50+ crossorigin : " anonymous" ,
51+ } ,
4652 ] ,
4753 presets : [
4854 [
49- ' classic' ,
55+ " classic" ,
5056 {
5157 docs : {
52- routeBasePath : ' docs' ,
53- sidebarPath : ' ./sidebars.ts' ,
58+ routeBasePath : " docs" ,
59+ sidebarPath : " ./sidebars.ts" ,
5460 } ,
5561 blog : {
5662 showLastUpdateTime : true ,
5763 showLastUpdateAuthor : true ,
5864 showReadingTime : true ,
5965 feedOptions : {
60- type : [ ' rss' , ' atom' ] ,
66+ type : [ " rss" , " atom" ] ,
6167 xslt : true ,
6268 } ,
6369 // Remove this to remove the "edit this page" links.
64- editUrl :
65- 'https://github.com/GraphicsProgramming/blog' ,
70+ editUrl : "https://github.com/GraphicsProgramming/blog" ,
6671 // 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" ,
7075 //routeBasePath: '/',
71- blogSidebarCount : ' ALL' ,
76+ blogSidebarCount : " ALL" ,
7277 remarkPlugins : [ remarkMath ] ,
7378 rehypePlugins : [ rehypeKatex ] ,
7479 } ,
7580 theme : {
76- customCss : ' ./src/css/custom.css' ,
81+ customCss : " ./src/css/custom.css" ,
7782 } ,
7883 sitemap : {
79- changefreq : ' always'
80- }
84+ changefreq : " always" ,
85+ } ,
8186 } satisfies Preset . Options ,
8287 ] ,
8388 ] ,
8489
8590 themeConfig : {
8691 colorMode : {
87- defaultMode : ' dark' ,
92+ defaultMode : " dark" ,
8893 respectPrefersColorScheme : true ,
8994 } ,
90- image : ' img/social-embed.png' ,
95+ image : " img/social-embed.png" ,
9196 navbar : {
92- title : ' Graphics Programming' ,
97+ title : " Graphics Programming" ,
9398 logo : {
94- alt : ' Graphics Programming' ,
95- src : ' img/gp-discord-logo.webp' ,
99+ alt : " Graphics Programming" ,
100+ src : " img/gp-discord-logo.webp" ,
96101 } ,
97102 items : [
98103 {
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" ,
102113 } ,
103114 {
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" ,
108119 } ,
109120 {
110- type : 'docSidebar' ,
111- sidebarId : 'communityProjects' ,
112- position : 'left' ,
113- label : 'Community Projects'
114- }
121+ to : "/webring" ,
122+ label : "Webring" ,
123+ position : "left" ,
124+ } ,
115125 ] ,
116126 } ,
117127 footer : {
118- style : ' dark' ,
128+ style : " dark" ,
119129 links : [
120130 {
121- title : ' Community' ,
131+ title : " Community" ,
122132 items : [
123133 {
124- label : ' Discord' ,
125- href : ' https://discord.com/invite/graphicsprogramming' ,
134+ label : " Discord" ,
135+ href : " https://discord.com/invite/graphicsprogramming" ,
126136 } ,
127137 {
128- label : ' YouTube' ,
129- href : ' https://www.youtube.com/@graphicsprogramming9074' ,
138+ label : " YouTube" ,
139+ href : " https://www.youtube.com/@graphicsprogramming9074" ,
130140 } ,
131141 {
132- label : ' Twitter' ,
133- href : ' https://x.com/i/communities/1500963350825472000'
134- }
142+ label : " Twitter" ,
143+ href : " https://x.com/i/communities/1500963350825472000" ,
144+ } ,
135145 ] ,
136146 } ,
137147 {
138- title : ' More' ,
148+ title : " More" ,
139149 items : [
140150 {
141- label : ' Blog' ,
142- to : ' https://graphics-programming.org/' ,
151+ label : " Blog" ,
152+ to : " https://graphics-programming.org/" ,
143153 } ,
144154 {
145- label : ' GitHub' ,
146- href : ' https://github.com/GraphicsProgramming' ,
155+ label : " GitHub" ,
156+ href : " https://github.com/GraphicsProgramming" ,
147157 } ,
148158 ] ,
149159 } ,
@@ -153,9 +163,7 @@ const config: Config = {
153163 prism : {
154164 theme : prismThemes . duotoneLight ,
155165 darkTheme : prismThemes . duotoneDark ,
156- additionalLanguages : [
157- 'glsl'
158- ]
166+ additionalLanguages : [ "glsl" ] ,
159167 } ,
160168 } satisfies Preset . ThemeConfig ,
161169} ;
0 commit comments