mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
docs(ssr): update sidebar
This commit is contained in:
parent
4b838247ea
commit
490c8a19d3
@ -18,6 +18,6 @@
|
||||
- [Vue compatibility](vue.md)
|
||||
- [CDN](cdn.md)
|
||||
- [Offline Mode(PWA)](pwa.md)
|
||||
- [(Server-client renderer(SSR)](ssr.md)
|
||||
- [Server-client renderer(SSR)](ssr.md)
|
||||
|
||||
- [Changelog](changelog.md)
|
||||
|
||||
@ -8,14 +8,14 @@ See https://docsify.now.sh
|
||||
|
||||
## Quick start
|
||||
|
||||
1. Install `now` and `docsify-cli` in your project.
|
||||
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.
|
||||
Edit `package.json`. If the documentation in `./docs` subdirectory.
|
||||
|
||||
```json
|
||||
{
|
||||
@ -38,12 +38,12 @@ npm i docsify-cli -D
|
||||
}
|
||||
```
|
||||
|
||||
3. Remove `index.html`
|
||||
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.
|
||||
We can preview in the local to see if it works.
|
||||
|
||||
```bash
|
||||
npm start
|
||||
@ -51,7 +51,7 @@ npm start
|
||||
# open http://localhost:4000
|
||||
```
|
||||
|
||||
5. Publish it!
|
||||
Publish it!
|
||||
|
||||
```bash
|
||||
now -p
|
||||
|
||||
10
docs/ssr.md
10
docs/ssr.md
@ -8,14 +8,14 @@ See https://docsify.now.sh
|
||||
|
||||
## Quick start
|
||||
|
||||
1. Install `now` and `docsify-cli` in your project.
|
||||
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.
|
||||
Edit `package.json`. If the documentation in `./docs` subdirectory.
|
||||
|
||||
```json
|
||||
{
|
||||
@ -38,11 +38,11 @@ npm i docsify-cli -D
|
||||
}
|
||||
```
|
||||
|
||||
3. Remove `index.html`
|
||||
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.
|
||||
We can preview in the local to see if it works.
|
||||
|
||||
```bash
|
||||
npm start
|
||||
@ -50,7 +50,7 @@ npm start
|
||||
# open http://localhost:4000
|
||||
```
|
||||
|
||||
5. Publish it!
|
||||
Publish it!
|
||||
|
||||
```bash
|
||||
now -p
|
||||
|
||||
@ -8,7 +8,7 @@ See https://docsify.now.sh
|
||||
|
||||
## Quick start
|
||||
|
||||
1. Install `now` and `docsify-cli` in your project.
|
||||
Install `now` and `docsify-cli` in your project.
|
||||
|
||||
```bash
|
||||
npm i now -g
|
||||
@ -39,11 +39,11 @@ npm i docsify-cli -D
|
||||
```
|
||||
|
||||
|
||||
3. Remove `index.html`
|
||||
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.
|
||||
We can preview in the local to see if it works.
|
||||
|
||||
```bash
|
||||
npm start
|
||||
@ -51,7 +51,7 @@ npm start
|
||||
# open http://localhost:4000
|
||||
```
|
||||
|
||||
5. Publish it!
|
||||
Publish it!
|
||||
|
||||
```bash
|
||||
now -p
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user