Skip to content

Commit 9198f43

Browse files
committed
docs: use relative file path refs and fix some broken links
1 parent 9e3fe81 commit 9198f43

File tree

17 files changed

+39
-39
lines changed

17 files changed

+39
-39
lines changed

docs/config/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Provide config options to the used theme. The options will vary depending on the
123123

124124
**Also see:**
125125

126-
- [Default Theme Configuration](../default-theme-config/).
126+
- [Default Theme Configuration](../default-theme-config/README.md).
127127

128128
## Markdown
129129

docs/default-theme-config/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ All options listed on this page apply to the default theme only. If you are usin
1010

1111
## Homepage
1212

13-
The default theme provides a homepage layout (which is used on [the homepage of this very website](/)). To use it, specify `home: true` plus some other metadata in your root `README.md`'s [YAML front matter](../guide/markdown.html#yaml-front-matter). This is the actual data used on this site:
13+
The default theme provides a homepage layout (which is used on [the homepage of this very website](../README.md)). To use it, specify `home: true` plus some other metadata in your root `README.md`'s [YAML front matter](../guide/markdown.md#front-matter). This is the actual data used on this site:
1414

1515
``` yaml
1616
---

docs/guide/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ Each markdown file is compiled into HTML with [markdown-it](https://github.com/m
1717
- [Built-in markdown extensions](./markdown.md) optimized for technical documentation
1818
- [Ability to leverage Vue inside markdown files](./using-vue.md)
1919
- [Vue-powered custom theme system](./custom-themes.md)
20-
- [Automatic Service Worker generation](../config/#serviceworker)
21-
- [Google Analytics Integration](../config/#ga)
20+
- [Automatic Service Worker generation](../config/README.md#serviceworker)
21+
- [Google Analytics Integration](../config/README.md#ga)
2222
- ["Last Updated" based on Git](../default-theme-config/README.md#last-updated)
2323
- [Multi-language support](./i18n.md)
2424
- A default theme with:
2525
- Responsive layout
26-
- [Optional Homepage](../default-theme-config/#homepage)
27-
- [Simple out-of-the-box header-based search](../default-theme-config/#built-in-search)
28-
- [Algolia Search](../default-theme-config/#algolia-search)
29-
- Customizable [navbar](../default-theme-config/#navbar) and [sidebar](../default-theme-config/#sidebar)
30-
- [Auto-generated GitHub link and page edit links](../default-theme-config/#git-repo-and-edit-links)
26+
- [Optional Homepage](../default-theme-config/README.md#homepage)
27+
- [Simple out-of-the-box header-based search](../default-theme-config/README.md#built-in-search)
28+
- [Algolia Search](../default-theme-config/README.md#algolia-search)
29+
- Customizable [navbar](../default-theme-config/README.md#navbar) and [sidebar](../default-theme-config/README.md#sidebar)
30+
- [Auto-generated GitHub link and page edit links](../default-theme-config/README.md#git-repo-and-edit-links)
3131

3232
## Todo
3333

docs/guide/basic-config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ module.exports = {
2424

2525
If you've got the dev server running, you should see the page now has a header with the title and a search box. VuePress comes with built-in headers-based search - it automatically builds a simple search index from the title, `h2` and `h3` headers from all the pages.
2626

27-
Consult the [Config Reference](../config/) for a full list of options.
27+
Consult the [Config Reference](../config/README.md) for a full list of options.
2828

2929
::: tip Alternative Config Formats
3030
You can also use YAML (`.vuepress/config.yml`) or TOML (`.vuepress/config.toml`) formats for the configuration file.
3131
:::
3232

3333
## Theme Configuration
3434

35-
A VuePress theme is responsible for all the layout and interactivity details of your site. VuePress ships with a default theme (you are looking at it right now) which is designed for technical documentation. It exposes a number of options that allow you to customize the navbar, sidebar and homepage, etc. For details, check out the [Default Theme Config](../default-theme-config/) page.
35+
A VuePress theme is responsible for all the layout and interactivity details of your site. VuePress ships with a default theme (you are looking at it right now) which is designed for technical documentation. It exposes a number of options that allow you to customize the navbar, sidebar and homepage, etc. For details, check out the [Default Theme Config](../default-theme-config/README.md) page.
3636

3737
If you wish to develop a custom theme, see [Custom Themes](./custom-themes.md).
3838

docs/guide/custom-themes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This is the value of `$site` of this very website:
3838
}
3939
```
4040

41-
`title`, `description` and `base` are copied from respective fields in `.vuepress/config.js`. `pages` contains an array of metadata objects for each page, including its path, page title (explicitly specified in [YAML front matter](./markdown.html#yaml-front-matter) or inferred from the first header on the page), and any YAML front matter data in that file.
41+
`title`, `description` and `base` are copied from respective fields in `.vuepress/config.js`. `pages` contains an array of metadata objects for each page, including its path, page title (explicitly specified in [YAML front matter](./markdown.md#front-matter) or inferred from the first header on the page), and any YAML front matter data in that file.
4242

4343
This is the `$page` object for this page you are looking at:
4444

@@ -57,7 +57,7 @@ If the user provided `themeConfig` in `.vuepress/config.js`, it will also be ava
5757
Finally, don't forget that `this.$route` and `this.$router` are also available as part of Vue Router's API.
5858

5959
::: tip
60-
`lastUpdated` is the UNIX timestamp of this file's last git commit, for more details, refer to [Last Updated](../default-theme-config/#last-updated).
60+
`lastUpdated` is the UNIX timestamp of this file's last git commit, for more details, refer to [Last Updated](../default-theme-config/README.md#last-updated).
6161

6262
:::
6363

docs/guide/i18n.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ If a locale does not have `title` or `description` VuePress will fallback to the
4242

4343
## Default Theme i18n Config
4444

45-
The default theme also has built-in i18n support via `themeConfig.locales`, using the same `{ path: config }` format. Each locale can have its own [nav](../default-theme-config/#navbar-links) and [sidebar](../default-theme-config/#sidebar) config, in addition to a few other text values used across the site:
45+
The default theme also has built-in i18n support via `themeConfig.locales`, using the same `{ path: config }` format. Each locale can have its own [nav](../default-theme-config/README.md#navbar-links) and [sidebar](../default-theme-config/README.md#sidebar) config, in addition to a few other text values used across the site:
4646

4747
``` js
4848
module.exports = {

docs/guide/markdown.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Header Anchors
44

5-
Headers automatically get anchor links applied. Rendering of anchors can be configured using the [`markdown.anchor`](../config/#markdownanchor) option.
5+
Headers automatically get anchor links applied. Rendering of anchors can be configured using the [`markdown.anchor`](../config/README.md#markdown-anchor) option.
66

77
## Links
88

@@ -53,7 +53,7 @@ Outbound links automatically gets `target="_blank" rel="noopener noreferrer"`:
5353
- [vuejs.org](https://vuejs.org)
5454
- [VuePress on GitHub](https://github.com/vuejs/vuepress)
5555

56-
You can customize the attributes added to external links by setting [config.markdown.externalLinks](../config/#markdown-externallinks).
56+
You can customize the attributes added to external links by setting [config.markdown.externalLinks](../config/README.md#markdown-externallinks).
5757

5858
## Front Matter
5959

@@ -150,7 +150,7 @@ A list of all emojis available can be found [here](https://github.com/markdown-i
150150

151151
[[toc]]
152152

153-
Rendering of TOC can be configured using the [`markdown.toc`](../config/#markdown-toc) option.
153+
Rendering of TOC can be configured using the [`markdown.toc`](../config/README.md#markdown-toc) option.
154154

155155
## Custom Containers
156156

docs/guide/using-vue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ yarn add -D pug pug-plain-loader
152152
::: tip
153153
If you are a Stylus user, you don't need to install `stylus` and `stylus-loader` in your project because VuePress uses Stylus internally.
154154

155-
For pre-processors that do not have built-in webpack config support, you will need to [extend the internal webpack config](../config/#configurewebpack) in addition to installing the necessary dependencies.
155+
For pre-processors that do not have built-in webpack config support, you will need to [extend the internal webpack config](../config/README.md#configurewebpack) in addition to installing the necessary dependencies.
156156
:::
157157

158158
## Script & Style Hoisting

docs/zh/config/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ sidebar: auto
1717

1818
**Also see:**
1919

20-
- [Base URL](../guide/assets.md#base-url)
20+
- [Base URL](../guide/assets.md#基础路径)
2121
- [部署指南 > Github Pages](../guide/deploy.md#github-pages)
2222

2323
### title
@@ -122,7 +122,7 @@ module.exports = {
122122

123123
**也可以参考:**
124124

125-
- [默认主题](../default-theme-config/)
125+
- [默认主题](../default-theme-config/README.md)
126126

127127
## Markdown
128128

docs/zh/default-theme-config/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sidebar: auto
1010

1111
## 首页
1212

13-
默认的主题提供了一个首页(Homepage)的布局 (用于 [这个网站的主页](/zh/))。想要使用它,需要在你的根级 `README.md`[YAML front matter](../guide/markdown.md#yaml-front-matter) 指定 `home: true`。以下是这个网站实际使用的数据:
13+
默认的主题提供了一个首页(Homepage)的布局 (用于 [这个网站的主页](../README.md))。想要使用它,需要在你的根级 `README.md`[YAML front matter](../guide/markdown.md#front-matter) 指定 `home: true`。以下是这个网站实际使用的数据:
1414

1515
``` yaml
1616
---

0 commit comments

Comments
 (0)