@@ -18,9 +18,9 @@ docsify init ./docs
1818
1919After the ` init ` is complete, you can see the file list in the ` ./docs ` subdirectory.
2020
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
2424
2525You can easily update the documentation in ` ./docs/README.md ` , of course you can add [ more pages] ( more-pages.md ) .
2626
@@ -43,21 +43,24 @@ If you don't like `npm` or have trouble installing the tool, you can manually cr
4343
4444<!DOCTYPE html>
4545<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 >
6164</html >
6265```
6366
@@ -75,7 +78,10 @@ Specifying a major version in the URL (`@4`) will allow your site will receive n
7578If 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.
7679
7780``` 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+ />
7985<
script src =
" //cdn.jsdelivr.net/npm/[email protected] " ></
script >
8086```
8187
@@ -86,6 +92,7 @@ If you have Python installed on your system, you can easily use it to run a stat
8692``` python2
8793cd docs && python -m SimpleHTTPServer 3000
8894```
95+
8996``` python3
9097cd docs && python - m http.server 3000
9198```
@@ -107,11 +114,11 @@ You should set the `data-app` attribute if you changed `el`:
107114
108115<div data-app id =" main" >Please wait...</div >
109116
110- <script >
111- window .$docsify = {
112- el: ' #main'
113- }
114- </script >
117+ <script >
118+ window .$docsify = {
119+ el: ' #main' ,
120+ };
121+ </script >
115122```
116123
117124Compare [ el configuration] ( configuration.md#el ) .
0 commit comments