staticdash 2026.7__tar.gz → 2026.9__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.7 → staticdash-2026.9}/PKG-INFO +1 -1
- {staticdash-2026.7 → staticdash-2026.9}/pyproject.toml +1 -1
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/dashboard.py +41 -48
- {staticdash-2026.7 → staticdash-2026.9}/staticdash.egg-info/PKG-INFO +1 -1
- {staticdash-2026.7 → staticdash-2026.9}/README.md +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/setup.cfg +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/setup.py +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/__init__.py +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/css/style.css +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/js/script.js +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/mathjax/tex-mml-chtml.js +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/mermaid/mermaid.min.js +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/plotly/plotly.min.js +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-bash.min.js +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-c.min.js +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-javascript.min.js +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-json.min.js +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-markup.min.js +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-python.min.js +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-sql.min.js +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/prism-tomorrow.min.css +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/prism.min.js +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash.egg-info/SOURCES.txt +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash.egg-info/dependency_links.txt +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/staticdash.egg-info/requires.txt +0 -0
- {staticdash-2026.7 → staticdash-2026.9}/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.9"
|
|
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" }
|
|
@@ -6,7 +6,7 @@ from typing import Optional, Tuple, List, Any
|
|
|
6
6
|
import pandas as pd
|
|
7
7
|
import plotly.graph_objects as go
|
|
8
8
|
from dominate import document
|
|
9
|
-
from dominate.tags import div, h1, h2, h3, h4, p, a, script, link, span
|
|
9
|
+
from dominate.tags import div, h1, h2, h3, h4, p, a, script, link, span, ul, li
|
|
10
10
|
from dominate.util import raw as raw_util
|
|
11
11
|
import html
|
|
12
12
|
import io
|
|
@@ -571,7 +571,7 @@ class Dashboard:
|
|
|
571
571
|
self._render_sidebar(self.pages, prefix=sidebar_prefix, current_slug=page.slug,
|
|
572
572
|
viewing_from_index=viewing_from_index)
|
|
573
573
|
with div(id="sidebar-footer"):
|
|
574
|
-
a("Produced by staticdash", href=
|
|
574
|
+
a("Produced by staticdash", href="https://github.com/staticdash/staticdash", target="_blank", rel="noopener noreferrer")
|
|
575
575
|
with div(id="content"):
|
|
576
576
|
with div(cls="content-inner"):
|
|
577
577
|
for el in page.render(
|
|
@@ -656,52 +656,54 @@ class Directory:
|
|
|
656
656
|
<style>
|
|
657
657
|
body {{
|
|
658
658
|
font-family: {DEFAULT_FONT_FAMILY};
|
|
659
|
-
margin: 0; padding:
|
|
659
|
+
margin: 0; padding: 60px 40px;
|
|
660
|
+
background-color: #2c3e50;
|
|
661
|
+
min-height: 100vh;
|
|
660
662
|
}}
|
|
661
663
|
.directory-container {{
|
|
662
664
|
max-width: {self.page_width}px;
|
|
663
|
-
margin: 0 auto;
|
|
665
|
+
margin: 0 auto;
|
|
666
|
+
background: white;
|
|
667
|
+
padding: 50px;
|
|
668
|
+
border-radius: 8px;
|
|
669
|
+
box-shadow: 0 10px 40px rgba(0,0,0,0.2);
|
|
664
670
|
}}
|
|
665
671
|
.directory-header {{
|
|
666
|
-
|
|
672
|
+
margin-bottom: 40px;
|
|
673
|
+
border-bottom: 3px solid #16a085;
|
|
674
|
+
padding-bottom: 20px;
|
|
667
675
|
}}
|
|
668
676
|
.directory-header h1 {{
|
|
669
|
-
font-size: 2.5em;
|
|
677
|
+
font-size: 2.5em;
|
|
678
|
+
margin: 0;
|
|
679
|
+
color: #2c3e50;
|
|
680
|
+
font-weight: 600;
|
|
670
681
|
}}
|
|
671
|
-
.
|
|
672
|
-
|
|
682
|
+
.dashboard-list {{
|
|
683
|
+
list-style: none;
|
|
684
|
+
padding: 0;
|
|
685
|
+
margin: 0;
|
|
673
686
|
}}
|
|
674
|
-
.dashboard-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
gap: 30px; margin-top: 30px;
|
|
687
|
+
.dashboard-list li {{
|
|
688
|
+
margin: 0;
|
|
689
|
+
border-bottom: 1px solid #ecf0f1;
|
|
678
690
|
}}
|
|
679
|
-
.dashboard-
|
|
680
|
-
|
|
681
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
682
|
-
transition: transform 0.2s, box-shadow 0.2s;
|
|
683
|
-
text-decoration: none; color: inherit; display: block;
|
|
691
|
+
.dashboard-list li:last-child {{
|
|
692
|
+
border-bottom: none;
|
|
684
693
|
}}
|
|
685
|
-
.dashboard-
|
|
686
|
-
|
|
687
|
-
|
|
694
|
+
.dashboard-list a {{
|
|
695
|
+
display: block;
|
|
696
|
+
padding: 20px 10px;
|
|
697
|
+
font-weight: 600;
|
|
698
|
+
font-size: 1.2em;
|
|
699
|
+
color: #34495e;
|
|
700
|
+
text-decoration: none;
|
|
701
|
+
transition: all 0.2s ease;
|
|
688
702
|
}}
|
|
689
|
-
.dashboard-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
margin: 0; color: #7f8c8d; font-size: 0.95em;
|
|
694
|
-
}}
|
|
695
|
-
.dashboard-arrow {{
|
|
696
|
-
display: inline-block; margin-left: 5px;
|
|
697
|
-
transition: transform 0.2s;
|
|
698
|
-
}}
|
|
699
|
-
.dashboard-card:hover .dashboard-arrow {{
|
|
700
|
-
transform: translateX(5px);
|
|
701
|
-
}}
|
|
702
|
-
.footer {{
|
|
703
|
-
text-align: center; margin-top: 60px; padding: 20px;
|
|
704
|
-
color: #999; font-size: 0.9em;
|
|
703
|
+
.dashboard-list a:hover {{
|
|
704
|
+
color: #16a085;
|
|
705
|
+
padding-left: 20px;
|
|
706
|
+
background: #f9f9f9;
|
|
705
707
|
}}
|
|
706
708
|
</style>
|
|
707
709
|
""")
|
|
@@ -710,20 +712,11 @@ class Directory:
|
|
|
710
712
|
with div(cls="directory-container"):
|
|
711
713
|
with div(cls="directory-header"):
|
|
712
714
|
h1(self.title)
|
|
713
|
-
plural = 's' if len(self.dashboards) != 1 else ''
|
|
714
|
-
p(f"Explore {len(self.dashboards)} dashboard{plural}")
|
|
715
715
|
|
|
716
|
-
with
|
|
716
|
+
with ul(cls="dashboard-list"):
|
|
717
717
|
for slug, dashboard in self.dashboards:
|
|
718
|
-
with
|
|
719
|
-
|
|
720
|
-
num_pages = len(dashboard.pages)
|
|
721
|
-
plural = 's' if num_pages != 1 else ''
|
|
722
|
-
p(f"{num_pages} page{plural} ")
|
|
723
|
-
span("→", cls="dashboard-arrow")
|
|
724
|
-
|
|
725
|
-
with div(cls="footer"):
|
|
726
|
-
p("Produced by staticdash")
|
|
718
|
+
with li():
|
|
719
|
+
a(dashboard.title, href=f"{slug}/index.html", target="_blank", rel="noopener noreferrer")
|
|
727
720
|
|
|
728
721
|
with open(os.path.join(output_dir, "index.html"), "w", encoding="utf-8") as f:
|
|
729
722
|
f.write(str(doc))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-bash.min.js
RENAMED
|
File without changes
|
{staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-c.min.js
RENAMED
|
File without changes
|
|
File without changes
|
{staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-json.min.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-sql.min.js
RENAMED
|
File without changes
|
{staticdash-2026.7 → staticdash-2026.9}/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
|