-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Only deploy docs for latest tag
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
- Loading branch information
1 parent
4847d05
commit e9029aa
Showing
10 changed files
with
46 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
The docs template is modified from the default template found at: | ||
|
||
<https://github.com/mitmproxy/pdoc/tree/main/pdoc/templates/default> | ||
|
||
The most significant changes are: | ||
- adding buttons to chose from API or tests/examples docs to the landing page | ||
- switching to a dark CSS theme, based on the example found at the link below | ||
|
||
<https://github.com/mitmproxy/pdoc/tree/main/examples/dark-mode> | ||
|
||
When pdoc releases a new version we should check | ||
if there were any upstream template/theme changes that we want to merge. | ||
It is not necessary to copy-paste template files that we don't intend to change, | ||
as pdoc will automatically fall back to using the files from the default theme. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters