Skip to content

Commit

Permalink
refactor: update navbar guide menu
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Dec 20, 2023
1 parent 679b8e8 commit 06559c9
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 16 deletions.
15 changes: 14 additions & 1 deletion docs/.vuepress/configs/navbar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,20 @@ import { version } from '../meta.js'
export const navbarEn: NavbarConfig = [
{
text: 'Guide',
link: '/guide/',
children: [
'/guide/introduction.md',
'/guide/getting-started.md',
'/guide/configuration.md',
'/guide/page.md',
'/guide/markdown.md',
'/guide/assets.md',
'/guide/i18n.md',
'/guide/deployment.md',
'/guide/theme.md',
'/guide/plugin.md',
'/guide/bundler.md',
'/guide/migration.md',
],
},
{
text: 'Reference',
Expand Down
15 changes: 14 additions & 1 deletion docs/.vuepress/configs/navbar/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,20 @@ import { version } from '../meta.js'
export const navbarZh: NavbarConfig = [
{
text: '指南',
link: '/zh/guide/',
children: [
'/zh/guide/introduction.md',
'/zh/guide/getting-started.md',
'/zh/guide/configuration.md',
'/zh/guide/page.md',
'/zh/guide/markdown.md',
'/zh/guide/assets.md',
'/zh/guide/i18n.md',
'/zh/guide/deployment.md',
'/zh/guide/theme.md',
'/zh/guide/plugin.md',
'/zh/guide/bundler.md',
'/zh/guide/migration.md',
],
},
{
text: '参考',
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/configs/sidebar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const sidebarEn: SidebarConfig = {
{
text: 'Guide',
children: [
'/guide/README.md',
'/guide/introduction.md',
'/guide/getting-started.md',
'/guide/configuration.md',
'/guide/page.md',
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/configs/sidebar/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const sidebarZh: SidebarConfig = {
{
text: '指南',
children: [
'/zh/guide/README.md',
'/zh/guide/introduction.md',
'/zh/guide/getting-started.md',
'/zh/guide/configuration.md',
'/zh/guide/page.md',
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ actions:
link: /guide/getting-started.html
type: primary
- text: Introduction
link: /guide/
link: /guide/introduction.html
type: secondary
features:
- title: Simplicity First
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions docs/guide/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Take our documentation source files as an example:

<!-- absolute path -->

[Guide](/guide/README.md)
[Guide > Introduction](/guide/introduction.md)
[Config Reference > markdown.links](/reference/config.md#links)

<!-- URL -->
Expand All @@ -70,7 +70,7 @@ Take our documentation source files as an example:
<RouterLink to="/">Home</RouterLink>
<RouterLink to="/reference/config.html">Config Reference</RouterLink>
<RouterLink to="/guide/getting-started.html">Getting Started</RouterLink>
<RouterLink to="/guide/">Guide</RouterLink>
<RouterLink to="/guide/introduction.html">Guide &gt; Introduction</RouterLink>
<RouterLink to="/reference/config.html#links">
Config Reference &gt; markdown.links
</RouterLink>
Expand All @@ -85,7 +85,7 @@ Take our documentation source files as an example:
[Home](../README.md)
[Config Reference](../reference/config.md)
[Getting Started](./getting-started.md)
[Guide](/guide/README.md)
[Guide > Introduction](/guide/introduction.md)
[Config Reference > markdown.links](/reference/config.md#links)
[GitHub](https://github.com)

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/default-theme/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export default {
'/guide/': [
{
text: 'Guide',
children: ['/guide/README.md', '/guide/getting-started.md'],
children: ['/guide/introduction.md', '/guide/getting-started.md'],
},
],
'/reference/': [
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/default-theme/frontmatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ actions:
link: /guide/getting-started.html
type: primary
- text: Introduction
link: /guide/
link: /guide/introduction.html
type: secondary
---
```
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ actions:
link: /zh/guide/getting-started.html
type: primary
- text: 项目简介
link: /zh/guide/
link: /zh/guide/introduction.html
type: secondary
features:
- title: 简洁至上
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions docs/zh/guide/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ VuePress 会使用 [markdown-it](https://github.com/markdown-it/markdown-it) 来

<!-- 绝对路径 -->

[指南](/zh/guide/README.md)
[指南 > 介绍](/zh/guide/introduction.md)
[配置参考 > markdown.links](/zh/reference/config.md#links)

<!-- URL -->
Expand All @@ -71,7 +71,7 @@ VuePress 会使用 [markdown-it](https://github.com/markdown-it/markdown-it) 来
<RouterLink to="/zh/">首页</RouterLink>
<RouterLink to="/zh/reference/config.html">配置参考</RouterLink>
<RouterLink to="/zh/guide/getting-started.html">快速上手</RouterLink>
<RouterLink to="/zh/guide/">指南</RouterLink>
<RouterLink to="/zh/guide/introduction.html">指南 &gt; 介绍</RouterLink>
<RouterLink to="/zh/reference/config.html#links">
配置参考 &gt; markdown.links
</RouterLink>
Expand All @@ -86,7 +86,7 @@ VuePress 会使用 [markdown-it](https://github.com/markdown-it/markdown-it) 来
[首页](../README.md)
[配置参考](../reference/config.md)
[快速上手](./getting-started.md)
[指南](/zh/guide/README.md)
[指南 > 介绍](/zh/guide/introduction.md)
[配置参考 > markdown.links](/zh/reference/config.md#links)
[GitHub](https://github.com)

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/reference/default-theme/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export default {
'/guide/': [
{
text: 'Guide',
children: ['/guide/README.md', '/guide/getting-started.md'],
children: ['/guide/introduction.md', '/guide/getting-started.md'],
},
],
'/reference/': [
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/reference/default-theme/frontmatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ actions:
link: /zh/guide/getting-started.html
type: primary
- text: 项目简介
link: /guide/
link: /zh/guide/introduction.html
type: secondary
---
```
Expand Down

0 comments on commit 06559c9

Please sign in to comment.