Contributor guide#
These sections describe how you can make contributions to this theme.
Run the tests#
The easiest way to run the test suite is using nox.
This will install the local version of the package and run the test suite.
nox -s test
Build the documentation#
The easiest way to build the documentation locally is using nox.
To do so, run this command:
nox -s docs
To build the documentation with a liveserver that will automatically reload to show previews of your changes, use:
nox -s docs -- live
Make a release#
The easiest way to make a release is to follow these steps:
Install
tbump:pip install tbump
Bump the version:
tbump NEW_VERSION
Then follow the prompts.
This will bump the appropriate locations, make a release commit, and push the tag to GitHub.
Generate a changelog for the new version:
github-activity -s [old-tag] -u [new-tag]
We will paste this into the GitHub release.
Draft a new release on GitHub. Under the
releasespage click theDraft a New Releasebutton.Connect the release to the tag you just pushed.
The name of the release is also
tag-name.Paste your changelog here.
Publish the release. When you hit
Publish release, a GitHub action will trigger that runs our tests, and then publishes the latest tag to PyPI if the tests pass. That’s it, you’re done!