-
Notifications
You must be signed in to change notification settings - Fork 53
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
Custom footers lose the { Light | Dark | Auto } appearance selector #546
Comments
The actual toggle is in I wonder what the right approach here looks like:
@mportiz08, what would be a better approach here? |
It might be possible to define a |
Although it would be nice to have quicker access to the toggle, I personally worry about the alternative of having it always present at a fixed location on the viewport. The left sidebar isn't present for tutorial pages at the moment either, so it doesn't necessarily fit in naturally within that component. I do tend to feel like this would most likely be resolved with a better design for this setting that impacts global settings for the website where it fits on every page without the need to be attached to the footer.
It would be good to document this somewhere, although this limitation is one of the reasons that the custom header/footer are experimental/undocumented features at the moment.
Something like that could be an interesting solution, essentially letting custom header/footers include this component if they want, although I agree that it is likely something that might be complex to make work. |
Description
If you use DocC's
--experimental-enable-custom-templates
flag and provide a customfooter.html
, users lose the ability to override their system's light/dark appearance preference. This happens because DocC-Render puts its color scheme selector in the footer, which is removed if a project provides a custom footer.I worked around this for the Swift book in: swiftlang/swift-book#110, but this bug tracks a more general solution.
Checklist
main
branch of this package.Expected Behavior
Custom footers do not need to implement their own appearance toggle.
Actual behavior
Custom footers need to implement their own appearance toggle.
Steps To Reproduce
No response
Swift-DocC-Render Version Information
No response
The text was updated successfully, but these errors were encountered: