docsify-cli

4.4.4 • Public • Published

docsify

🖌 docsify cli - A magical documentation generator.

Backers on Open Collective Sponsors on Open Collective npm Github Actions Status Join Discord community and chat about Docsify license npm-total-download npm-monthly-download

Gold Sponsor via Open Collective

Screencast

Screencast

Running a server on localhost with 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] [--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:
    • Shorthand: -l
    • Type: boolean
    • Default: false
    • Description: Copy 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:
    • Shorthand: -t
    • Type: string
    • Default: vue
    • Description: Choose a theme, defaults to vue, other choices are buble, dark and pure.
  • --plugins option:
    • Shorthand: -p
    • Type: boolean
    • Default: false
    • Description: Provide a list of plugins to insert as <script> tags to index.html.

serve command

Run a server on localhost with livereload.

docsify serve <path> [--open false] [--port 3000]

# docsify s <path> [-o false] [-p 3000]
  • --open option:
    • Shorthand: -o
    • Type: boolean
    • Default: false
    • Description: Open the docs in the default browser, defaults to false. To explicitly set this option to false use --no-open.
  • --port option:
    • Shorthand: -p
    • Type: number
    • Default: 3000
    • Description: Choose a listen port, defaults to 3000.

generate command

Docsify's generators.

docsify generate <path> [--sidebar _sidebar.md]

# docsify g <path> [-s _sidebar.md]
  • --sidebar option:
    • Shorthand: -s
    • Type: string
    • Default: _sidebar.md
    • Description: Generate sidebar file, defaults to _sidebar.md.

Contributing

Please see the Contributing Guidelines

Contribution

Open in Gitpod

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.4.434,805latest
4.0.20next

Version History

VersionDownloads (Last 7 Days)Published
4.4.434,805
4.4.39,022
4.4.25,738
4.4.1542
4.4.0857
4.3.01,128
4.2.17
4.2.00
4.1.121
4.1.110
4.1.100
4.1.91
4.1.82
4.1.71
4.1.60
4.1.52
4.1.40
4.1.30
4.1.20
4.1.10
4.1.00
4.0.20
4.0.11
4.0.012
3.3.20
3.3.10
3.3.00
3.2.51
3.2.40
3.2.30
3.2.20
3.2.10
3.2.00
3.1.10
3.1.01
3.0.20
3.0.10
3.0.01
2.1.01
2.0.00
1.5.149
1.5.00
1.4.00
1.3.01
1.2.10
1.2.00
1.1.10
1.1.00
1.0.03
0.2.22
0.2.11
0.1.01

Package Sidebar

Install

npm i docsify-cli

Weekly Downloads

52,180

Version

4.4.4

License

MIT

Unpacked Size

43.6 kB

Total Files

21

Last publish

Collaborators

  • trusktr
  • qingwei.li
  • jhildenbiddle
  • anixsaha
  • jamesgeorge007
  • sy-records
  • koooooo-7