mirror of
https://github.com/MichaelCurrin/mkdocs-quickstart.git
synced 2026-08-07 09:23:01 +02:00
feat: Update pages
This commit is contained in:
+2
-2
@@ -16,8 +16,8 @@ Follow the tutorial to add an existing project or create a project from scratch.
|
|||||||
- Install and configure a new or existing project.
|
- Install and configure a new or existing project.
|
||||||
- Run it locally.
|
- Run it locally.
|
||||||
- Deploy it.
|
- Deploy it.
|
||||||
- **Copy this project to your repos**
|
- **Add a copy of this project to your repos**
|
||||||
- [](https://github.com/MichaelCurrin/mkdocs-quickstart/generate)
|
- [](https://github.com/MichaelCurrin/mkdocs-quickstart/generate)
|
||||||
- **View the live demo**
|
- **View the live demo**
|
||||||
- This site is hosted on Github Pages. See if you like it. Other themes are available - see the tutorial.
|
- This site is hosted on Github Pages. See if you like it. Other themes are available - see the tutorial.
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- [Python](https://www.python.org/)
|
- [Python 3](https://www.python.org/)
|
||||||
|
|
||||||
|
|
||||||
## Install system dependencies
|
## Install system dependencies
|
||||||
@@ -35,17 +35,22 @@ python3 -m venv venv
|
|||||||
|
|
||||||
Activate it.
|
Activate it.
|
||||||
|
|
||||||
```
|
```sh
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
```
|
```
|
||||||
|
|
||||||
Install dependencies.
|
Install dependencies.
|
||||||
|
|
||||||
```sh
|
- Directly.
|
||||||
pip install mkdocs
|
```sh
|
||||||
```
|
pip install mkdocs
|
||||||
|
```
|
||||||
|
- Or use a `requirements.txt` file with `mkdocs` in it.
|
||||||
|
```sh
|
||||||
|
pip install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
### Globally
|
### Install globally
|
||||||
|
|
||||||
If you prefer to install MkDocs once and reuse it across projects, you can install it globally.
|
If you prefer to install MkDocs once and reuse it across projects, you can install it globally.
|
||||||
|
|
||||||
|
|||||||
+20
-10
@@ -2,17 +2,27 @@
|
|||||||
> A simplified version of the tutorial.
|
> A simplified version of the tutorial.
|
||||||
|
|
||||||
|
|
||||||
## Local setup and deploy
|
## Local setup
|
||||||
|
|
||||||
1. `pip install mkdocs`
|
1. [Install](installation.md)
|
||||||
2. Setup project
|
- `pip install mkdocs`
|
||||||
- Generate new - `mkdocs new .`
|
2. [Setup project](setup_project.md)
|
||||||
- Copy this project - [](https://github.com/MichaelCurrin/mkdocs-quickstart/generate)
|
- `mkdocs new .` or [](https://github.com/MichaelCurrin/mkdocs-quickstart/generate)
|
||||||
3. `mkdocs serve`
|
3. [Run](usage.md)
|
||||||
4. `mkdocs gh-deploy`
|
- `mkdocs serve`
|
||||||
5. View published site on Github Pages at `https://USERNAME.github.io/REPO-NAME/`
|
4. View on [http://localhost:8000](http://localhost:8000)
|
||||||
|
|
||||||
|
|
||||||
## Remote deploy
|
## Deploy to remote site
|
||||||
|
|
||||||
For CI/CD deploy, use Github Actions with an action such as [Deploy MkDocs](https://github.com/marketplace/actions/deploy-mkdocs). This is not covered in this tutorial.
|
### Run deploy command locally
|
||||||
|
|
||||||
|
1. [Deploy](deploy.md) to Github Pages
|
||||||
|
- `mkdocs gh-deploy`
|
||||||
|
2. View published site on Github Pages at `https://USERNAME.github.io/REPO-NAME/`
|
||||||
|
|
||||||
|
### Run continuous integration
|
||||||
|
|
||||||
|
For CI/CD deploy, use Github Actions with an action such as [Deploy MkDocs](https://github.com/marketplace/actions/deploy-mkdocs). Or use Netlify.
|
||||||
|
|
||||||
|
This is not covered in this tutorial.
|
||||||
|
|||||||
Reference in New Issue
Block a user