Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🖌 docsify cli tool - A magical documentation generator.

License

NotificationsYou must be signed in to change notification settings

docsifyjs/docsify-cli

docsify

🖌 docsify cli - A magical documentation generator.

Backers on Open CollectiveSponsors on Open CollectivenpmGithub Actions StatusJoin Discord community and chat about Docsifylicensenpm-total-downloadnpm-monthly-download

Gold Sponsor viaOpen Collective

Screencast

Screencast

Running a server onlocalhost with live-reload.

Installation

Installdocsify-cli vianpm oryarn globally.

npm i docsify-cli -g# yarn global add docsify-cli

Usage

init command

Useinit 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 (ordocs).

  • --local option:
    • Shorthand:-l
    • Type: boolean
    • Default:false
    • Description: Copydocsify files to the docs path, defaults tofalse usingcdn.jsdelivr.net as the content delivery network (CDN). To explicitly set this option tofalse use--no-local.
  • --rcMode option:
    • Shorthand:--rc
    • Type: boolean
    • Default:false
    • Description: Trydocsify preview release version (rc resource).
  • --theme option:
    • Shorthand:-t
    • Type: string
    • Default:vue
    • Description: Choose a theme, defaults tovue.
  • --plugins option:
    • Shorthand:-p
    • Type: boolean
    • Default:false
    • Description: Provide a list of plugins to insert as<script> tags toindex.html.

serve command

Run a server onlocalhost 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 tofalse. To explicitly set this option tofalse use--no-open.
  • --port option:
    • Shorthand:-p
    • Type: number
    • Default:3000
    • Description: Choose a listen port, defaults to3000.

generate command

Docsify's generators.

docsify generate [path] [--sidebar _sidebar.md] [--overwrite]# docsify g [path] [-s _sidebar.md] [-o]
  • --sidebar option:

    • Shorthand:-s
    • Type: string
    • Default:_sidebar.md
    • Description: Generate sidebar file, defaults to_sidebar.md.
  • --overwrite option:

    • Shorthand:-o
    • Type: boolean
    • Default:false
    • Description: Allow to overwrite generated files.

Contributing

Please see theContributing Guidelines

Contribution

Open in Gitpod

License

MIT

About

🖌 docsify cli tool - A magical documentation generator.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  
  •  

Contributors27


[8]ページ先頭

©2009-2025 Movatter.jp