Skip to content

Commit c539b25

Browse files
authored
Merge branch 'develop' into fix-embed-mermaid
2 parents bafde18 + 9d3f50b commit c539b25

15 files changed

+60
-60
lines changed

Diff for: docs/_sidebar.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
- [Helpers](helpers.md)
2121
- [Vue compatibility](vue.md)
2222
- [CDN](cdn.md)
23-
- [Offline Mode(PWA)](pwa.md)
24-
- [Server-Side Rendering(SSR)](ssr.md)
23+
- [Offline Mode (PWA)](pwa.md)
24+
- [Server-Side Rendering (SSR)](ssr.md)
2525
- [Embed Files](embed-files.md)
2626

2727
- [Awesome docsify](awesome.md)

Diff for: docs/configuration.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ window.$docsify = {
4848
- Type: `String`
4949
- Default: `null`
5050

51-
Configure the repository url, or a string of `username/repo` can add the [GitHub Corner](http://tholman.com/github-corners/) widget in the top right corner of the site.
51+
Configure the repository url, or a string of `username/repo`, to add the [GitHub Corner](http://tholman.com/github-corners/) widget in the top right corner of the site.
5252

5353
```js
5454
window.$docsify = {
@@ -260,7 +260,7 @@ window.$docsify = {
260260

261261
- Type: `String`
262262

263-
Website logo as it appears in the sidebar. You can resize it by using CSS.
263+
Website logo as it appears in the sidebar. You can resize it using CSS.
264264

265265
```js
266266
window.$docsify = {
@@ -337,7 +337,7 @@ window.$docsify = {
337337

338338
- Type: `String`
339339

340-
Customize the theme color. Use [CSS3 variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables) feature and polyfill in old browser.
340+
Customize the theme color. Use [CSS3 variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables) feature and polyfill in older browsers.
341341

342342
```js
343343
window.$docsify = {
@@ -367,7 +367,7 @@ window.$docsify = {
367367

368368
- type: `Boolean`
369369

370-
If `loadSidebar` and `autoHeader` are both enabled, for each link in `_sidebar.md`, prepend a header to the page before converting it to HTML. Compare [#78](https://github.com/docsifyjs/docsify/issues/78).
370+
If `loadSidebar` and `autoHeader` are both enabled, for each link in `_sidebar.md`, prepend a header to the page before converting it to HTML. See [#78](https://github.com/docsifyjs/docsify/issues/78).
371371

372372
```js
373373
window.$docsify = {
@@ -380,7 +380,7 @@ window.$docsify = {
380380

381381
- type: `Boolean`
382382

383-
Execute the script on the page. Only parse the first script tag([demo](themes)). If Vue is present, it is turned on by default.
383+
Execute the script on the page. Only parse the first script tag ([demo](themes)). If Vue is present, it is turned on by default.
384384

385385
```js
386386
window.$docsify = {
@@ -410,7 +410,7 @@ window.$docsify = {
410410
};
411411
```
412412

413-
?> If this options is `false` but you don't want to emojify some specific colons , [Refer this](https://github.com/docsifyjs/docsify/issues/742#issuecomment-586313143)
413+
?> If this option is `false` but you don't want to emojify some specific colons, [refer to this](https://github.com/docsifyjs/docsify/issues/742#issuecomment-586313143)
414414

415415
## mergeNavbar
416416

@@ -497,8 +497,8 @@ window.$docsify = {
497497

498498
- type: `Array`
499499

500-
When `routerMode: 'history'`, you may face the cross-origin issues, See [#1379](https://github.com/docsifyjs/docsify/issues/1379).
501-
In Markdown content, there is a simple way to solve it, see extends Markdown syntax `Cross-Origin link` in [helpers](helpers.md).
500+
When `routerMode: 'history'`, you may face cross-origin issues. See [#1379](https://github.com/docsifyjs/docsify/issues/1379).
501+
In Markdown content, there is a simple way to solve it: see extends Markdown syntax `Cross-Origin link` in [helpers](helpers.md).
502502

503503
```js
504504
window.$docsify = {
@@ -570,7 +570,7 @@ window.$docsify = {
570570

571571
- type: `Array<string>`
572572

573-
List of languages that will fallback to the default language when a page is requested and it doesn't exist for the given local.
573+
List of languages that will fallback to the default language when a page is requested and it doesn't exist for the given locale.
574574

575575
Example:
576576

@@ -615,14 +615,14 @@ window.$docsify = {
615615
};
616616
```
617617

618-
> Note: The options with fallbackLanguages didn't work with the `notFoundPage` options.
618+
> Note: The options for fallbackLanguages don't work with the `notFoundPage` options.
619619
620620
## topMargin
621621

622622
- type: `Number`
623623
- default: `0`
624624

625-
Adds a space on top when scrolling content page to reach the selected section. This is useful in case you have a _sticky-header_ layout and you want to align anchors to the end of your header.
625+
Adds a space on top when scrolling the content page to reach the selected section. This is useful in case you have a _sticky-header_ layout and you want to align anchors to the end of your header.
626626

627627
```js
628628
window.$docsify = {

Diff for: docs/cover.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cover
22

3-
Activate the cover feature by setting `coverpage` to **true**, compare [coverpage configuration](configuration.md#coverpage).
3+
Activate the cover feature by setting `coverpage` to **true**. See [coverpage configuration](configuration.md#coverpage).
44

55
## Basic usage
66

Diff for: docs/deploy.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ Similar to [GitBook](https://www.gitbook.com), you can deploy files to GitHub Pa
44

55
## GitHub Pages
66

7-
There're three places to populate your docs for your Github repository:
7+
There are three places to populate your docs for your GitHub repository:
88

99
- `docs/` folder
1010
- master branch
1111
- gh-pages branch
1212

13-
It is recommended that you save your files to the `./docs` subfolder of the `master` branch of your repository. Then select `master branch /docs folder` as your Github Pages source in your repositories' settings page.
13+
It is recommended that you save your files to the `./docs` subfolder of the `master` branch of your repository. Then select `master branch /docs folder` as your GitHub Pages source in your repository's settings page.
1414

15-
![github pages](_images/deploy-github-pages.png)
15+
![GitHub Pages](_images/deploy-github-pages.png)
1616

1717
!> You can also save files in the root directory and select `master branch`.
1818
You'll need to place a `.nojekyll` file in the deploy location (such as `/docs` or the gh-pages branch)
1919

2020
## GitLab Pages
2121

22-
If you are deploying your master branch, include `.gitlab-ci.yml` with the following script:
22+
If you are deploying your master branch, create a `.gitlab-ci.yml` with the following script:
2323

2424
?> The `.public` workaround is so `cp` doesn't also copy `public/` to itself in an infinite loop.
2525

@@ -43,9 +43,9 @@ pages:
4343

4444
!> You'll need to install the Firebase CLI using `npm i -g firebase-tools` after signing into the [Firebase Console](https://console.firebase.google.com) using a Google Account.
4545

46-
Using Terminal determine and navigate to the directory for your Firebase Project - this could be `~/Projects/Docs` etc. From there, run `firebase init`, choosing `Hosting` from the menu (use **space** to select, **arrow keys** to change options and **enter** to confirm). Follow the setup instructions.
46+
Using a terminal, determine and navigate to the directory for your Firebase Project. This could be `~/Projects/Docs`, etc. From there, run `firebase init` and choose `Hosting` from the menu (use **space** to select, **arrow keys** to change options and **enter** to confirm). Follow the setup instructions.
4747

48-
You should have your `firebase.json` file looking similar to this (I changed the deployment directory from `public` to `site`):
48+
Your `firebase.json` file should look similar to this (I changed the deployment directory from `public` to `site`):
4949

5050
```json
5151
{
@@ -56,11 +56,11 @@ You should have your `firebase.json` file looking similar to this (I changed the
5656
}
5757
```
5858

59-
Once finished, build the starting template by running `docsify init ./site` (replacing site with the deployment directory you determined when running `firebase init` - public by default). Add/edit the documentation, then run `firebase deploy` from the base project directory.
59+
Once finished, build the starting template by running `docsify init ./site` (replacing site with the deployment directory you determined when running `firebase init` - public by default). Add/edit the documentation, then run `firebase deploy` from the root project directory.
6060

6161
## VPS
6262

63-
Try following nginx config.
63+
Use the following nginx config.
6464

6565
```nginx
6666
server {
@@ -78,11 +78,11 @@ server {
7878

7979
1. Login to your [Netlify](https://www.netlify.com/) account.
8080
2. In the [dashboard](https://app.netlify.com/) page, click **New site from Git**.
81-
3. Choose a repository where you store your docs, leave the **Build Command** area blank, fill in the Publish directory area with the directory of your `index.html`, for example it should be docs if you populated it at `docs/index.html`.
81+
3. Choose a repository where you store your docs, leave the **Build Command** area blank, and fill in the Publish directory area with the directory of your `index.html`. For example, it should be docs if you populated it at `docs/index.html`.
8282

8383
### HTML5 router
8484

85-
When using the HTML5 router, you need to set up redirect rules that redirect all requests to your `index.html`, it's pretty simple when you're using Netlify, create a file named `_redirects` in the docs directory, add this snippet to the file and you're all set:
85+
When using the HTML5 router, you need to set up redirect rules that redirect all requests to your `index.html`. It's pretty simple when you're using Netlify. Just create a file named `_redirects` in the docs directory, add this snippet to the file, and you're all set:
8686

8787
```sh
8888
/* /index.html 200
@@ -117,7 +117,7 @@ version: 0.1
117117
frontend:
118118
phases:
119119
build:
120-
commands:
120+
commands:
121121
- echo "Nothing to build"
122122
artifacts:
123123
baseDirectory: /docs
@@ -128,28 +128,28 @@ frontend:
128128
129129
```
130130

131-
6. Add the following Redirect rules in their displayed order. Note that the second record is a PNG image where you can change it with any image format you are using.
131+
6. Add the following Redirect rules in their displayed order. Note that the second record is a PNG image where you can change it with any image format you are using.
132132

133133
| Source address | Target address | Type |
134134
|----------------|----------------|---------------|
135135
| /<*>.md | /<*>.md | 200 (Rewrite) |
136136
| /<*>.png | /<*>.png | 200 (Rewrite) |
137-
| /<*> | /index.html | 200 (Rewrite) |
137+
| /<*> | /index.html | 200 (Rewrite) |
138138

139139

140140
## Docker
141141

142-
- Create docsify files
142+
- Create docsify files
143143

144-
You need prepare the initial files instead of making in container.
144+
You need prepare the initial files instead of making them inside the container.
145145
See the [Quickstart](https://docsify.js.org/#/quickstart) section for instructions on how to create these files manually or using [docsify-cli](https://github.com/docsifyjs/docsify-cli).
146146

147147
```sh
148148
index.html
149149
README.md
150150
```
151151

152-
- Create dockerfile
152+
- Create Dockerfile
153153

154154
```Dockerfile
155155
FROM node:latest
@@ -158,10 +158,10 @@ frontend:
158158
RUN npm install -g docsify-cli@latest
159159
EXPOSE 3000/tcp
160160
ENTRYPOINT docsify serve .
161-
161+
162162
```
163163

164-
So, current directory structure should be this:
164+
The current directory structure should be this:
165165

166166
```sh
167167
index.html
@@ -178,6 +178,6 @@ frontend:
178178
- Run docker image
179179

180180
```sh
181-
docker run -itp 3000:3000 --name=docsify -v $(pwd):/docs docsify/demo
181+
docker run -itp 3000:3000 --name=docsify -v $(pwd):/docs docsify/demo
182182
```
183183

Diff for: docs/embed-files.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ For example, here is an embedded Markdown file. You only need to do this:
1010
[filename](_media/example.md ':include')
1111
```
1212

13-
Then the content of `example.md` will be displayed directly here;
13+
Then the content of `example.md` will be displayed directly here:
1414

1515
[filename](_media/example.md ':include')
1616

1717
You can check the original content for [example.md](_media/example.md ':ignore').
1818

19-
Normally, this will compiled into a link, but in docsify, if you add `:include` it will be embedded. You can use single or double quotation marks around as you like.
19+
Normally, this will be compiled into a link, but in docsify, if you add `:include` it will be embedded. You can use single or double quotation marks around as you like.
2020

2121
External links can be used too - just replace the target. If you want to use a gist URL, see [Embed a gist](#embed-a-gist) section.
2222

@@ -73,7 +73,7 @@ Example:
7373

7474
If you embed the file as `iframe`, `audio` and `video`, then you may need to set the attributes of these tags.
7575

76-
?> Note, for the `audio` and `video` types, docsify adds the `controls` attribute by default. When you want add more attributes, the `controls` attribute need to be added manually if need be.
76+
?> Note, for the `audio` and `video` types, docsify adds the `controls` attribute by default. When you want add more attributes, the `controls` attribute need to be added manually if need be.
7777
```md
7878
[filename](_media/example.mp4 ':include :type=video controls width=100%')
7979
```

Diff for: docs/helpers.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
docsify extends Markdown syntax to make your documents more readable.
44

5-
> Note: For the special code syntax cases, you'd better put them within a code backticks to avoid any conflicting from configurations or emojis.
5+
> Note: For the special code syntax cases, it's better to put them within code backticks to avoid any conflict from configurations or emojis.
66
77
## Important content
88

@@ -30,21 +30,21 @@ are rendered as:
3030

3131
## Ignore to compile link
3232

33-
Some time we will put some other relative path to the link, you have to need to tell docsify you don't need to compile this link. For example
33+
Sometimes we will use some other relative path for the link, and we have to tell docsify that we don't need to compile this link. For example:
3434

3535
```md
3636
[link](/demo/)
3737
```
3838

39-
It will be compiled to `<a href="/#/demo/">link</a>` and will be loaded `/demo/README.md`. Maybe you want to jump to `/demo/index.html`.
39+
It will be compiled to `<a href="/#/demo/">link</a>` and will load `/demo/README.md`. Maybe you want to jump to `/demo/index.html`.
4040

4141
Now you can do that
4242

4343
```md
4444
[link](/demo/ ':ignore')
4545
```
4646

47-
You will get `<a href="/demo/">link</a>`html. Do not worry, you can still set title for link.
47+
You will get `<a href="/demo/">link</a>`html. Do not worry, you can still set the title for the link.
4848

4949
```md
5050
[link](/demo/ ':ignore title')
@@ -67,13 +67,13 @@ You will get `<a href="/demo/">link</a>`html. Do not worry, you can still set ti
6767

6868
## Cross-Origin link
6969

70-
Only when you both set the `routerMode: 'history'` and `externalLinkTarget: '_self'`, you need add this configuration for those Cross-Origin links.
70+
Only when you set both the `routerMode: 'history'` and `externalLinkTarget: '_self'`, you need to add this configuration for those Cross-Origin links.
7171

7272
```md
7373
[example.com](https://example.com/ ':crossorgin')
7474
```
7575

76-
## Github Task Lists
76+
## GitHub Task Lists
7777

7878
```md
7979
- [ ] foo
@@ -150,7 +150,7 @@ This is useful for rendering markdown content in the details element.
150150

151151
</details>
152152

153-
Or markdown content can be wrapped in html tag.
153+
Markdown content can also be wrapped in html tags.
154154

155155
```markdown
156156
<div style='color: red'>

Diff for: docs/markdown.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ window.$docsify = {
1515
}
1616
```
1717

18-
?> Configuration Options Reference [marked documentation](https://marked.js.org/#/USING_ADVANCED.md)
18+
?> Configuration Options Reference: [marked documentation](https://marked.js.org/#/USING_ADVANCED.md)
1919

20-
Even you can completely customize the parsing rules.
20+
You can completely customize the parsing rules.
2121

2222
```js
2323
window.$docsify = {

Diff for: docs/more-pages.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ docs/zh-cn/guide.md => http://domain.com/#/zh-cn/guide
2525

2626
## Sidebar
2727

28-
In order to have sidebar, then you can create your own `_sidebar.md` (see [this documentation's sidebar](https://github.com/docsifyjs/docsify/blob/master/docs/_sidebar.md) for an example):
28+
In order to have a sidebar, you can create your own `_sidebar.md` (see [this documentation's sidebar](https://github.com/docsifyjs/docsify/blob/master/docs/_sidebar.md) for an example):
2929

3030
First, you need to set `loadSidebar` to **true**. Details are available in the [configuration paragraph](configuration.md#loadsidebar).
3131

@@ -65,7 +65,7 @@ Example file structure:
6565

6666
## Nested Sidebars
6767

68-
You may want the sidebar to update with only navigation to reflect the current directory. This can be done by adding a `_sidebar.md` file to each folder.
68+
You may want the sidebar to update after navigation to reflect the current directory. This can be done by adding a `_sidebar.md` file to each folder.
6969

7070
`_sidebar.md` is loaded from each level directory. If the current directory doesn't have `_sidebar.md`, it will fall back to the parent directory. If, for example, the current path is `/guide/quick-start`, the `_sidebar.md` will be loaded from `/guide/_sidebar.md`.
7171

Diff for: docs/plugins.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Exclude the special image
123123

124124
## Edit on github
125125

126-
Add `Edit on github` button on every pages. Provided by [@njleonzhang](https://github.com/njleonzhang), check [document](https://github.com/njleonzhang/docsify-edit-on-github)
126+
Add `Edit on github` button on every pages. Provided by [@njleonzhang](https://github.com/njleonzhang), see this [document](https://github.com/njleonzhang/docsify-edit-on-github)
127127

128128
## Demo code with instant preview and jsfiddle integration
129129

Diff for: docs/pwa.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
[Progressive Web Apps](https://developers.google.com/web/progressive-web-apps/) (PWA) are experiences that combine the best of the web with the best of apps. We can enhance our website with service workers to work **offline** or on low-quality networks.
44

5-
It is also very easy to use it.
5+
It is also very easy to use.
66

77
## Create serviceWorker
88

9-
Create a `sw.js` file in your documents root directory and copy the following code:
9+
Create a `sw.js` file in your project's root directory and copy the following code:
1010

1111
*sw.js*
1212

@@ -98,7 +98,7 @@ self.addEventListener('fetch', event => {
9898

9999
## Register
100100

101-
Now, register it in your `index.html`. It only works on some modern browsers, so we need to judge:
101+
Now, register it in your `index.html`. It only works on some modern browsers, so we need to check:
102102

103103
*index.html*
104104

@@ -112,4 +112,4 @@ Now, register it in your `index.html`. It only works on some modern browsers, so
112112

113113
## Enjoy it
114114

115-
Release your website and start experiencing magical offline feature. :ghost: You can turn off Wi-Fi and refresh the current site to experience it.
115+
Release your website and start experiencing the magical offline feature. :ghost: You can turn off Wi-Fi and refresh the current site to experience it.

0 commit comments

Comments
 (0)