staticdash 2025.26__py3-none-any.whl → 2025.27__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 +9 -4
- {staticdash-2025.26.dist-info → staticdash-2025.27.dist-info}/METADATA +1 -1
- staticdash-2025.27.dist-info/RECORD +8 -0
- staticdash-2025.26.dist-info/RECORD +0 -8
- {staticdash-2025.26.dist-info → staticdash-2025.27.dist-info}/WHEEL +0 -0
- {staticdash-2025.26.dist-info → staticdash-2025.27.dist-info}/top_level.txt +0 -0
staticdash/dashboard.py
CHANGED
|
@@ -533,13 +533,18 @@ class Dashboard:
|
|
|
533
533
|
story.append(PageBreak())
|
|
534
534
|
|
|
535
535
|
def render_page(page, level=0, sec_prefix=[]):
|
|
536
|
+
# Generate section numbering like "1", "1.2", etc.
|
|
537
|
+
section_number = ".".join(map(str, sec_prefix))
|
|
538
|
+
heading_text = f"{section_number} {page.title}"
|
|
539
|
+
|
|
536
540
|
heading_style = styles.get(f'Heading{min(level + 1, 4)}', styles['Heading4'])
|
|
541
|
+
story.append(Paragraph(heading_text, heading_style))
|
|
542
|
+
story.append(Spacer(1, 12))
|
|
543
|
+
|
|
537
544
|
|
|
538
545
|
# Remember where we started
|
|
539
546
|
content_start = len(story)
|
|
540
547
|
|
|
541
|
-
story.append(Paragraph(page.title, heading_style))
|
|
542
|
-
story.append(Spacer(1, 12))
|
|
543
548
|
|
|
544
549
|
for kind, content, _ in page.elements:
|
|
545
550
|
try:
|
|
@@ -631,8 +636,8 @@ class Dashboard:
|
|
|
631
636
|
|
|
632
637
|
|
|
633
638
|
|
|
634
|
-
for page in self.pages:
|
|
635
|
-
render_page(page)
|
|
639
|
+
for i, page in enumerate(self.pages):
|
|
640
|
+
render_page(page, level=0, sec_prefix=[i + 1])
|
|
636
641
|
|
|
637
642
|
|
|
638
643
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
staticdash/__init__.py,sha256=UN_-h8wFGfTPHYjnEb7N9CsxqXo-DQVo0cmREOtvRXE,244
|
|
2
|
+
staticdash/dashboard.py,sha256=nqA9MLxSqZNFs-Ko54czD1kZgQ4EP9qC4HvgvR54_ds,29891
|
|
3
|
+
staticdash/assets/css/style.css,sha256=RVqNdwBsaDv8izdOQjGmUZ4NROWF8uZhiq8DTNvUB1M,5962
|
|
4
|
+
staticdash/assets/js/script.js,sha256=7xBRlz_19wybbNVwAcfuKNXtDEojGB4EB0Yj4klsoTA,6998
|
|
5
|
+
staticdash-2025.27.dist-info/METADATA,sha256=lNhzK7RFO-Ewxc6K1E7NNexBEgV7un7x14ip3VkvQ4c,1960
|
|
6
|
+
staticdash-2025.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
+
staticdash-2025.27.dist-info/top_level.txt,sha256=3MzZU6SptkUkjcHV1cvPji0H4aRzPphLHnpStgGEcxM,11
|
|
8
|
+
staticdash-2025.27.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
staticdash/__init__.py,sha256=UN_-h8wFGfTPHYjnEb7N9CsxqXo-DQVo0cmREOtvRXE,244
|
|
2
|
-
staticdash/dashboard.py,sha256=7kBtiPTZ4APc7p-cnQTadeZuJ8ieWzWSfq58z7lP3tA,29660
|
|
3
|
-
staticdash/assets/css/style.css,sha256=RVqNdwBsaDv8izdOQjGmUZ4NROWF8uZhiq8DTNvUB1M,5962
|
|
4
|
-
staticdash/assets/js/script.js,sha256=7xBRlz_19wybbNVwAcfuKNXtDEojGB4EB0Yj4klsoTA,6998
|
|
5
|
-
staticdash-2025.26.dist-info/METADATA,sha256=qWw_6Tpt4UHoiJHxHuJpFkWiIdsHYqFtchk32S3l3WE,1960
|
|
6
|
-
staticdash-2025.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
-
staticdash-2025.26.dist-info/top_level.txt,sha256=3MzZU6SptkUkjcHV1cvPji0H4aRzPphLHnpStgGEcxM,11
|
|
8
|
-
staticdash-2025.26.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|