Hugo docs: Add dark mode support, theme variant selector and print #5703
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Remark:
Same #5702 (closed), but for master (because it had nothing to do with py3 and had an unrelated CI failure)
Thanks everyone for all the reviews and tips for #5698!
In #5698 (comment) there was some doubt (or maybe just misunderstanding) on the second commit of #5698 for publishing a preview of the docs on the clone repo's GitHub pages (will only be published if the GitHub pages are configured to be published from GitHub actions, not from the
gh-pages
branch).In any case, the two commits of #5698 are no dependent on each other, so this submits only the first commits of it for review.
are two review comments with hints on the issues that exist in the print view and the dark mode at some places.
Thanks for the hints on fixing or working around these issues!
I cannot incorporate them in this PR at the moment because I'll be on PTO until Monday.
But if you merge (or otherwise approve - does not have to be now - the) enabling the selection of the theme variants (independent on if you include the auto switch to dark mode by default using the "auto" variant), we can make the fixes for those locations over time.
You can also close this PR if you like to have either the dark mode or print view issues fixed before enabling the automatic dark mode, all of that is fine of course.
I only opened these PRs because I saw the possibility to make these features of the theme available.
I'll (tentatively) close #5698 and to focus on this PR for now.