mirror of
https://github.com/MichaelCurrin/mkdocs-quickstart.git
synced 2026-08-08 01:43:04 +02:00
feat: Update deploy.md
This commit is contained in:
+9
-4
@@ -9,16 +9,21 @@ See [Deploying Your Docs](https://www.mkdocs.org/user-guide/deploying-your-docs/
|
|||||||
|
|
||||||
_Note this is for a Project Page and not Organization and User Pages._
|
_Note this is for a Project Page and not Organization and User Pages._
|
||||||
|
|
||||||
Run this command locally to deploy to Github Pages by building and pushing to `gh-pages` branch.
|
How to deploy to Github Pages. Run this to build to `site` directory, push to `gh-pages` branch and enable Github Pages (if it was not yet enabled.)
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdocs gh-deploy
|
mkdocs gh-deploy
|
||||||
```
|
```
|
||||||
|
|
||||||
See options:
|
Then go to your repo on Github, see the *environment* tab and click _View deployment_.
|
||||||
|
|
||||||
|
e.g.
|
||||||
|
|
||||||
|
- [michaelcurrin.github.io/mkdocs-quickstart/](https://michaelcurrin.github.io/mkdocs-quickstart/)
|
||||||
|
|
||||||
|
|
||||||
|
See deploy options:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdocs gh-deploy --help
|
mkdocs gh-deploy --help
|
||||||
```
|
```
|
||||||
|
|
||||||
_Note you cannot view the site before its pushed, so use the `build` or `serve` commands for that._
|
|
||||||
|
|||||||
Reference in New Issue
Block a user