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.
Files changed (26) hide show
  1. {staticdash-2026.7 → staticdash-2026.9}/PKG-INFO +1 -1
  2. {staticdash-2026.7 → staticdash-2026.9}/pyproject.toml +1 -1
  3. {staticdash-2026.7 → staticdash-2026.9}/staticdash/dashboard.py +41 -48
  4. {staticdash-2026.7 → staticdash-2026.9}/staticdash.egg-info/PKG-INFO +1 -1
  5. {staticdash-2026.7 → staticdash-2026.9}/README.md +0 -0
  6. {staticdash-2026.7 → staticdash-2026.9}/setup.cfg +0 -0
  7. {staticdash-2026.7 → staticdash-2026.9}/setup.py +0 -0
  8. {staticdash-2026.7 → staticdash-2026.9}/staticdash/__init__.py +0 -0
  9. {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/css/style.css +0 -0
  10. {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/js/script.js +0 -0
  11. {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/mathjax/tex-mml-chtml.js +0 -0
  12. {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/mermaid/mermaid.min.js +0 -0
  13. {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/plotly/plotly.min.js +0 -0
  14. {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-bash.min.js +0 -0
  15. {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-c.min.js +0 -0
  16. {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-javascript.min.js +0 -0
  17. {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-json.min.js +0 -0
  18. {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-markup.min.js +0 -0
  19. {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-python.min.js +0 -0
  20. {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/components/prism-sql.min.js +0 -0
  21. {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/prism-tomorrow.min.css +0 -0
  22. {staticdash-2026.7 → staticdash-2026.9}/staticdash/assets/vendor/prism/prism.min.js +0 -0
  23. {staticdash-2026.7 → staticdash-2026.9}/staticdash.egg-info/SOURCES.txt +0 -0
  24. {staticdash-2026.7 → staticdash-2026.9}/staticdash.egg-info/dependency_links.txt +0 -0
  25. {staticdash-2026.7 → staticdash-2026.9}/staticdash.egg-info/requires.txt +0 -0
  26. {staticdash-2026.7 → staticdash-2026.9}/staticdash.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: staticdash
3
- Version: 2026.7
3
+ Version: 2026.9
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "staticdash"
7
- version = "2026.7"
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=f"{rel_prefix}index.html" if rel_prefix else "index.html")
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: 0; background-color: #f5f5f5;
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; padding: 40px 20px;
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
- text-align: center; margin-bottom: 50px;
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; margin-bottom: 10px; color: #333;
677
+ font-size: 2.5em;
678
+ margin: 0;
679
+ color: #2c3e50;
680
+ font-weight: 600;
670
681
  }}
671
- .directory-header p {{
672
- font-size: 1.2em; color: #666;
682
+ .dashboard-list {{
683
+ list-style: none;
684
+ padding: 0;
685
+ margin: 0;
673
686
  }}
674
- .dashboard-grid {{
675
- display: grid;
676
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
677
- gap: 30px; margin-top: 30px;
687
+ .dashboard-list li {{
688
+ margin: 0;
689
+ border-bottom: 1px solid #ecf0f1;
678
690
  }}
679
- .dashboard-card {{
680
- background: white; border-radius: 8px; padding: 30px;
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-card:hover {{
686
- transform: translateY(-4px);
687
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
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-card h2 {{
690
- margin: 0 0 10px 0; font-size: 1.5em; color: #2c3e50;
691
- }}
692
- .dashboard-card p {{
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 div(cls="dashboard-grid"):
716
+ with ul(cls="dashboard-list"):
717
717
  for slug, dashboard in self.dashboards:
718
- with a(href=f"{slug}/index.html", cls="dashboard-card", target="_blank", rel="noopener noreferrer"):
719
- h2(dashboard.title)
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))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: staticdash
3
- Version: 2026.7
3
+ Version: 2026.9
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
File without changes
File without changes
File without changes