-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document tagged versions as well as latest main
#199
Comments
This brings us one step towards having docs for every tagged version. For now (after the next tag push) there should only be one website for the latest tagged version. Earlier versions can be built offline. Progress to #199. In any case, it is better than the current situation: html documentation is being deployed for every single push on `main`, and the docs website did not indicate a version number anywhere. With these GH workflow adjustments, the docs should still be _built_ for each PR/push to main, allowing to catch errors in the documentation setup as they arise, but the html pages will not deployed to GitHub Pages if there is no tag. The version (obtained from `git describe`) is also indicated clearly on the website landing page and in the API docs sidebar footer. Related things that I rolled in here: - new make target to build docs (simply `make html` in the action spec) - favicon and proper branding (multiple resolutions of logo) - removed a duplicated sentence from the README - `docs/template/README.md` to explain how to maintain the template - fixed `rm -r` -> `rm -rf` in `make clean` recipe
Documentation should include the version number next time it builds on top of a tag (after #207). Need to test this with a
I don't think we need to worry about also building docs for |
We don't want to store built docs for earlier versions in the repository; at the same time, doing Part of the problem is that building the docs with |
Pdoc needs some extra steps for documenting multiple versions. Luckily, it seems someone has already come up with a way to do it: mitmproxy/pdoc#470 (comment). We can use that to either document the most recent tag + main HEAD or all tags + main HEAD.
The text was updated successfully, but these errors were encountered: