From 1595a72feee2bcaff6846827b72cf0f51de5b513 Mon Sep 17 00:00:00 2001 From: gl0w Date: Wed, 28 Oct 2026 11:24:05 +0000 Subject: [PATCH] drop duplicate README title (#121) --- .../issue.md | 20 +++++++++++++++++++ .forge/wiki/README | 2 -- tests/brand.rs | 8 ++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .forge/issues/265fd43c-65d0-4e31-a3d5-4964cfb04b63/issue.md diff --git a/.forge/issues/265fd43c-65d0-4e31-a3d5-4964cfb04b63/issue.md b/.forge/issues/265fd43c-65d0-4e31-a3d5-4964cfb04b63/issue.md new file mode 100644 index 0000000..2fc6c0e --- /dev/null +++ b/.forge/issues/265fd43c-65d0-4e31-a3d5-4964cfb04b63/issue.md @@ -0,0 +1,20 @@ +--- +id: 265fd43c-65d0-4e31-a3d5-4964cfb04b63 +title: 'README: drop duplicate repo-name heading' +state: open +labels: +- kind:docs +assignees: [] +milestone: null +created: 2026-10-28T11:23:56.184457006Z +updated: null +--- +## Problem + +The code tab already shows the repo name as its top heading, then a `README` section heading, then the README body starts with another `# hu13` heading. That third heading just repeats the page title. + +## Fix + +- Drop the leading `# hu13` heading from `.forge/wiki/README`; the README now opens with its intro. +- Keep the `README` section heading and the rest of the document. +- Extend the README regression test to assert there is no leading H1. diff --git a/.forge/wiki/README b/.forge/wiki/README index 57a72f6..b36c3ed 100644 --- a/.forge/wiki/README +++ b/.forge/wiki/README @@ -1,5 +1,3 @@ -# hu13 - *hu13 (pronounced "hub") — one repo, one hub. A tiny read-only window into a single repo, plus two text-only mailboxes for suggestions.* diff --git a/tests/brand.rs b/tests/brand.rs index c4c12a9..4b4ebe3 100644 --- a/tests/brand.rs +++ b/tests/brand.rs @@ -158,5 +158,13 @@ fn repository_readme_has_no_ascii_logo_or_clone_duplicate() { !readme.contains("## Clone it"), "clone/download lives in the code header, not a duplicate section" ); + assert!( + !readme.starts_with("# "), + "README does not repeat the repo title; the page header already carries it" + ); + assert!( + readme.starts_with("*hu13 (pronounced"), + "README opens with its intro" + ); assert!(readme.contains("## Built with"), "README keeps its ending"); } -- 2.56.0