Update Docusaurus config and dependencies

Changed site URL in docusaurus.config.js, enabled experimental features, and added Bash syntax highlighting. Updated dependencies in package.json to latest versions and added @docusaurus/faster for improved build performance.
This commit is contained in:
Ryan Wang
2025-09-29 12:25:31 +08:00
parent f322870ec3
commit 2ae969e39d
3 changed files with 849 additions and 296 deletions

View File

@@ -8,7 +8,7 @@ const config = {
favicon: '../public/favicon.svg',
// Set the production url of your site here
url: 'https://halo-dev.github.io',
url: 'https://docs.upage.ai',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
@@ -30,6 +30,11 @@ const config = {
locales: ['zh-Hans'],
},
future: {
experimental_faster: true,
v4: true,
},
presets: [
[
'classic',
@@ -121,6 +126,7 @@ const config = {
prism: {
theme: require('prism-react-renderer').themes.github,
darkTheme: require('prism-react-renderer').themes.dracula,
additionalLanguages: ['bash']
},
colorMode: {
defaultMode: 'light',