Shorten seed doc titles; full names as h1 in page source

Menu entries read Basics / Extensions / Images and Layout; the pages
open with their own '# Markdown Basics' / '# Markdown Extensions'
headings (a markdown h1 suppresses the title h1, so nothing doubles).
This commit is contained in:
2026-08-19 01:40:50 +00:00
parent 512ed91b31
commit dfd3ef1dad
+6 -2
View File
@@ -44,6 +44,8 @@ Images and files uploaded anywhere land in a content-addressed store served from
""" """
MD_BASICS = """\ MD_BASICS = """\
# Markdown Basics
Every feature below is shown twice: first the Markdown source, then how it renders. Every feature below is shown twice: first the Markdown source, then how it renders.
## Headings and text ## Headings and text
@@ -122,6 +124,8 @@ def greet(name: str) -> str:
""" """
MD_EXTENSIONS = """\ MD_EXTENSIONS = """\
# Markdown Extensions
Markdown extensions enabled on this site, source first, then rendered. Markdown extensions enabled on this site, source first, then rendered.
## Footnotes ## Footnotes
@@ -351,14 +355,14 @@ PAGES: dict[str, tuple[str, str, dict[str, bytes], str, float, str | None]] = {
"about": ("About", ABOUT, {}, "", 3, None), "about": ("About", ABOUT, {}, "", 3, None),
"docs/editing": ("Editing This Site", EDITING, {}, "", 1, None), "docs/editing": ("Editing This Site", EDITING, {}, "", 1, None),
"docs/markdown/basics": ( "docs/markdown/basics": (
"Markdown Basics", "Basics",
MD_BASICS, MD_BASICS,
{}, {},
"", "",
1, 1,
None, None,
), ),
"docs/markdown/extensions": ("Markdown Extensions", MD_EXTENSIONS, {}, "", 2, None), "docs/markdown/extensions": ("Extensions", MD_EXTENSIONS, {}, "", 2, None),
"docs/markdown/images-and-layout": ( "docs/markdown/images-and-layout": (
"Images and Layout", "Images and Layout",
MD_LAYOUT, MD_LAYOUT,