## Quick Start ### Create a project First create a project, then create a `docs` folder ```bash mkdir my-project && cd my-project mkdir docs && cd docs ``` ### Create entry file Create a `index.html` file ```html
``` Create `README.md` as the main page ```markdown # Title ## blabla ``` ### Deploy! Push code and activate **GitHub Pages** via your repo's settings  ## CLI Easy to setup and preview a docs. ### Install ```bash npm i docsify-cli -g ``` ### Setup Setup a boilerplate docs ```bash docsify init docs ``` ### Preview Preview and serve your docs using ```bash docsify serve docs ``` Read more [docsify-cli](https://github.com/QingWei-Li/docsify-cli) ## More ### Themes Currently available `vue.css` and `buble.css` ```html ``` Minified files ```html ``` ### Multiple pages If you need other pages, directly create the markdown file, such as `guide.md` is `/#/guide`. ### Navbar Code in `index.html` ```html ``` ### CDN - UNPKG [https://unpkg.com/docsify/](https://unpkg.com/docsify/) - jsDelivr [http://www.jsdelivr.com/projects/docsify](http://www.jsdelivr.com/projects/docsify) ### Cover Page Generate a cover page with markdown. Create a `_coverpage.md` and set `data-coverpage` in the script tag. ```markdown  # docsify 1.2.0 > A magical documentation site generator. - Simple and lightweight (~12kb gzipped) - Multiple themes - Not build static html files [GitHub](https://github.com/QingWei-Li/docsify/) [Get Started](#quick-start) ``` #### Custom background Currently the background of the cover page is generated randomly. We can customize the background color, or add a background image. ```markdown # docsify 1.2.0 > xxx [GitHub](https://github.com/QingWei-Li/docsify/) [Get Started](#quick-start)   ``` ### Markdown parser Docsify uses [marked](https://github.com/chjj/marked) to parse markdown. We can configure it ```js window.$docsify = { markdown: { smartypants: true } } ``` And it can even be customized ```js window.$docsify = { markdown: function(marked) { // ... return marked } } ``` ### Doc Helpers #### p.tip `!> ` add your content will rendered as `content
` ```markdown !> Important **information** ``` It will be rendered ```htmlImportant information
``` e.g. !> Important **information** #### p.warn ```markdown ?> todo info ``` ?> todo info ### Combining Vue We can write the Vue syntax directly in the markdown file, when the Vue library is loaded into `index.html`. Default will automatically initialize a Vue instance, of course, we can also manually. index.html ```html ``` ```markdownHello, {{ msg }}