DesignSafe MkDocs documentation with customized ReadTheDocs theme.
How to Contirbute to Use Cases
How to Contribute Other Changes:
- Fork this repository.
(unless you are a direct collaborator) - Edit relevant files that need update.
(upload images as necessary) - Commit your changes.
- Test your changes.
(if comfortable using a command prompt) - Request a review.
(a.k.a. create a "Pull Request")
- Markdown syntax (extended) via MkDocs' Markdown support
- plus some1 enabled Python-Markdown extensions
- plus some1 enabled PyMdown exensions
Important
This method has different theme than live website (#42) and bugs (#66).
- Have Python installed.
Known supported versions are from 3.10 to 3.12. - Navigate into your clone of this repo.
- Install software to manage dependencies:
You should only need to do this once.pip install poetry
- Install/Update dependencies:
You should only need to do this after new releases../bin/tacc-setup.sh poetry install
- Serve the docs:
After the
poetry shell cd user-guide mkdocs serve
poetry shell
command, you should be in a Poetry-managed environment. Your prompt might be prefixed with the name of the environment. - Open the website at the URL echoed by the program e.g. http://127.0.0.1:8000/user-guide/.
-
Have Docker installed.
We recommend doing so via Docker-Desktop. -
Navigate into your clone of this repository.
-
Start the Docker container to serve the docs.
Using
Make
:make build make start
Or:
docker compose build docker compose up
-
Open the website at the URL provided e.g. http://localhost:8000/user-guide/.
Automatic builds (not deploys) should occur on pushes to any branch.2
Automatic deploys should occur after an automatic build on the main
branch.2
All commits to main
will trigger a docker build and push a new image to designsafeci/ds-user-guide:latest
.
A Watchtower service monitors new pushes to this dockerhub repo and pull down new images on the fly to https://designsafeci-dev.tacc.utexas.edu/user-guide/.
Footnotes
-
Enabled extensions are tracked by https://github.com/TACC/TACC-Docs/blob/main/mkdocs.base.yml under
markdown_extensions:
. ↩ ↩2 -
To manually build or deploy, consult our internal documentation. ↩ ↩2