GitHub - docsifyjs/docsify-cli: 🖌 docsify cli tool - A magical documentation generator.
Repository navigation
docsify-cliPublic
About
🖌 docsify cli tool - A magical documentation generator.
cli.docsifyjs.orgTopics
docsify docsify-cli javascript nodejsResources
Readme MIT licenseCode of conduct
Code of conductContributing
ContributingSecurity policy
Security policy Activity Custom propertiesStars
781 starsWatchers
19 watchingForks
168 forks Report repositoryBranches
Tags
Go to Branches page Go to Tags page
Latest commit
ÂHistory
308 Commits
View commit history for this file.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|---|---|---|
| .github/ workflows | .github/ workflows | Â | Â |
| docs | docs | Â | Â |
| e2e | e2e | Â | Â |
| lib | lib | Â | Â |
| media | media | Â | Â |
| tools/ locales | tools/ locales | Â | Â |
| .editorconfig | .editorconfig | Â | Â |
| .gitignore | .gitignore | Â | Â |
| .gitpod.yml | .gitpod.yml | Â | Â |
| .npmignore | .npmignore | Â | Â |
| .nvmrc | .nvmrc | Â | Â |
| CHANGELOG.md | CHANGELOG.md | Â | Â |
| CONTRIBUTING.md | CONTRIBUTING.md | Â | Â |
| LICENSE | LICENSE | Â | Â |
| README.md | README.md | Â | Â |
| ava.config.js | ava.config.js | Â | Â |
| eslint.config.mjs | eslint.config.mjs | Â | Â |
| package-lock.json | package-lock.json | Â | Â |
| package.json | package.json | Â | Â |
| rollup.config.js | rollup.config.js | Â | Â |
Repository files navigation
🖌 docsify cli - A magical documentation generator.
Gold Sponsor via Open Collective
Screencast
Running a server on
localhostwith live-reload.
Installation
Install docsify-cli via npm or yarn globally.
npm i docsify-cli -g # yarn global add docsify-cli
Usage
init command
Use init to generate your docs.
docsify init [path] [--local false] [--rcMode] [--theme vue] [--plugins] # docsify i [path] [-l false] [--rc] [-t vue] [-p]
[path] defaults to the current directory. Use relative paths like ./docs (or docs).
--localoption:- Shorthand:
-l - Type: boolean
- Default:
false - Description: Copy
docsifyfiles to the docs path, defaults tofalseusingcdn.jsdelivr.netas the content delivery network (CDN). To explicitly set this option tofalseuse--no-local.
- Shorthand:
--rcModeoption:- Shorthand:
--rc - Type: boolean
- Default:
false - Description: Try
docsifypreview release version (rcresource).
- Shorthand:
--themeoption:- Shorthand:
-t - Type: string
- Default:
vue - Description: Choose a theme, defaults to
vue.
- Shorthand:
--pluginsoption:- Shorthand:
-p - Type: boolean
- Default:
false - Description: Provide a list of plugins to insert as
<script>tags toindex.html.
- Shorthand:
serve command
Run a server on localhost with livereload.
docsify serve [path] [--open false] [--port 3000] # docsify s [path] [-o false] [-p 3000]
--openoption:- Shorthand:
-o - Type: boolean
- Default:
false - Description: Open the docs in the default browser, defaults to
false. To explicitly set this option tofalseuse--no-open.
- Shorthand:
--portoption:- Shorthand:
-p - Type: number
- Default:
3000 - Description: Choose a listen port, defaults to
3000.
- Shorthand:
--hostoption:- Shorthand:
-H - Type: string
- Default:
localhost - Description: Choose a host to bind to, defaults to
localhost.
- Shorthand:
generate command
Docsify's generators.
docsify generate [path] [--sidebar _sidebar.md] [--overwrite] # docsify g [path] [-s _sidebar.md] [-o]
-
--sidebaroption:- Shorthand:
-s - Type: string
- Default:
_sidebar.md - Description: Generate sidebar file, defaults to
_sidebar.md.
- Shorthand:
-
--overwriteoption:- Shorthand:
-o - Type: boolean
- Default:
false - Description: Allow to overwrite generated files.
- Shorthand:
Contributing
Please see the Contributing Guidelines
Contribution
License
About
🖌 docsify cli tool - A magical documentation generator.
cli.docsifyjs.org