From 861d043e96519a6450b4e3eb79eb1e583710a6a4 Mon Sep 17 00:00:00 2001 From: teasiu Date: Sat, 24 Sep 2022 04:51:28 +0800 Subject: [PATCH] update --- docs/hiop-skill/_category_.json | 2 +- docs/nas-skill/_category_.json | 2 +- docs/tutorial-basics/_category_.json | 2 +- docs/tutorial-extras/_category_.json | 2 +- docusaurus.config.js | 12 ++++++------ src/pages/index.js | 4 +++- 6 files changed, 13 insertions(+), 11 deletions(-) diff --git a/docs/hiop-skill/_category_.json b/docs/hiop-skill/_category_.json index 35a63d5..0fc669c 100644 --- a/docs/hiop-skill/_category_.json +++ b/docs/hiop-skill/_category_.json @@ -1,5 +1,5 @@ { - "label": "Hi-Openwrt", + "label": "Hi-OP使用指南", "position": 5, "link": { "type": "generated-index" diff --git a/docs/nas-skill/_category_.json b/docs/nas-skill/_category_.json index b30dc0b..19ad8ef 100644 --- a/docs/nas-skill/_category_.json +++ b/docs/nas-skill/_category_.json @@ -1,5 +1,5 @@ { - "label": "NAS Skill", + "label": "NAS 进阶指南", "position": 4, "link": { "type": "generated-index" diff --git a/docs/tutorial-basics/_category_.json b/docs/tutorial-basics/_category_.json index b675393..0454090 100644 --- a/docs/tutorial-basics/_category_.json +++ b/docs/tutorial-basics/_category_.json @@ -1,5 +1,5 @@ { - "label": "How to Flash STB", + "label": "机顶盒刷机教程", "position": 2, "link": { "type": "generated-index", diff --git a/docs/tutorial-extras/_category_.json b/docs/tutorial-extras/_category_.json index 98e6b5d..54fce38 100644 --- a/docs/tutorial-extras/_category_.json +++ b/docs/tutorial-extras/_category_.json @@ -1,5 +1,5 @@ { - "label": "NAS Basic", + "label": "NAS 入门指南", "position": 3, "link": { "type": "generated-index" diff --git a/docusaurus.config.js b/docusaurus.config.js index 20f8c51..1c90b61 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -8,8 +8,8 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); const config = { title: '海思机顶盒 NAS 教程', tagline: '一个极低功耗的 Linux 服务器', - url: 'https://doc.ecoo.top/', - baseUrl: '/', + url: 'https://doc.ecoo.top', + baseUrl: '/docs/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.ico', @@ -60,7 +60,7 @@ const config = { title: 'histb doc', logo: { alt: 'histb Logo', - src: 'img/logo.svg', + src: './img/logo.svg', }, items: [ { @@ -74,7 +74,7 @@ const config = { label: '社区论坛', position: 'left', }, - {to: '/blog', label: '作者博客', position: 'left'}, + {to: './blog', label: '作者博客', position: 'left'}, { href: 'https://github.com/teasiu/doc', label: 'GitHub', @@ -90,7 +90,7 @@ const config = { items: [ { label: '教程', - to: '/docs/intro', + to: './docs/intro', }, ], }, @@ -116,7 +116,7 @@ const config = { items: [ { label: '作者博客', - to: '/blog', + to: './blog', }, { label: 'GitHub', diff --git a/src/pages/index.js b/src/pages/index.js index d960747..2b704b5 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -3,6 +3,7 @@ import clsx from 'clsx'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import Layout from '@theme/Layout'; +import useBaseUrl from "@docusaurus/useBaseUrl"; import HomepageFeatures from '@site/src/components/HomepageFeatures'; import styles from './index.module.css'; @@ -17,7 +18,8 @@ function HomepageHeader() {
+ to={useBaseUrl("docs/intro")} + > 我是小盒子 也是大世界