staticdash 2025.22__tar.gz → 2025.23__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: staticdash
3
- Version: 2025.22
3
+ Version: 2025.23
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 = "2025.22"
7
+ version = "2025.23"
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" }
@@ -427,6 +427,7 @@ class Dashboard:
427
427
  self.canv.bookmarkPage(key)
428
428
  self.canv.addOutlineEntry(text, key, level=outline_level, closed=False)
429
429
 
430
+
430
431
  self.notify('TOCEntry', (outline_level, text, self.page))
431
432
 
432
433
 
@@ -469,9 +470,14 @@ class Dashboard:
469
470
  heading_style = styles['Heading1'] if level == 0 else styles['Heading2']
470
471
 
471
472
  # Only add the page.title as a real heading if it's a top-level page
472
- if level == 0:
473
- story.append(Paragraph(page.title, heading_style))
474
- story.append(Spacer(1, 12))
473
+ # if level == 0:
474
+ # story.append(Paragraph(page.title, heading_style))
475
+ # story.append(Spacer(1, 12))
476
+
477
+ heading_style = styles['Heading1'] if level == 0 else styles['Heading2']
478
+ story.append(Paragraph(page.title, heading_style))
479
+ story.append(Spacer(1, 12))
480
+
475
481
 
476
482
  for kind, content, _ in page.elements:
477
483
  if kind == "text":
@@ -545,9 +551,10 @@ class Dashboard:
545
551
  elif kind == "minipage":
546
552
  render_page(content, level=level + 1, sec_prefix=sec_prefix)
547
553
 
548
- # for child in getattr(page, "children", []):
549
- # story.append(PageBreak())
550
- # render_page(child, level=level + 2, sec_prefix=sec_prefix + [1])
554
+ for child in page.children:
555
+ story.append(PageBreak())
556
+ render_page(child, level=level + 1, sec_prefix=sec_prefix + [1])
557
+
551
558
 
552
559
  story.append(PageBreak())
553
560
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: staticdash
3
- Version: 2025.22
3
+ Version: 2025.23
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