Skip to content

Commit

Permalink
automatic sitemap generation first try
Browse files Browse the repository at this point in the history
  • Loading branch information
SCHOUTER committed May 29, 2024
1 parent 6eaa452 commit d35cc5a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
14 changes: 11 additions & 3 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import imageZoom from 'docusaurus-plugin-image-zoom';
import type { Config } from '@docusaurus/types';
import { themes as prismThemes } from 'prism-react-renderer';

const config: Config = {
title: 'BrillianDOCS',
Expand Down Expand Up @@ -36,6 +35,15 @@ const config: Config = {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
'@docusaurus/preset-classic',
{
sitemap: {
cacheTime: 600 * 1000, // 600 sec - cache purge period
changefreq: 'weekly',
priority: 0.5,
trailingSlash: false,
},
},
],
],

Expand Down
19 changes: 10 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"dependencies": {
"@docusaurus/core": "3.3.2",
"@docusaurus/plugin-sitemap": "^3.3.2",
"@docusaurus/preset-classic": "3.3.2",
"@easyops-cn/docusaurus-search-local": "^0.40.1",
"@mdx-js/react": "^3.0.1",
Expand Down

0 comments on commit d35cc5a

Please sign in to comment.