diff --git a/scripts/build-site.mjs b/scripts/build-site.mjs index b6725f4..3158ff1 100644 --- a/scripts/build-site.mjs +++ b/scripts/build-site.mjs @@ -291,14 +291,18 @@ function renderMarkdown(markdown) { const englishUi = { language: 'en', + homePath: '/', basePath: '/docs', alternateLanguage: 'zh-CN', alternateBasePath: '/docs/zh-CN', alternateLabel: '中文', homeTitle: 'Documentation home', + homeAriaLabel: 'react-native-bs-diff-patch home', skipLabel: 'Skip to documentation', primaryNavigationLabel: 'Primary navigation', playgroundLabel: 'Playground', + toolsLabel: 'Tools', + toolsPath: '/tools/', docsLabel: 'Docs', menuLabel: 'Menu', closeMenuLabel: 'Close', @@ -313,14 +317,18 @@ const englishUi = { const chineseUi = { language: 'zh-CN', + homePath: '/zh-CN/', basePath: '/docs/zh-CN', alternateLanguage: 'en', alternateBasePath: '/docs', alternateLabel: 'English', homeTitle: '文档首页', + homeAriaLabel: 'react-native-bs-diff-patch 中文首页', skipLabel: '跳到文档正文', primaryNavigationLabel: '主导航', - playgroundLabel: 'Playground', + playgroundLabel: '在线实验', + toolsLabel: '工具', + toolsPath: '/zh-CN/tools/', docsLabel: '中文文档', menuLabel: '菜单', closeMenuLabel: '关闭', @@ -391,12 +399,13 @@ function documentationLayout({ slug, title, description, content, items, ui }) {