Skip to content

Commit 070cdde

Browse files
Erol444claude
andauthored
Fix docs build: skip empty block sections in SUMMARY.md (#2243)
* Pin zensical==0.0.31 to fix docs build Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Skip empty block sections in SUMMARY.md and bump zensical to 0.0.33 Empty sections emitted `* Section` with no children, which expand_literate_nav.py turned into `- Section:` (a None YAML value) in mkdocs.yml, breaking zensical's nav parser. Skip sections with no block families to avoid emitting them. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4118592 commit 070cdde

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

development/docs/build_block_docs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,10 @@ def write_blocks_summary_md(block_families):
389389
for block_section in BLOCK_SECTIONS:
390390
section_title = block_section['title']
391391
section_id = block_section['id']
392-
392+
393+
if not block_families_by_section[section_id]:
394+
continue
395+
393396
lines.append(f"* {section_title}")
394397
for family_name in sorted(block_families_by_section[section_id], key=lambda x: block_families[x][0].block_schema.get("ui_manifest", {}).get("blockPriority", 99)):
395398
# Suppose you had a function slugify_block_name:

requirements/requirements.docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
zensical
1+
zensical==0.0.33
22
mkdocstrings[python]
33
mkdocs-gen-files
44
mkdocs-literate-nav

0 commit comments

Comments
 (0)