staticdash 2025.31__py3-none-any.whl → 2025.33__py3-none-any.whl

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/dashboard.py CHANGED
@@ -296,7 +296,7 @@ class Dashboard:
296
296
  with div(cls="sidebar-children"):
297
297
  self._render_sidebar(page.children, prefix, current_slug)
298
298
  else:
299
- a(page.title, cls=link_classes, href=page_href)
299
+ a(page.title, cls="nav-link", href=page_href)
300
300
 
301
301
  def publish(self, output_dir="output"):
302
302
  output_dir = os.path.abspath(output_dir)
@@ -314,20 +314,31 @@ class Dashboard:
314
314
  head.add(link(rel="stylesheet", href=f"{rel_prefix}assets/css/style.css"))
315
315
  head.add(script(type="text/javascript", src=f"{rel_prefix}assets/js/script.js"))
316
316
 
317
- # MathJax: config for $...$ and $$...$$, then local bundle
317
+ # MathJax: config for $...$ and $$...$$
318
318
  head.add(raw_util(
319
319
  "<script>window.MathJax={tex:{inlineMath:[['$','$'],['\\\\(','\\\\)']],displayMath:[['$$','$$'],['\\\\[','\\\\]']]}};</script>"
320
320
  ))
321
- head.add(script(src=f"{rel_prefix}assets/vendor/mathjax/tex-mml-chtml.js"))
321
+ # Local-first, CDN-fallback (for editable installs without vendored files)
322
+ head.add(raw_util(
323
+ f"<script src=\"{rel_prefix}assets/vendor/mathjax/tex-svg.js\" "
324
+ "onerror=\"var s=document.createElement('script');"
325
+ "s.src='https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js';"
326
+ "document.head.appendChild(s);\"></script>"
327
+ ))
322
328
 
323
- # Prism (theme + core + languages) — all local
329
+ # Prism (theme + core + languages) — still local
324
330
  head.add(link(rel="stylesheet", href=f"{rel_prefix}assets/vendor/prism/prism-tomorrow.min.css"))
325
331
  head.add(script(src=f"{rel_prefix}assets/vendor/prism/prism.min.js"))
326
332
  head.add(script(src=f"{rel_prefix}assets/vendor/prism/components/prism-python.min.js"))
327
333
  head.add(script(src=f"{rel_prefix}assets/vendor/prism/components/prism-javascript.min.js"))
328
334
 
329
- # Plotly local bundle (figs use include_plotlyjs=False)
330
- head.add(script(src=f"{rel_prefix}assets/vendor/plotly/plotly.min.js"))
335
+ # Plotly local-first, CDN-fallback
336
+ head.add(raw_util(
337
+ f"<script src=\"{rel_prefix}assets/vendor/plotly/plotly.min.js\" "
338
+ "onerror=\"var s=document.createElement('script');"
339
+ "s.src='https://cdn.plot.ly/plotly-2.32.0.min.js';"
340
+ "document.head.appendChild(s);\"></script>"
341
+ ))
331
342
 
332
343
  # Defaults that match your CSS; override in CSS if they change
333
344
  head.add(raw_util("<style>:root{--sidebar-width:240px;--content-padding-x:20px;}</style>"))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: staticdash
3
- Version: 2025.31
3
+ Version: 2025.33
4
4
  Summary: A lightweight static HTML dashboard generator with Plotly and pandas support.
5
5
  Author-email: Brian Day <brian.day1@gmail.com>
6
6
  License: CC0-1.0
@@ -1,5 +1,5 @@
1
1
  staticdash/__init__.py,sha256=UN_-h8wFGfTPHYjnEb7N9CsxqXo-DQVo0cmREOtvRXE,244
2
- staticdash/dashboard.py,sha256=fPBaYAa1_rwr5vr8NBnMUvo01u6bl_zy7cxSj_mEi2A,17307
2
+ staticdash/dashboard.py,sha256=lcjGzdgsRpWyS59txmQLpJT3BqNEWw2TqlzOw0gsUHs,17843
3
3
  staticdash/assets/css/style.css,sha256=JCoEkEzDiGc29jjhtWBMv-cirwzSWgOpCviMVIm6x2s,6533
4
4
  staticdash/assets/js/script.js,sha256=7xBRlz_19wybbNVwAcfuKNXtDEojGB4EB0Yj4klsoTA,6998
5
5
  staticdash/assets/vendor/mathjax/tex-mml-chtml.js,sha256=MASABpB4tYktI2Oitl4t-78w_lyA-D7b_s9GEP0JOGI,1173007
@@ -13,7 +13,7 @@ staticdash/assets/vendor/prism/components/prism-json.min.js,sha256=lW2GuqWufsQQZ
13
13
  staticdash/assets/vendor/prism/components/prism-markup.min.js,sha256=h5_J0lbDUtmA4FOFf6cHMwhTuL-2fOKE6mYaJN7FdW4,2850
14
14
  staticdash/assets/vendor/prism/components/prism-python.min.js,sha256=7UOFaFvPLUk1yNu6tL3hZgPaEyngktK_NsPa3WfpqFw,2113
15
15
  staticdash/assets/vendor/prism/components/prism-sql.min.js,sha256=P8X4zmmVDsc63JcvBh30Kq6nj6pIZHCRNOoq3Ag_OjM,3261
16
- staticdash-2025.31.dist-info/METADATA,sha256=0g98-MP-IIhF-Wr9YBztm6aIjrY_-j5pFXR2R9BLmw8,1960
17
- staticdash-2025.31.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- staticdash-2025.31.dist-info/top_level.txt,sha256=3MzZU6SptkUkjcHV1cvPji0H4aRzPphLHnpStgGEcxM,11
19
- staticdash-2025.31.dist-info/RECORD,,
16
+ staticdash-2025.33.dist-info/METADATA,sha256=wLNa2jFtnKbsbvsdudn41_rJ07atJ_V6pRJudkiOi64,1960
17
+ staticdash-2025.33.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ staticdash-2025.33.dist-info/top_level.txt,sha256=3MzZU6SptkUkjcHV1cvPji0H4aRzPphLHnpStgGEcxM,11
19
+ staticdash-2025.33.dist-info/RECORD,,