File: use-local-docs-css.patch

package info (click to toggle)
cairocffi 1.7.1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 752 kB
  • sloc: python: 3,020; makefile: 22
file content (26 lines) | stat: -rw-r--r-- 1,061 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Use local copy of external docs.css to avoid privacy breach
 This patch modifies Sphinx configuration to reference a local copy
 of the external stylesheet used in the generated HTML documentation,
 in compliance with Debian Policy.
Author: Arian Ott <arian.ott@ieee.org>
Last-Update: 2025-06-02
Index: cairocffi/docs/conf.py
Forwarded: not-needed
===================================================================
--- cairocffi.orig/docs/conf.py
+++ cairocffi/docs/conf.py
@@ -54,12 +54,12 @@ html_theme_options = {
 # Add any paths that contain custom static files (such as style sheets) here,
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = []
+html_static_path = ['_static']
 
 # These paths are either relative to html_static_path
 # or fully qualified paths (eg. https://...)
 html_css_files = [
-    'https://www.courtbouillon.org/static/docs.css',
+'docs.css'
 ]
 
 # Output file base name for HTML help builder.