File: disable_buttons_in_documentation.patch

package info (click to toggle)
sqlfluff 3.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 34,000 kB
  • sloc: python: 106,131; sql: 34,188; makefile: 52; sh: 8
file content (38 lines) | stat: -rw-r--r-- 1,279 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
27
28
29
30
31
32
33
34
35
36
37
38
From: Joseph Nahmias <joe@nahmias.net>
Date: Mon, 23 Feb 2026 14:52:08 -0400
Subject: do not generate buttons in documentation for github and codecov

Origin: vendor
Forwarded: not-needed
Last-Update: 2023-02-02

these hotlink to their sites and are a potential privacy breach
Last-Update: 2023-02-02
---
 docs/source/conf.py | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/docs/source/conf.py b/docs/source/conf.py
index 8cca343..ce7edbb 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -93,19 +93,9 @@ html_static_path = ["_static"]
 # -- Options for Alabaster Theme ---------------------------------------------
 
 html_theme_options = {
-    # Set branch to main (used by Codecov button)
-    "badge_branch": "main",
     "logo": "images/sqlfluff-lrg.png",
     # Icon for iOS shortcuts
     "touch_icon": "images/sqlfluff-sm2-sq.png",
-    "github_user": "sqlfluff",
-    "github_repo": "sqlfluff",
-    # GitHub Fork button (points at a broken link, so disabling it)
-    "github_banner": False,
-    # GitHub star button
-    "github_type": "star",
-    # Use `"true"` instead of `True` for counting GitHub star, see https://ghbtns.com
-    "github_count": "true",
 }
 
 # -- Options for redirects ---------------------------------------------