@@ -18,9 +18,9 @@ docsify init ./docs
18
18
19
19
After the ` init ` is complete, you can see the file list in the ` ./docs ` subdirectory.
20
20
21
- * ` index.html ` as the entry file
22
- * ` README.md ` as the home page
23
- * ` .nojekyll ` prevents GitHub Pages from ignoring files that begin with an underscore
21
+ - ` index.html ` as the entry file
22
+ - ` README.md ` as the home page
23
+ - ` .nojekyll ` prevents GitHub Pages from ignoring files that begin with an underscore
24
24
25
25
You can easily update the documentation in ` ./docs/README.md ` , of course you can add [ more pages] ( more-pages.md ) .
26
26
@@ -43,21 +43,24 @@ If you don't like `npm` or have trouble installing the tool, you can manually cr
43
43
44
44
<!DOCTYPE html>
45
45
<html >
46
- <head >
47
- <meta http-equiv =" X-UA-Compatible" content =" IE=edge,chrome=1" >
48
- <meta name =" viewport" content =" width=device-width,initial-scale=1" >
49
- <meta charset =" UTF-8" >
50
- <link rel =" stylesheet" href =" //cdn.jsdelivr.net/npm/docsify@4/themes/vue.css" />
51
- </head >
52
- <body >
53
- <div id =" app" ></div >
54
- <script >
55
- window .$docsify = {
56
- // ...
57
- }
58
- </script >
59
- <script src =" //cdn.jsdelivr.net/npm/docsify@4" ></script >
60
- </body >
46
+ <head >
47
+ <meta http-equiv =" X-UA-Compatible" content =" IE=edge,chrome=1" />
48
+ <meta name =" viewport" content =" width=device-width,initial-scale=1" />
49
+ <meta charset =" UTF-8" />
50
+ <link
51
+ rel =" stylesheet"
52
+ href =" //cdn.jsdelivr.net/npm/docsify@4/themes/vue.css"
53
+ />
54
+ </head >
55
+ <body >
56
+ <div id =" app" ></div >
57
+ <script >
58
+ window .$docsify = {
59
+ // ...
60
+ };
61
+ </script >
62
+ <script src =" //cdn.jsdelivr.net/npm/docsify@4" ></script >
63
+ </body >
61
64
</html >
62
65
```
63
66
@@ -75,7 +78,10 @@ Specifying a major version in the URL (`@4`) will allow your site will receive n
75
78
If you prefer to lock docsify to a specific version, specify the full version after the ` @ ` symbol in the URL. This is the safest way to ensure your site will look and behave the same way regardless of any changes made to future versions of docsify.
76
79
77
80
``` html
78
- <
link rel =
" stylesheet" href =
" //cdn.jsdelivr.net/npm/[email protected] /themes/vue.css" >
81
+ <link
82
+ rel =" stylesheet"
83
+ href =
" //cdn.jsdelivr.net/npm/[email protected] /themes/vue.css"
84
+ />
79
85
<
script src =
" //cdn.jsdelivr.net/npm/[email protected] " ></
script >
80
86
```
81
87
@@ -86,6 +92,7 @@ If you have Python installed on your system, you can easily use it to run a stat
86
92
``` python2
87
93
cd docs && python -m SimpleHTTPServer 3000
88
94
```
95
+
89
96
``` python3
90
97
cd docs && python - m http.server 3000
91
98
```
@@ -107,11 +114,11 @@ You should set the `data-app` attribute if you changed `el`:
107
114
108
115
<div data-app id =" main" >Please wait...</div >
109
116
110
- <script >
111
- window .$docsify = {
112
- el: ' #main'
113
- }
114
- </script >
117
+ <script >
118
+ window .$docsify = {
119
+ el: ' #main' ,
120
+ };
121
+ </script >
115
122
```
116
123
117
124
Compare [ el configuration] ( configuration.md#el ) .
0 commit comments