From 452a631eb3eb5722598e46250e524bb10651e266 Mon Sep 17 00:00:00 2001 From: hu13-test Date: Wed, 28 Oct 2026 11:03:45 +0000 Subject: [PATCH] README: drop duplicate ASCII logos and source-path hint (#119) --- .../issue.md | 21 ++++++++++++ .forge/wiki/README | 32 ------------------- src/build.rs | 8 ++--- tests/brand.rs | 17 ++++++++++ 4 files changed, 40 insertions(+), 38 deletions(-) create mode 100644 .forge/issues/7dc376d4-2375-49cf-bec1-4101a7482bb1/issue.md diff --git a/.forge/issues/7dc376d4-2375-49cf-bec1-4101a7482bb1/issue.md b/.forge/issues/7dc376d4-2375-49cf-bec1-4101a7482bb1/issue.md new file mode 100644 index 0000000..b84842c --- /dev/null +++ b/.forge/issues/7dc376d4-2375-49cf-bec1-4101a7482bb1/issue.md @@ -0,0 +1,21 @@ +--- +id: 7dc376d4-2375-49cf-bec1-4101a7482bb1 +title: 'README: drop duplicate ASCII logos and source-path hint' +state: open +labels: +- kind:docs +assignees: [] +milestone: null +created: 2026-10-28T11:01:39.915226445Z +updated: null +--- +## Problem + +The rendered README starts with an ASCII-art hu13 wordmark and repeats the same block under a `## Clone it` heading. The Clone section has no other content. The code tab also prints a `from .forge/wiki/README` location hint above the README, which adds noise for readers. + +## Fix + +- Remove both ASCII-art logo blocks from `.forge/wiki/README`. +- Remove the now-empty `## Clone it` section; clone/download lives in the header block above. +- Remove the README source-path line from the code tab. +- Update the regression test that asserted the path line, and assert it is absent. diff --git a/.forge/wiki/README b/.forge/wiki/README index cc3af94..57a72f6 100644 --- a/.forge/wiki/README +++ b/.forge/wiki/README @@ -1,20 +1,5 @@ # hu13 -``` - ███ ███ ███ ███ █████ ▄███▄ - ██▓ ░ ▓██ ██▓ ░ ▓██ ▄▄ ▒▓█ ▄▄▀ █▓░ ░▓█ ▀ - ▓▓░ ▒ ░▓▓ ▓▓░ ▒ ░▓▓ ▒▒ ░▒▓ ▒▒ ▓▓░▌▄▐░▓▓ - ▓▒░ ▀ ░▒▓ ▓▒░ ▀ ░▒▓ ▀▀ ░░▒ ▀▀ ▓▒░ ▀ ░▒▓ - ░░░ ▀ ░░░ ░░▒ ░ ░░░ ░░ ░░░ ░░▄▄▄▄ ▀ ░░░ - ░░▒▀▀▀▒░░ ░▒▓ ▒ ▒░░ ▒▒ ▒░░ ▒▒▓▓▓▓ ░░░░▒ - ░▒▒ ▓ ▒▒░ ▒▓▓ ▓ ▓▒░ ▓▓ ▒▒░ ▓▓▀▀▀▀ ▄ ▒▒▓ - ▒▒▓ ▒ ▓▒▒ ▓▓█ █ ▓▓▒ ██ ▓▒▒ ██ ▓▓▓ ▓ ██▓ - ▓▓█ ▄ █▓▓ ▓█▓ ▄ ▓█▓ ▄▄ █▓▓ ▄▄ █▓▓ ▄ ▓██ - ▓██ ▒ ██▓ ███ ▒ ▓██ ▒▒ ██▓ ▒▒ ██▓ ▀ ███ - ███ ▀ ███ ███▄ ▄███ ▀▀ ███ ▀▀▄ ███ ███ ▄ - ███ ███ ▀███████▀ ███████ ▀███▀ -``` - *hu13 (pronounced "hub") — one repo, one hub. A tiny read-only window into a single repo, plus two text-only mailboxes for suggestions.* @@ -62,23 +47,6 @@ Machine-readable everything: `/api/*.json`, `/feed.atom`, raw files, examples lives at `/agents.html`. Issues should carry your user's full detail; PRs should be prompts, not patches. -## Clone it - -``` - ███ ███ ███ ███ █████ ▄███▄ - ██▓ ░ ▓██ ██▓ ░ ▓██ ▄▄ ▒▓█ ▄▄▀ █▓░ ░▓█ ▀ - ▓▓░ ▒ ░▓▓ ▓▓░ ▒ ░▓▓ ▒▒ ░▒▓ ▒▒ ▓▓░▌▄▐░▓▓ - ▓▒░ ▀ ░▒▓ ▓▒░ ▀ ░▒▓ ▀▀ ░░▒ ▀▀ ▓▒░ ▀ ░▒▓ - ░░░ ▀ ░░░ ░░▒ ░ ░░░ ░░ ░░░ ░░▄▄▄▄ ▀ ░░░ - ░░▒▀▀▀▒░░ ░▒▓ ▒ ▒░░ ▒▒ ▒░░ ▒▒▓▓▓▓ ░░░░▒ - ░▒▒ ▓ ▒▒░ ▒▓▓ ▓ ▓▒░ ▓▓ ▒▒░ ▓▓▀▀▀▀ ▄ ▒▒▓ - ▒▒▓ ▒ ▓▒▒ ▓▓█ █ ▓▓▒ ██ ▓▒▒ ██ ▓▓▓ ▓ ██▓ - ▓▓█ ▄ █▓▓ ▓█▓ ▄ ▓█▓ ▄▄ █▓▓ ▄▄ █▓▓ ▄ ▓██ - ▓██ ▒ ██▓ ███ ▒ ▓██ ▒▒ ██▓ ▒▒ ██▓ ▀ ███ - ███ ▀ ███ ███▄ ▄███ ▀▀ ███ ▀▀▄ ███ ███ ▄ - ███ ███ ▀███████▀ ███████ ▀███▀ -``` - ## Built with hu13 is a single Rust binary with almost no dependencies, one diff --git a/src/build.rs b/src/build.rs index ad80815..0604e87 100644 --- a/src/build.rs +++ b/src/build.rs @@ -1953,10 +1953,6 @@ pub fn run_build(repo: &Path, out: &Path, opts: &BuildOptions) -> Result\n

README

\n"); match &readme { Some((path, blob)) => { - body.push_str(&format!( - "

from {}

\n", - esc(path) - )); if is_markdown(path) || path.to_lowercase().contains("readme") { let (base, wiki) = if let Some(rest) = path.strip_prefix(".forge/wiki/") { (rest.rsplit_once('/').map(|(d, _)| d).unwrap_or(""), true) @@ -2389,8 +2385,8 @@ mod tests { let index = std::fs::read_to_string(out.join("index.html")).expect("index"); assert!(index.contains("Wiki extless"), "code tab shows wiki README"); assert!( - index.contains("from .forge/wiki/README"), - "code tab names source" + !index.contains("from ") && !index.contains(".forge/wiki/README"), + "code tab does not name the README path" ); } diff --git a/tests/brand.rs b/tests/brand.rs index 77ceea2..c4c12a9 100644 --- a/tests/brand.rs +++ b/tests/brand.rs @@ -143,3 +143,20 @@ fn logo_has_no_baked_background() { "logo keeps its 3:1 aspect (was squeezed into 48x48)" ); } + +#[test] +fn repository_readme_has_no_ascii_logo_or_clone_duplicate() { + let readme = std::fs::read_to_string( + PathBuf::from(env!("CARGO_MANIFEST_DIR")).join(".forge/wiki/README"), + ) + .unwrap(); + assert!( + !readme.contains("███") && !readme.contains("▓▓"), + "README carries no ASCII-art logo" + ); + assert!( + !readme.contains("## Clone it"), + "clone/download lives in the code header, not a duplicate section" + ); + assert!(readme.contains("## Built with"), "README keeps its ending"); +} -- 2.56.0