diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 1358234..b84224f 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -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', @@ -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, + }, + }, ], ], diff --git a/package-lock.json b/package-lock.json index 62d5eee..1c60a26 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,21 +9,22 @@ "version": "1.0.0", "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.0", - "clsx": "^2.0.0", + "@mdx-js/react": "^3.0.1", + "clsx": "^2.1.1", "docusaurus-plugin-image-zoom": "^2.0.0", - "prism-react-renderer": "^2.3.0", - "react": "^18.0.0", - "react-dom": "^18.0.0" + "prism-react-renderer": "^2.3.1", + "react": "^18.3.1", + "react-dom": "^18.3.1" }, "devDependencies": { "@docusaurus/module-type-aliases": "3.3.2", "@docusaurus/tsconfig": "3.3.2", "@docusaurus/types": "3.3.2", "npm-check-updates": "^16.14.20", - "typescript": "~5.2.2" + "typescript": "~5.4.5" }, "engines": { "node": ">=18.0" @@ -16167,9 +16168,9 @@ } }, "node_modules/typescript": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", - "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", + "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/package.json b/package.json index b86f372..5a6ccb2 100644 --- a/package.json +++ b/package.json @@ -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",