staticdash 2026.1__tar.gz → 2026.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {staticdash-2026.1 → staticdash-2026.2}/PKG-INFO +1 -1
- {staticdash-2026.1 → staticdash-2026.2}/pyproject.toml +1 -1
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/css/style.css +10 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/dashboard.py +5 -4
- {staticdash-2026.1 → staticdash-2026.2}/staticdash.egg-info/PKG-INFO +1 -1
- {staticdash-2026.1 → staticdash-2026.2}/README.md +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/setup.cfg +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/setup.py +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/__init__.py +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/js/script.js +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/mathjax/tex-mml-chtml.js +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/plotly/plotly.min.js +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/prism/components/prism-bash.min.js +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/prism/components/prism-c.min.js +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/prism/components/prism-javascript.min.js +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/prism/components/prism-json.min.js +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/prism/components/prism-markup.min.js +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/prism/components/prism-python.min.js +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/prism/components/prism-sql.min.js +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/prism/prism-tomorrow.min.css +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/prism/prism.min.js +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash.egg-info/SOURCES.txt +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash.egg-info/dependency_links.txt +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash.egg-info/requires.txt +0 -0
- {staticdash-2026.1 → staticdash-2026.2}/staticdash.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "staticdash"
|
|
7
|
-
version = "2026.
|
|
7
|
+
version = "2026.2"
|
|
8
8
|
description = "A lightweight static HTML dashboard generator with Plotly and pandas support."
|
|
9
9
|
authors = [
|
|
10
10
|
{ name = "Brian Day", email = "brian.day1@gmail.com" }
|
|
@@ -153,6 +153,16 @@ body {
|
|
|
153
153
|
width: 100%;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
/* Ensure Plotly SVG text inherits a robust font stack so glyphs (e.g., minus) render */
|
|
157
|
+
.plotly {
|
|
158
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
159
|
+
}
|
|
160
|
+
.plotly svg text,
|
|
161
|
+
.plotly .main-svg text {
|
|
162
|
+
font-family: inherit;
|
|
163
|
+
-webkit-font-smoothing: antialiased;
|
|
164
|
+
}
|
|
165
|
+
|
|
156
166
|
.plot-container .plotly-graph-div {
|
|
157
167
|
width: 100% !important;
|
|
158
168
|
height: auto !important;
|
|
@@ -135,8 +135,6 @@ class Page(AbstractPage):
|
|
|
135
135
|
# to avoid rendering issues when a user's font lacks the U+2212 glyph.
|
|
136
136
|
try:
|
|
137
137
|
plotly_html = fig.to_html(full_html=False, include_plotlyjs=False, config={'responsive': True})
|
|
138
|
-
if '\u2212' in plotly_html or '−' in plotly_html:
|
|
139
|
-
plotly_html = plotly_html.replace('−', '-')
|
|
140
138
|
elem = div(raw_util(plotly_html))
|
|
141
139
|
except Exception as e:
|
|
142
140
|
elem = div(f"Plotly figure could not be rendered: {e}")
|
|
@@ -236,8 +234,6 @@ class MiniPage(AbstractPage):
|
|
|
236
234
|
pass
|
|
237
235
|
try:
|
|
238
236
|
plotly_html = fig.to_html(full_html=False, include_plotlyjs=False, config={'responsive': True})
|
|
239
|
-
if '\u2212' in plotly_html or '−' in plotly_html:
|
|
240
|
-
plotly_html = plotly_html.replace('−', '-')
|
|
241
237
|
elem = div(raw_util(plotly_html))
|
|
242
238
|
except Exception as e:
|
|
243
239
|
elem = div(f"Plotly figure could not be rendered: {e}")
|
|
@@ -351,6 +347,9 @@ class Dashboard:
|
|
|
351
347
|
shutil.copytree(assets_src, assets_dst, dirs_exist_ok=True)
|
|
352
348
|
|
|
353
349
|
def _add_head_assets(head, rel_prefix, effective_width):
|
|
350
|
+
# Ensure pages declare UTF-8 to avoid character misinterpretation
|
|
351
|
+
head.add(raw_util('<meta charset="utf-8" />'))
|
|
352
|
+
head.add(raw_util('<meta name="viewport" content="width=device-width, initial-scale=1" />'))
|
|
354
353
|
# Your CSS/JS
|
|
355
354
|
head.add(link(rel="stylesheet", href=f"{rel_prefix}assets/css/style.css"))
|
|
356
355
|
head.add(script(type="text/javascript", src=f"{rel_prefix}assets/js/script.js"))
|
|
@@ -568,6 +567,8 @@ class Directory:
|
|
|
568
567
|
|
|
569
568
|
# Add CSS and basic styling
|
|
570
569
|
with doc.head:
|
|
570
|
+
# Ensure charset is declared for the landing page too
|
|
571
|
+
doc.head.add(raw_util('<meta charset="utf-8" />'))
|
|
571
572
|
link(rel="stylesheet", href="assets/css/style.css")
|
|
572
573
|
raw_util("""
|
|
573
574
|
<style>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/prism/components/prism-bash.min.js
RENAMED
|
File without changes
|
{staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/prism/components/prism-c.min.js
RENAMED
|
File without changes
|
|
File without changes
|
{staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/prism/components/prism-json.min.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/prism/components/prism-sql.min.js
RENAMED
|
File without changes
|
{staticdash-2026.1 → staticdash-2026.2}/staticdash/assets/vendor/prism/prism-tomorrow.min.css
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|