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. *

  1. PIP should be at least version 21.3.

    pip --version
    Only checks current version. Upgrade command is different.

  2. 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 serve

    The 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

  1. Poetry should be at least version 1.5.0.

    poetry --version

    Only checks current version. Upgrade command is different.

  2. 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 serve

    The 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

  1. Docker should be at least version 20.10.0.

    docker --version

    Only checks current version. Upgrade command is different.

  2. 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

  1. Ensure Make is available:

    make --version
  2. 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:

  1. Clone and/or enter client repository.
  2. Install the theme at a specific revision (e.g. a version) —

    pip install mkdocs-tacc==0.5.0
    poetry 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:

  1. Clone and/or enter client repository.
  2. Install the theme in editable mode, e.g.

    pip install -e "../mkdocs-tacc[all]"

    Where ../mkdocs-tacc is the path to your clone of the mkdocs-tacc repository.

    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=all

    Where ../mkdocs-tacc is the path to your clone of the mkdocs-tacc repository.

    If changes since that command are not reflected, try:

    poetry remove mkdocs-tacc
    poetry add --editable ../mkdocs-tacc --extras=all