Skip to content

Custom footers lose the { Light | Dark | Auto } appearance selector #546

Open
@krilnon

Description

@krilnon

Description

If you use DocC's --experimental-enable-custom-templates flag and provide a custom footer.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

  • If possible, I've reproduced the issue using the main branch of this package.
  • This issue hasn't been addressed in an existing GitHub issue.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions