Debian Codegraph @

debian/patches/doc-local-web-source.patch

raw symbols SCIP
1 Description: Replace doc links to libraries and fonts with local version
2 Also remove YouTube tutorial iframe.
3 Author: Ben Westover <[email protected]>
4 Forwarded: not-needed
5 Last-Update: 2025-06-30
6
7 --- a/docpages/footer.html
8 +++ b/docpages/footer.html
9 @@ -4,14 +4,28 @@
10 </ul>
11 </div>
12
13 -<!-- Global site tag (gtag.js) - Google Analytics -->
14 -<script async src="https://www.googletagmanager.com/gtag/js?id=G-QTH6YHBNG5"></script>
15 -<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/base16/dracula.min.css">
16 -<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js"></script>
17 -<script src="https://cdnjs.cloudflare.com/ajax/libs/highlightjs-line-numbers.js/2.8.0/highlightjs-line-numbers.min.js"></script>
18 -<link rel="preconnect" href="https://fonts.googleapis.com">
19 -<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
20 -<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100&display=swap" rel="stylesheet">
21 +<link rel="stylesheet" href="file:///usr/share/javascript/highlight.js/styles/dracula.css">
22 +<script src="file:///usr/share/javascript/highlight.js/highlight.min.js"></script>
23 +<style>
24 + /* latin-ext */
25 + @font-face {
26 + font-family: 'JetBrains Mono';
27 + font-style: normal;
28 + font-weight: 100;
29 + font-display: swap;
30 + src: url(file:///usr/share/fonts/woff2/jetbrains-mono/JetBrainsMono-Regular.woff2) format('woff2');
31 + unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-2>
32 + }
33 + /* latin */
34 + @font-face {
35 + font-family: 'JetBrains Mono';
36 + font-style: normal;
37 + font-weight: 100;
38 + font-display: swap;
39 + src: url(file:///usr/share/fonts/woff2/jetbrains-mono/JetBrainsMono-Regular.woff2) format('woff2');
40 + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+22>
41 + }
42 +</style>
43 <script>
44 window.dataLayer = window.dataLayer || [];
45 function gtag(){dataLayer.push(arguments);}
46 --- a/docpages/footer.template.html
47 +++ b/docpages/footer.template.html
48 @@ -4,14 +4,28 @@
49 </ul>
50 </div>
51
52 -<!-- Global site tag (gtag.js) - Google Analytics -->
53 -<script async src="https://www.googletagmanager.com/gtag/js?id=G-QTH6YHBNG5"></script>
54 -<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/base16/dracula.min.css">
55 -<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js"></script>
56 -<script src="https://cdnjs.cloudflare.com/ajax/libs/highlightjs-line-numbers.js/2.8.0/highlightjs-line-numbers.min.js"></script>
57 -<link rel="preconnect" href="https://fonts.googleapis.com">
58 -<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
59 -<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100&display=swap" rel="stylesheet">
60 +<link rel="stylesheet" href="file:///usr/share/javascript/highlight.js/styles/dracula.css">
61 +<script src="file:///usr/share/javascript/highlight.js/highlight.min.js"></script>
62 +<style>
63 + /* latin-ext */
64 + @font-face {
65 + font-family: 'JetBrains Mono';
66 + font-style: normal;
67 + font-weight: 100;
68 + font-display: swap;
69 + src: url(file:///usr/share/fonts/woff2/jetbrains-mono/JetBrainsMono-Regular.woff2) format('woff2');
70 + unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
71 + }
72 + /* latin */
73 + @font-face {
74 + font-family: 'JetBrains Mono';
75 + font-style: normal;
76 + font-weight: 100;
77 + font-display: swap;
78 + src: url(file:///usr/share/fonts/woff2/jetbrains-mono/JetBrainsMono-Regular.woff2) format('woff2');
79 + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
80 + }
81 +</style>
82 <script>
83 window.dataLayer = window.dataLayer || [];
84 function gtag(){dataLayer.push(arguments);}
85 --- a/docpages/make_a_bot/windows_vs.md
86 +++ b/docpages/make_a_bot/windows_vs.md
87 @@ -2,17 +2,7 @@
88
89 To create a basic bot using **Visual Studio 2019** or **Visual Studio 2022**, follow the steps below to create a *working skeleton project you can build upon*.
90
91 -If you prefer a video tutorial, you can watch the video below! Otherwise, scroll past and keep reading!
92 -
93 -## Video Tutorial
94 -
95 -\htmlonly
96 -
97 -<iframe width="560" height="315" src="https://www.youtube.com/embed/JGqaQ9nH5sk?si=dung8KuYbWvP2_oL" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
98 -
99 -\endhtmlonly
100 -
101 -## Text Tutorial
102 +If you prefer a video tutorial, you can watch [this video](https://youtu.be/JGqaQ9nH5sk). Otherwise, keep reading!
103
104 \note If you wish to use Coroutines, you must use VS 2022. If wish to use VS 2019, you must compile DPP with `DPP_NO_CORO.
105
106 --- a/Doxyfile
107 +++ b/Doxyfile
108 @@ -1082,7 +1082,7 @@
109 # see the documentation.
110 # This tag requires that the tag GENERATE_HTML is set to YES.
111
112 -HTML_EXTRA_STYLESHEET = doxygen-awesome-css/doxygen-awesome.css docpages/style.css
113 +HTML_EXTRA_STYLESHEET = /usr/share/doxygen-awesome-css/doxygen-awesome.css docpages/style.css
114
115 # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
116 # other source files which should be copied to the HTML output directory. Note