File: fix-reprotest.patch

package info (click to toggle)
sphinx-book-theme 1.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,100 kB
  • sloc: python: 1,302; javascript: 170; makefile: 56; sh: 8
file content (135 lines) | stat: -rw-r--r-- 3,464 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
From: Josenilson Ferreira da Silva <nilsonfsilva@hotmail.com>
Date: Fri, 22 Nov 2024 23:26:38 -0300
Subject: Make the documentation build reproducibly

- Use equation* environment instead of equation.
- Remove folium, it uses uuid4 which is not reproducible.

Forwarded: not-needed
---
 docs/content/notebooks.md                | 44 --------------------------------
 docs/reference/notebooks.md              | 39 ----------------------------
 docs/reference/special-theme-elements.md |  4 +--
 3 files changed, 2 insertions(+), 85 deletions(-)

diff --git a/docs/content/notebooks.md b/docs/content/notebooks.md
index e2a8221..495673a 100644
--- a/docs/content/notebooks.md
+++ b/docs/content/notebooks.md
@@ -208,50 +208,6 @@ Testing margins before headers
 
 +++
 
-## Interactive outputs
-
-We can even do the same for *interactive* material. Below we'll display a map using [folium](https://python-visualization.github.io/folium/). When the notebook
-is converted to Markdown, the code for creating the interactive map is retained.
-
-**Note that this will only work for some packages.** They need to be able to output standalone HTML/Javascript, and not
-depend on an underlying Python kernel to work.
-
-```{code-cell} ipython3
-import folium
-```
-
-```{code-cell} ipython3
-m = folium.Map(
-    location=[45.372, -121.6972],
-    zoom_start=12,
-    tiles='Stamen Terrain',
-    attr="Placeholder attr"
-)
-
-folium.Marker(
-    location=[45.3288, -121.6625],
-    popup='Mt. Hood Meadows',
-    icon=folium.Icon(icon='cloud'),
-    attr="Placeholder attr"
-).add_to(m)
-
-folium.Marker(
-    location=[45.3311, -121.7113],
-    popup='Timberline Lodge',
-    icon=folium.Icon(color='green')
-).add_to(m)
-
-folium.Marker(
-    location=[45.3300, -121.6823],
-    popup='Some Other Location',
-    icon=folium.Icon(color='red', icon='info-sign'),
-    attr="Placeholder attr"
-).add_to(m)
-
-
-m
-```
-
 ## Rich outputs from notebook cells
 
 +++
diff --git a/docs/reference/notebooks.md b/docs/reference/notebooks.md
index da2b792..49363b5 100644
--- a/docs/reference/notebooks.md
+++ b/docs/reference/notebooks.md
@@ -175,45 +175,6 @@ Styler(df, uuid="1").\
 
 ## Interactive outputs
 
-### Folium
-
-```{code-cell} ipython3
-import folium
-```
-
-```{code-cell} ipython3
-m = folium.Map(
-    location=[45.372, -121.6972],
-    zoom_start=12,
-    tiles='Stamen Terrain',
-    attr="Placeholder attr"
-)
-
-folium.Marker(
-    location=[45.3288, -121.6625],
-    popup='Mt. Hood Meadows',
-    icon=folium.Icon(icon='cloud'),
-    attr="Placeholder attr"
-).add_to(m)
-
-folium.Marker(
-    location=[45.3311, -121.7113],
-    popup='Timberline Lodge',
-    icon=folium.Icon(color='green'),
-    attr="Placeholder attr"
-).add_to(m)
-
-folium.Marker(
-    location=[45.3300, -121.6823],
-    popup='Some Other Location',
-    icon=folium.Icon(color='red', icon='info-sign'),
-    attr="Placeholder attr"
-).add_to(m)
-
-
-m
-```
-
 ## Stdout
 
 ```{code-cell} ipython3
diff --git a/docs/reference/special-theme-elements.md b/docs/reference/special-theme-elements.md
index c641c5e..17f819d 100644
--- a/docs/reference/special-theme-elements.md
+++ b/docs/reference/special-theme-elements.md
@@ -80,9 +80,9 @@ Here's a full-width admonition!
 
 ### Mathematics
 
-\begin{equation}
+\begin{equation*}
   \int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15}
-\end{equation}
+\end{equation*}
 
 $$
   \int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15}