Skip to content

Commit

Permalink
fix code.json
Browse files Browse the repository at this point in the history
  • Loading branch information
zjy365 committed Aug 27, 2024
1 parent 80b20de commit 75d855a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/website/scripts/sync-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ async function syncDocs () {
path.join(websiteDir, 'i18n/zh-Hans/docusaurus-plugin-content-docs', `version-${version}`)
)

// Copy code.json
await fs.copy(
path.join(rootDir, shortVersion, 'code.json'),
path.join(websiteDir, 'i18n/zh-Hans/docusaurus-plugin-content-docs', `version-${version}`, 'code.json')
)

// Copy sidebar files
const sidebarPaths = [
{
Expand All @@ -63,6 +57,12 @@ async function syncDocs () {
}
}

// Sync code.json
await fs.copy(
path.join(rootDir, '5.0/code.json'),
path.join(websiteDir, 'i18n/zh-Hans/code.json')
)

// Sync blog content
await fs.copy(
path.join(rootDir, 'blog/zh-Hans'),
Expand Down

0 comments on commit 75d855a

Please sign in to comment.