• Bug#1103638: Adapt debian.css for consistency with other Debian documen

    From Holger Wansing@21:1/5 to All on Sat Apr 19 23:00:02 2025
    XPost: linux.debian.policy

    This is a multi-part message in MIME format.

    Package: debian-policy
    Severity: minor
    Tags: patch

    Hi,

    the debian-policy document is now Sphinx-based, and there are some other documents as well being based on Sphinx (dev-ref, release-notes).
    To share a uniform look-and-feel, they all use the same html theme, based on read-the-docs and modified by Stéphane Blondon those days.

    However, there was a bug in the theme, filed as #1093000.
    The fix for that can be found in https://salsa.debian.org/ddp-team/release-notes/-/commit/c8a0ae30602d9c1adcde052211eb7e6a0869b30b

    Maybe you want to apply this fix to debian-policy as well, even if this document does not suffer for that problem, since it does not include tables ATM.

    Rationale:
    - keep the theme/debian.css consistent over all Sphinx-based docs.
    - be prepared for the day, when a table gets integrated into this doc.


    I have attached a patch including the above mentioned fix.
    (You can just copy the debian.css file from release-notes as well, if you like.)


    Greetings
    Holger





    --
    Holger Wansing <hwansing@mailbox.org>
    PGP-Fingerprint: 496A C6E8 1442 4B34 8508 3529 59F1 87CA 156E B076

    diff --git a/policy/_static/debian.css b/policy/_static/debian.css
    index 7f0981b..6c5b154 100644
    --- a/policy/_static/debian.css
    +++ b/policy/_static/debian.css
    @@ -55,7 +55,7 @@ div.related {
    color: #FFFFFF;
    }

    -.rst-content table.docutils:not(.field-list) tbody tr:hover:nth-child(2n-1), .wy-table-backed, .wy-table-odd td, .wy-table-striped tr:nth-child(2n-1) td {
    +.rst-content table.docutils:not(.field-list) tbody tr:hover:nth-child(2n-1) td, .wy-table-backed, .wy-table-odd td, .wy-table-striped tr:nth-child(2n-1) td {
    background-color:#666666;
    }

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)