1- import { themes as prismThemes } from 'prism-react-renderer' ;
2- import type { Config } from '@docusaurus/types' ;
1+ import { themes as prismThemes } from 'prism-react-renderer' ;
2+ import type { Config } from '@docusaurus/types' ;
33import type * as Preset from '@docusaurus/preset-classic' ;
44
5- // This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
6-
75const config : Config = {
86 title : 'Lake Monitoring System' ,
97 tagline : 'A website for monitoring the water quality of lakes' ,
8+
109 favicon : 'img/icon.ico' ,
1110
12- // Production URL for GitHub Pages
11+ // Set the production url of your site here
1312 url : 'https://nammalakes.github.io/' ,
13+ // Set the /<baseUrl>/ pathname under which your site is served
14+ // For GitHub pages deployment, it is often '/<projectName>/'
15+ baseUrl : '/docs/' ,
1416
15- // Base URL for GitHub Pages deployment (matches repository name)
16- baseUrl : '/NammaLakes/' ,
17-
18- // GitHub Pages deployment configuration
19- organizationName : 'NammaLakes' , // GitHub org/user name
20- projectName : 'NammaLakes' , // Repository name
17+ // GitHub pages deployment config.
18+ // If you aren't using GitHub pages, you don't need these.
19+ organizationName : 'NammaLakes' , // Usually your GitHub org/user name.
20+ projectName : 'docs' , // Usually your repo name.
2121 deploymentBranch : 'gh-pages' ,
22-
22+
2323 onBrokenLinks : 'throw' ,
2424 onBrokenMarkdownLinks : 'warn' ,
2525
26- // Ensures URLs are clean (avoids .html extensions)
27- trailingSlash : false ,
28-
26+ // Even if you don't use internationalization, you can use this field to set
27+ // useful metadata like html lang. For example, if your site is Chinese, you
28+ // may want to replace "en" with "zh-Hans".
2929 i18n : {
3030 defaultLocale : 'en' ,
3131 locales : [ 'en' ] ,
@@ -36,56 +36,33 @@ const config: Config = {
3636 'classic' ,
3737 {
3838 docs : {
39- sidebarPath : require . resolve ( './sidebars.ts' ) ,
40- } ,
41- blog : {
42- showReadingTime : true ,
43- feedOptions : {
44- type : [ 'rss' , 'atom' ] ,
45- xslt : true ,
46- } ,
47- // Useful options to enforce blogging best practices
48- onInlineTags : 'warn' ,
49- onInlineAuthors : 'warn' ,
50- onUntruncatedBlogPosts : 'warn' ,
51- } ,
52- theme : {
53- customCss : require . resolve ( './src/css/custom.css' ) ,
39+ sidebarPath : './sidebars.ts' ,
40+ routeBasePath : '/' ,
5441 } ,
42+ blog : false ,
5543 } satisfies Preset . Options ,
5644 ] ,
5745 ] ,
5846
5947 themeConfig : {
60- // Social preview image
61- image : 'img/docusaurus-social-card.jpg' ,
62-
6348 navbar : {
6449 title : 'NammaLakes' ,
6550 logo : {
6651 alt : 'NammaLakes' ,
6752 src : 'img/nammalakes.png' ,
6853 } ,
69- items : [
70- {
71- type : 'docSidebar' ,
72- sidebarId : 'tutorialSidebar' ,
73- position : 'left' ,
74- label : 'Docs' ,
75- } ,
54+ items : [
7655 {
7756 href : 'https://github.com/NammaLakes' ,
7857 label : 'GitHub' ,
7958 position : 'right' ,
8059 } ,
8160 ] ,
8261 } ,
83-
8462 footer : {
8563 style : 'light' ,
8664 copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } NammaLakes.` ,
8765 } ,
88-
8966 prism : {
9067 theme : prismThemes . github ,
9168 darkTheme : prismThemes . dracula ,
0 commit comments