generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# MkDocs | ||
|
||
## Introduction | ||
|
||
We are using MkDocs to generate our documentation. See [Docker-mkdocs repo](https://hackforla.github.io/docker-mkdocs/) for information about MkDocs and the image we're using. | ||
|
||
## MkDocs docker image | ||
|
||
### How it works | ||
|
||
#### Work on docs locally | ||
|
||
1. It should already be running with the peopledepot django server. If not, run the mkdocs container. | ||
|
||
```bash | ||
docker-compose up mkdocs # (1)! | ||
``` | ||
|
||
1. Optionally use the `-d` flag to run the container in the background | ||
|
||
1. Open a browser to [`http://localhost:8005/`](https://localhost:8005/) to view the documentation locally. | ||
|
||
1. Modify the files in the `docs` directory. The site will auto-update when the files are saved. | ||
|
||
1. Quit | ||
|
||
++ctrl+c++ to quit the local server and stop the container | ||
|
||
#### Auto-generated docs | ||
|
||
We have a [GitHub Action](https://github.com/hackforla/peopledepot/blob/main/.github/workflows/deploy-docs.yml) set up to generate and host the documentation on a [GitHub Pages site](https://hackforla.github.io/peopledepot/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters