Adds --number-sections to the pandoc invocation and rewrites the header CSS so sections are visually separated from their titles: - TOC gets real disc/circle bullets with nesting - Each h1 starts with a top border and extra vertical rhythm - h2 gets its own lighter divider - Numbered sections (1, 2, 8.1, 8.2, ...) sit in a muted slot ahead of the title so the eye parses them as metadata, not as part of the heading text - TOC has a "Contents" label above the list - All colors still derived from the app palette (#f5f3ee background, #2e5b8a accent)
25 lines
755 B
Bash
Executable File
25 lines
755 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerate static/architecture.html from Bookly.lit.md.
|
|
#
|
|
# The .lit.md is the single source of truth: edit it, then run this script
|
|
# to rebuild the HTML that /architecture serves. The post-edit reverse-sync
|
|
# hook keeps the .lit.md in step with direct edits to the Python files, but
|
|
# it does not re-run pandoc -- this script does.
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
pandoc Bookly.lit.md \
|
|
-o static/architecture.html \
|
|
--standalone \
|
|
--embed-resources \
|
|
--filter mermaid-filter \
|
|
--toc \
|
|
--toc-depth=3 \
|
|
--number-sections \
|
|
--highlight-style=tango \
|
|
-H scripts/architecture-header.html \
|
|
--metadata pagetitle="Bookly"
|
|
|
|
echo "wrote static/architecture.html ($(wc -c < static/architecture.html) bytes)"
|