From 40e803e9defb3db33cfea0dc9dc9b0d0e348de4c Mon Sep 17 00:00:00 2001 From: Luffy <52o@qq52o.cn> Date: Thu, 8 May 2025 15:32:07 +0800 Subject: [PATCH] docs: changes in sync Chinese translation --- docs/adding-pages.md | 4 ++-- docs/configuration.md | 6 +++--- docs/cover.md | 4 ++-- docs/custom-navbar.md | 2 +- docs/deploy.md | 2 +- docs/markdown.md | 2 +- docs/plugins.md | 14 +++++++------- docs/pwa.md | 2 +- docs/quickstart.md | 2 +- docs/vue.md | 4 ++-- src/core/render/tpl.js | 4 ++-- test/e2e/search.test.js | 6 +++--- 12 files changed, 26 insertions(+), 26 deletions(-) diff --git a/docs/adding-pages.md b/docs/adding-pages.md index 9a5b2454b..9cd6407dc 100644 --- a/docs/adding-pages.md +++ b/docs/adding-pages.md @@ -27,7 +27,7 @@ docs/zh-cn/guide.md => http://domain.com/#/zh-cn/guide In order to have a sidebar, you can create your own `_sidebar.md` (see [this documentation's sidebar](https://github.com/docsifyjs/docsify/blob/main/docs/_sidebar.md) for an example): -First, you need to set `loadSidebar` to **true**. Details are available in the [configuration paragraph](configuration.md#loadsidebar). +First, you need to set `loadSidebar` to **true**. Details are available in the [configuration paragraph](configuration#loadsidebar). ```html @@ -115,7 +115,7 @@ A page's `title` tag is generated from the _selected_ sidebar item name. For bet Once you've created `_sidebar.md`, the sidebar content is automatically generated based on the headers in the markdown files. -A custom sidebar can also automatically generate a table of contents by setting a `subMaxLevel`, compare [subMaxLevel configuration](configuration.md#submaxlevel). +A custom sidebar can also automatically generate a table of contents by setting a `subMaxLevel`, compare [subMaxLevel configuration](configuration#submaxlevel). ```html diff --git a/docs/configuration.md b/docs/configuration.md index a11f89806..e4cc24e02 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -480,7 +480,7 @@ window.$docsify = { - Type: `Boolean` - Default: `false` -Render emoji shorthand codes using GitHub-style emoji images or platform-native emoji characters. +Render emoji shorthand codes using GitHub-style emoji images or native emoji characters. ```js window.$docsify = { @@ -506,7 +506,7 @@ GitHub-style images when `false`: -1 -Platform-native characters when `true`: +Native characters when `true`: 😄︎ @@ -581,7 +581,7 @@ To disable emoji parsing of individual shorthand codes, replace `:` characters w ## notFoundPage -- Type: `Boolean` | `String` | `Object` +- Type: `Boolean|String|Object` - Default: `false` Display default "404 - Not Found" message: diff --git a/docs/cover.md b/docs/cover.md index c8779086a..a992831fe 100644 --- a/docs/cover.md +++ b/docs/cover.md @@ -1,6 +1,6 @@ # Cover -Activate the cover feature by setting `coverpage` to **true**. See [coverpage configuration](configuration.md#coverpage). +Activate the cover feature by setting `coverpage` to **true**. See [coverpage configuration](configuration#coverpage). ## Basic usage @@ -60,7 +60,7 @@ Alternatively, a background color or image can be specified in the cover page ma ## Coverpage as homepage -Normally, the coverpage and the homepage appear at the same time. Of course, you can also separate the coverpage by [`onlyCover`](configuration.md#onlycover) option. +Normally, the coverpage and the homepage appear at the same time. Of course, you can also separate the coverpage by [`onlyCover`](configuration#onlycover) option. ## Multiple covers diff --git a/docs/custom-navbar.md b/docs/custom-navbar.md index c9c1f8f95..f0606b56c 100644 --- a/docs/custom-navbar.md +++ b/docs/custom-navbar.md @@ -20,7 +20,7 @@ If you need custom navigation, you can create a HTML-based navigation bar. ## Markdown -Alternatively, you can create a custom markdown-based navigation file by setting `loadNavbar` to **true** and creating `_navbar.md`, compare [loadNavbar configuration](configuration.md#loadnavbar). +Alternatively, you can create a custom markdown-based navigation file by setting `loadNavbar` to **true** and creating `_navbar.md`, compare [loadNavbar configuration](configuration#loadnavbar). ```html diff --git a/docs/deploy.md b/docs/deploy.md index 6d258408f..b6a8e3b41 100644 --- a/docs/deploy.md +++ b/docs/deploy.md @@ -78,7 +78,7 @@ server { 1. Login to your [Netlify](https://www.netlify.com/) account. 2. In the [dashboard](https://app.netlify.com/) page, click **Add New Site**. -3. Select Github. +3. Select GitHub. 4. Choose the repository where you store your docs, in the **Base Directory** add the subfolder where the files are stored. For example, it should be `docs`. 5. In the **Build Command** area leave it blank. 6. In the **Publish directory** area, if you have added the `docs` in the **Base Directory** you will see the publish directory populated with `docs/` diff --git a/docs/markdown.md b/docs/markdown.md index f6cdf6242..9b6f6466c 100644 --- a/docs/markdown.md +++ b/docs/markdown.md @@ -1,6 +1,6 @@ # Markdown configuration -**docsify** uses [marked v13+](https://github.com/markedjs/marked) as its Markdown parser. You can customize how it renders your Markdown content to HTML by customizing `renderer`: +**docsify** uses [marked](https://github.com/markedjs/marked) as its Markdown parser. You can customize how it renders your Markdown content to HTML by customizing `renderer`: ```js window.$docsify = { diff --git a/docs/plugins.md b/docs/plugins.md index da019d67c..cb6ac62cc 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -2,7 +2,7 @@ ## Full text search -By default, the hyperlink on the current page is recognized and the content is saved in `localStorage`. You can also specify the path to the files. +By default, the hyperlink on the current page is recognized and the content is saved in `IndexedDB`. You can also specify the path to the files. ```html @@ -188,7 +188,7 @@ Disqus comments. https://disqus.com/ ## Gitalk -[Gitalk](https://github.com/gitalk/gitalk) is a modern comment component based on Github Issue and Preact. +[Gitalk](https://github.com/gitalk/gitalk) is a modern comment component based on GitHub Issue and Preact. ```html @@ -197,12 +197,12 @@ Disqus comments. https://disqus.com/ ``` -Compare [el configuration](configuration.md#el). +Compare [el configuration](configuration#el).