This directory hosts the source code for public documentation about UNIVAF's historical archives, which live at https://archives.getmyvax.org/. The docs site is built with MkDocs and the Material Theme, and get published to archives.getmyvax.org/docs/
(so they are clearly separated from the actual archive data).
There is also a index.html
that redirects from /
to /docs/
to send browsers that visit archives.getmyvax.org/
to the docs.
-
Make sure you have a recent version of Python 3 (MkDocs is Python-based).
-
Run
./setup.sh
to set up a Python virtual environment and install the dependencies.This will set up the virtual environment in a
.venv
folder inside this folder, then usepip
to install the dependencies fromrequirements.txt
. -
To use MkDocs, run
./run-mkdocs.sh <your> <args> <here>
.- To run the development server:
./run-mkdocs.sh serve
- To create a static build:
./run-mkdocs.sh build
You can also activate the virtual environment and run mkdocs directly instead of using the helper:
# Activate the Python virtual environment: source ./.venv/bin/activate # Run mkdocs: mkdocs serve # When you're done, deactivate the virtual environment: deactivate
- To run the development server: