mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-24 07:30:12 +01:00
Added note on --dirtyreload flag
This commit is contained in:
parent
6ceef24179
commit
a532755fa8
@ -138,9 +138,18 @@ MkDocs includes a live preview server, so you can preview your changes as you
|
||||
write your documentation. The server will automatically rebuild the site upon
|
||||
saving. Start it with:
|
||||
|
||||
``` sh
|
||||
mkdocs serve # (1)
|
||||
```
|
||||
mkdocs serve
|
||||
```
|
||||
|
||||
1. If you have a large documentation project, it might take minutes until
|
||||
MkDocs has rebuilt all pages for you to preview. If you're only interested
|
||||
in the current page, the `--dirtyreload` flag will make rebuilds much
|
||||
faster:
|
||||
|
||||
```
|
||||
mkdocs serve --dirtyreload
|
||||
```
|
||||
|
||||
If you're running Material for MkDocs from within Docker, use:
|
||||
|
||||
|
@ -263,7 +263,7 @@ npm start
|
||||
Then, in a second terminal window, start the MkDocs live preview server with:
|
||||
|
||||
```
|
||||
mkdocs serve
|
||||
mkdocs serve --watch-theme
|
||||
```
|
||||
|
||||
Point your browser to [localhost:8000][live preview] and you should see this
|
||||
|
Loading…
Reference in New Issue
Block a user