Debian Codegraph @

debian/patches/use-local-docs-css.patch

raw
1 Description: Use local copy of external docs.css to avoid privacy breach
2 This patch modifies Sphinx configuration to reference a local copy
3 of the external stylesheet used in the generated HTML documentation,
4 in compliance with Debian Policy.
5 Author: Arian Ott <[email protected]>
6 Last-Update: 2025-06-02
7 Index: cairocffi/docs/conf.py
8 Forwarded: not-needed
9 ===================================================================
10 --- cairocffi.orig/docs/conf.py
11 +++ cairocffi/docs/conf.py
12 @@ -54,12 +54,12 @@ html_theme_options = {
13 # Add any paths that contain custom static files (such as style sheets) here,
14 # relative to this directory. They are copied after the builtin static files,
15 # so a file named "default.css" will overwrite the builtin "default.css".
16 -html_static_path = []
17 +html_static_path = ['_static']
18
19 # These paths are either relative to html_static_path
20 # or fully qualified paths (eg. https://...)
21 html_css_files = [
22 - 'https://www.courtbouillon.org/static/docs.css',
23 +'docs.css'
24 ]
25
26 # Output file base name for HTML help builder.