Maintaining documentation and releases¶
The source of truth is version-controlled Markdown in docs/, with a concise
repository README. The MkDocs site is built from those files. Do not edit
generated HTML as a separate documentation source.
Edit and verify¶
From a checkout with the development and documentation extras installed:
python -m pip install -e ".[dev,docs]"
python scripts/generate_docs_reference.py
python scripts/generate_docs_reference.py --check
python scripts/validate_docs.py
python -m pytest -q
python -m mkdocs build --strict
python -m mkdocs serve
The local preview is available at the address printed by MkDocs. Build output is
written to ignored site/. docs/reference/ tables/schema and docs/examples/
configs are generated; update their source models/wrappers/configurations and
rerun the generator rather than editing the generated files independently.
validate_docs.py validates complete YAML examples and marked YAML fragments,
checks public command help and documented flags, compiles Python snippets, checks
the illustrative QA character span, and executes the main Python API examples
against a temporary fixture corpus with controlled providers. These providers
test software contracts; their synthetic outputs are not scientific gold data.
The checker does not send external API requests or execute arbitrary shell
commands copied from Markdown. MkDocs strict mode checks site navigation and
internal links; external references are reviewed separately.
Review criteria¶
For each change, check task names, response/offset conventions, default values, service dependencies, cache behavior, and reproducibility claims against the implementation. Label partial YAML as a fragment. Separate illustrative records from exported records, model judgments from expert annotation, and engineering tests from scientific validation. Cite primary sources for external scientific or licensing claims. Avoid publishing real credentials in examples.
Publish on GitHub Pages¶
The repository includes .github/workflows/docs.yml. On pull requests it checks
references/examples, runs tests, and builds the site. On a matching push to main
or a manual run on main, it uploads the site and deploys with GitHub Pages.
One-time repository setup:
- Review and commit the documentation together with the implementation version it describes. The current checkout can contain changes not yet in a release.
- In GitHub, open Settings → Pages → Build and deployment and choose GitHub Actions as the source. Repository access and Pages availability must permit publication.
- Push the reviewed changes to
main, or run the Documentation workflow. - Check the workflow result and the deployment URL before announcing the site.
The public project URL is https://sasalya98.github.io/hermes-benchmark/.
A local build does not update that deployment; check the publishing workflow
before assuming a local edit is visible on the site.
If the repository owner/name changes, update site_url, repo_url, and edit links.
This uses the official GitHub Pages custom-workflow process. MkDocs also documents deployment options. Do not run a deployment command on an unreviewed working tree: a site should describe the version of the implementation being released.
Publish a package release on PyPI¶
Run the checks under Edit and verify before packaging a
release. Confirm the version in pyproject.toml; uploaded distribution filenames
cannot be reused for a corrected build. Use a new, empty output directory for
each version so an upload cannot include artifacts from an earlier release.
For version 0.0.6:
python -m pip install --upgrade build twine
python -m build --outdir dist/pypi-0.0.6
python -m twine check --strict dist/pypi-0.0.6/hermes_benchmark-0.0.6-py3-none-any.whl dist/pypi-0.0.6/hermes_benchmark-0.0.6.tar.gz
Inspect both archives for required language templates and unintended private files. Install the wheel in a separate environment and verify the CLI before uploading. Authenticate with a PyPI API token; Twine prompts for the token as the password when it is not provided by another credential source:
python -m twine upload --repository pypi --username __token__ dist/pypi-0.0.6/hermes_benchmark-0.0.6-py3-none-any.whl dist/pypi-0.0.6/hermes_benchmark-0.0.6.tar.gz
Keep tokens out of source files, documentation, and command-line arguments. For an initial project, PyPI requires an account-scoped token; after project creation, a project-scoped token can be used. See the official packaging guide and PyPI publishing documentation.
After upload, verify the version and file hashes on PyPI and install the exact
version from https://pypi.org/simple in a fresh environment. Check pip check,
hermes-data --help, and a fixture generation/validation run. Upload success
alone does not verify that consumers can install and use the distribution.
Release evidence¶
Keep the strict build output, software test results, and documentation validation report with release evidence. Record the commit and dependency environment used. Do not promote local smoke-test counts into claims about annotation accuracy or model performance. See Methodology for a dataset-release record.