Skip to content

Commit

Permalink
feat: add en version
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongyunWan committed Oct 15, 2024
1 parent 6815955 commit 1b8fa15
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions docusaurus/docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type {Options as DocsOptions} from '@docusaurus/plugin-content-docs';
import type * as Preset from '@docusaurus/preset-classic';

const config: Config = {
Expand Down Expand Up @@ -31,8 +32,8 @@ const config: Config = {
{
docs: {
sidebarPath: './sidebars.ts',
path: '../docs',
routeBasePath: '/',
path: '../docs/zh-CN/source',
routeBasePath: 'zh',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
},
Expand All @@ -43,6 +44,21 @@ const config: Config = {
],
],

plugins: [
[
'content-docs',
{
id: 'en',
path: '../docs/en-US/source',
routeBasePath: 'en',
editCurrentVersion: true,
sidebarPath: './sidebars.ts',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
} satisfies DocsOptions,
]
],

themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
Expand Down

0 comments on commit 1b8fa15

Please sign in to comment.