This commit is contained in:
teasiu
2022-09-24 04:51:28 +08:00
parent e76d119c29
commit 861d043e96
6 changed files with 13 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
{
"label": "Hi-Openwrt",
"label": "Hi-OP使用指南",
"position": 5,
"link": {
"type": "generated-index"

View File

@@ -1,5 +1,5 @@
{
"label": "NAS Skill",
"label": "NAS 进阶指南",
"position": 4,
"link": {
"type": "generated-index"

View File

@@ -1,5 +1,5 @@
{
"label": "How to Flash STB",
"label": "机顶盒刷机教程",
"position": 2,
"link": {
"type": "generated-index",

View File

@@ -1,5 +1,5 @@
{
"label": "NAS Basic",
"label": "NAS 入门指南",
"position": 3,
"link": {
"type": "generated-index"

View File

@@ -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',

View File

@@ -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() {
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
to={useBaseUrl("docs/intro")}
>
我是小盒子 也是大世界
</Link>
</div>