From fe44fbd2f0f1f73e3f89507fc5b6bb7f86f62ed6 Mon Sep 17 00:00:00 2001 From: teasiu Date: Sat, 17 Sep 2022 16:59:30 +0800 Subject: [PATCH] update --- docusaurus.config.js | 28 ++++++++++++++-------------- sidebars.js | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index cbea7b1..f492660 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -6,9 +6,9 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); /** @type {import('@docusaurus/types').Config} */ const config = { - title: 'My Site', + title: 'histb doc', tagline: 'Dinosaurs are cool', - url: 'https://your-docusaurus-test-site.com', + url: 'https://histb.com', baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', @@ -16,15 +16,15 @@ const config = { // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'facebook', // Usually your GitHub org/user name. - projectName: 'docusaurus', // Usually your repo name. + organizationName: 'teasiu', // Usually your GitHub org/user name. + projectName: 'doc', // Usually your repo name. // Even if you don't use internalization, you can use this field to set useful // metadata like html lang. For example, if your site is Chinese, you may want // to replace "en" with "zh-Hans". i18n: { - defaultLocale: 'en', - locales: ['en'], + defaultLocale: 'zh-cn', + locales: ['zh-cn'], }, presets: [ @@ -57,9 +57,9 @@ const config = { /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ navbar: { - title: 'My Site', + title: 'histb doc', logo: { - alt: 'My Site Logo', + alt: 'histb Logo', src: 'img/logo.svg', }, items: [ @@ -67,11 +67,11 @@ const config = { type: 'doc', docId: 'intro', position: 'left', - label: 'Tutorial', + label: '教程', }, - {to: '/blog', label: 'Blog', position: 'left'}, + {to: '/blog', label: '博客', position: 'left'}, { - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/teasiu/doc', label: 'GitHub', position: 'right', }, @@ -84,7 +84,7 @@ const config = { title: 'Docs', items: [ { - label: 'Tutorial', + label: '教程', to: '/docs/intro', }, ], @@ -110,12 +110,12 @@ const config = { title: 'More', items: [ { - label: 'Blog', + label: '博客', to: '/blog', }, { label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/teasiu/doc', }, ], }, diff --git a/sidebars.js b/sidebars.js index 9ab54c2..366e1cb 100644 --- a/sidebars.js +++ b/sidebars.js @@ -23,7 +23,7 @@ const sidebars = { 'hello', { type: 'category', - label: 'Tutorial', + label: '̳', items: ['tutorial-basics/create-a-document'], }, ],