How to Test
Test Locally
You can test mkdocs-tacc or mkdocs-tacc clients locally with PIP or Poetry.
Some clients also support Docker and Make. *
-
PIP should be at least version
21.3.
Only checks current version. Upgrade command is different.pip --version -
To install dependencies and serve docs in isolation:
To test client instead, use Test Client Repo tab.
python -m venv venv source venv/bin/activate pip install -e ".[all]" mkdocs serveThe client repo might require additional or different commands. Check its documentation.
python -m venv venv source venv/bin/activate pip install "." mkdocs serve
To deactivate environment: deactivate
To remove environment: rm -rf venv
-
Poetry should be at least version
1.5.0.poetry --versionOnly checks current version. Upgrade command is different.
-
To install dependencies and serve docs in isolation:
To test client instead, use Test Client Repo tab.
poetry install --sync --extras "all" poetry run mkdocs serveThe client repo might require additional or different commands. Check its documentation.
poetry install --sync poetry run mkdocs serve
To deactivate environment: exit
To remove environment: poetry env remove --all
-
Docker should be at least version
20.10.0.docker --versionOnly checks current version. Upgrade command is different.
-
To install dependencies and serve docs in isolation:
The client repo might require additional or different commands. Check its documentation.
docker compose up
To deactivate environment: docker compose stop
To remove environment: docker compose down
-
Ensure Make is available:
make --version -
To install dependencies and serve docs in isolation:
The client repo might require additional or different commands. Check its documentation.
make start
To deactivate environment: Ctrl+C
To remove environment: make stop
Test Remotely
Some clients will offer automatic, remote build and deploy for testing.
Test on Client
Test Theme on Client
As you follow Test Locally instructions, use Test Client Repo tab.
Ignore this tab. Read the other tab.
Read this tab. Ignore the other tab.
Test Theme at Specific Revision
To test a specific revision of mkdocs-tacc on a client repository:
- Clone and/or enter client repository.
-
Install the theme at a specific revision (e.g. a version) —
pip install mkdocs-tacc==0.5.0poetry add mkdocs-tacc@0.5.0— or a specific branch —
pip install "mkdocs-tacc[all] @ git+https://github.com/TACC/mkdocs-tacc.git#work-in-progress"poetry add "mkdocs-tacc[all] @ git+https://github.com/TACC/mkdocs-tacc.git#work-in-progress"— or other revision.
Test Theme in Real-Time
To test mkdocs-tacc theme changes in real-time on a client repository:
- Clone and/or enter client repository.
-
Install the theme in editable mode, e.g.
pip install -e "../mkdocs-tacc[all]"Where
../mkdocs-taccis the path to your clone of themkdocs-taccrepository.If changes since that command are not reflected, try:
pip uninstall mkdocs-tacc pip install -e "../mkdocs-tacc[all]"poetry add --editable ../mkdocs-tacc --extras=allWhere
../mkdocs-taccis the path to your clone of themkdocs-taccrepository.If changes since that command are not reflected, try:
poetry remove mkdocs-tacc poetry add --editable ../mkdocs-tacc --extras=all