🖌 docsify cli tool - A magical documentation generator.
🖌 docsify cli - A magical documentation generator.
Gold Sponsor via Open Collective
Running a server on
localhost
with live-reload.
Install docsify-cli
via npm
or yarn
globally.
npm i docsify-cli -g
# yarn global add docsify-cli
init
commandUse init
to generate your docs.
docsify init [path] [--local false] [--theme vue] [--plugins false]
# docsify i [path] [-l false] [-t vue] [--plugins false]
[path]
defaults to the current directory. Use relative paths like ./docs
(or docs
).
--local
option:
-l
false
docsify
files to the docs path, defaults to false
using cdn.jsdelivr.net
as the content delivery network (CDN). To explicitly set this option to false
use --no-local
.--theme
option:
-t
vue
vue
, other choices are buble
, dark
and pure
.--plugins
option:
-p
false
<script>
tags to index.html
.serve
commandRun a server on localhost
with livereload.
docsify serve [path] [--open false] [--port 3000]
# docsify s [path] [-o false] [-p 3000]
--open
option:
-o
false
false
. To explicitly set this option to false
use --no-open
.--port
option:
-p
3000
3000
.generate
commandDocsify’s generators.
docsify generate [path] [--sidebar _sidebar.md] [--overwrite]
# docsify g [path] [-s _sidebar.md] [-o]
--sidebar
option:
-s
_sidebar.md
_sidebar.md
.--overwrite
option:
-o
false
Please see the Contributing Guidelines