# Server client renderer See https://docsify.now.sh ## Why SSR? - Better SEO - Feeling cool ## Quick start 1. Install `now` and `docsify-cli` in your project. ```bash npm i now -g npm i docsify-cli -D ``` 2. Edit `package.json`. If the documentation in `./docs` subdirectory. ```json { "name": "my-project", "scripts": { "start": "docsify start ." }, "files": [ "docs" ], "docsify": { "config": { "basePath": "/docs/", "loadSidebar": true, "loadNavbar": true, "coverpage": true, "name": "docsify" } } } ``` 3. Remove `index.html` !> The `basePath` just like webpack `publicPath`. You should config it if your docs is in the subdirectory. 4. We can preview in the local to see if it works. ```bash npm start # open http://localhost:4000 ``` 5. Publish it! ```bash now -p ``` Now, You have a support for SSR the docs site. ## Custom template You can provide a templte for entire page's HTML. such as ```html