You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/configuration.md
+16-16
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ You can configure Docsify by defining `window.$docsify` as an object:
12
12
</script>
13
13
```
14
14
15
-
The config can also be defined as a function, in which case the first arg is the Docsify `vm` instance. The function should return a config object. This can be useful for referencing `vm` in places like the markdown configuration:
15
+
The config can also be defined as a function, in which case the first argument is the Docsify `vm` instance. The function should return a config object. This can be useful for referencing `vm` in places like the markdown configuration:
16
16
17
17
```html
18
18
<script>
@@ -35,7 +35,7 @@ The config can also be defined as a function, in which case the first arg is the
35
35
- Type: `String`
36
36
- Default: `#app`
37
37
38
-
The DOM element to be mounted on initialization. It can be a CSS selector string or an actual HTMLElement.
38
+
The DOM element to be mounted on initialization. It can be a CSS selector string or an actual [HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement).
39
39
40
40
```js
41
41
window.$docsify= {
@@ -48,7 +48,7 @@ window.$docsify = {
48
48
- Type: `String`
49
49
- Default: `null`
50
50
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` can add the [GitHub Corner](http://tholman.com/github-corners/) widget in the top right corner of the site.
52
52
53
53
```js
54
54
window.$docsify= {
@@ -76,7 +76,7 @@ window.$docsify = {
76
76
- Type: `Boolean|String`
77
77
- Default: `false`
78
78
79
-
Loads navbar from the Markdown file `_navbar.md` if **true**, or else from the path specified.
79
+
Loads navbar from the Markdown file `_navbar.md` if **true**, else loads it from the path specified.
80
80
81
81
```js
82
82
window.$docsify= {
@@ -93,7 +93,7 @@ window.$docsify = {
93
93
- Type: `Boolean|String`
94
94
- Default: `false`
95
95
96
-
Loads sidebar from the Markdown file `_sidebar.md` if **true**, or else from the path specified.
96
+
Loads sidebar from the Markdown file `_sidebar.md` if **true**, else loads it from the path specified.
97
97
98
98
```js
99
99
window.$docsify= {
@@ -110,7 +110,7 @@ window.$docsify = {
110
110
- Type : `Boolean`
111
111
- Default: `true`
112
112
113
-
This option will completely hide your sidebar and wont render any content of the side even .
113
+
This option will completely hide your sidebar and won't render any content on the side.
114
114
115
115
```js
116
116
window.$docsify= {
@@ -149,7 +149,7 @@ window.$docsify = {
149
149
- Type: `String`
150
150
- Default: `README.md`
151
151
152
-
`README.md` in your docs folder will be treated as homepage for your website, but sometimes you may need to serve another file as your homepage.
152
+
`README.md` in your docs folder will be treated as the homepage for your website, but sometimes you may need to serve another file as your homepage.
153
153
154
154
```js
155
155
window.$docsify= {
@@ -196,7 +196,7 @@ window.$docsify = {
196
196
- Type: `Boolean`
197
197
- Default: `false`
198
198
199
-
If **true** links are relative to the current context.
199
+
If **true**, links are relative to the current context.
200
200
201
201
For example, the directory structure is as follows:
202
202
@@ -260,7 +260,7 @@ window.$docsify = {
260
260
261
261
- Type: `String`
262
262
263
-
Website logo as it appears in the sidebar, you can resize by CSS.
263
+
Website logo as it appears in the sidebar. You can resize it by using CSS.
264
264
265
265
```js
266
266
window.$docsify= {
@@ -367,7 +367,7 @@ window.$docsify = {
367
367
368
368
- type: `Boolean`
369
369
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. Compare [#78](https://github.com/docsifyjs/docsify/issues/78).
371
371
372
372
```js
373
373
window.$docsify= {
@@ -474,7 +474,7 @@ window.$docsify = {
474
474
- type: `String`
475
475
- default: `noopener`
476
476
477
-
Default `'noopener'` (no opener) prevents the newly opened external page (when [externalLinkTarget](#externallinktarget) is `'_blank'`) from having the ability to control our page. No `rel` is set when its not `'_blank'`. See [this post](https://mathiasbynens.github.io/rel-noopener/) for more information about why you may want to use this option.
477
+
Default `'noopener'` (no opener) prevents the newly opened external page (when [externalLinkTarget](#externallinktarget) is `'_blank'`) from having the ability to control our page. No `rel` is set when it's not `'_blank'`. See [this post](https://mathiasbynens.github.io/rel-noopener/) for more information about why you may want to use this option.
478
478
479
479
```js
480
480
window.$docsify= {
@@ -557,13 +557,13 @@ window.$docsify = {
557
557
558
558
- type: `Array<string>`
559
559
560
-
List of languages that will fallback to the default language when a page is request and didn't exists for the given local.
560
+
List of languages that will fallback to the default language when a page is requested and it doesn't exist for the given local.
561
561
562
562
Example:
563
563
564
-
- try to fetch the page of `/de/overview`. If this page exists, it'll be displayed
565
-
- then try to fetch the default page `/overview` (depending on the default language). If this page exists, it'll be displayed
566
-
- then display 404 page.
564
+
- try to fetch the page of `/de/overview`. If this page exists, it'll be displayed.
565
+
- then try to fetch the default page `/overview` (depending on the default language). If this page exists, it'll be displayed.
0 commit comments