DesignSafe MkDocs documentation with customized ReadTheDocs theme.
[!NOTE] For a detailed walkthrough of how to contribute to Use Cases, see its README.
[^1]: Enabled extensions are tracked by https://github.com/TACC/TACC-Docs/blob/main/mkdocs.base.yml under markdown_extensions:
.
[!IMPORTANT] This solution uses a different theme than designsafe-ci.org/user-guide (details).
Install dependencies:\ You should only need to do this once, or after a new release.
./bin/tacc-setup.sh
pip install poetry
Isolate dependencies:
poetry shell
Update & Serve the docs:
poetry install
cd user-guide
mkdocs serve
After the poetry shell
command, you should be in a Poetry-managed environment. Your prompt might be prefixed with the name of the environment.
[!WARNING] This solution does not work on macOS with an M1 nor M2 chip (details).
Start the Docker container to serve the docs.
Linux or Mac (macOS) user:
make build
make start
Windows user:
docker-compose -f docker-compose.yml build
docker-compose -f docker-compose.yml up
[^2]: To manually build or deploy, consult our internal documentation.
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/.