From 7b7f0e3636112782a7915bb1afcc57a23c0b6092 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 16 Oct 2026 17:56:55 -1000 Subject: Lead a readme's relative links into the tree A browser resolved them against the about page, where nothing lives now that the page answers 404 below itself. They resolve the way GitHub resolves a readme's links instead, from the readme's directory and on the branch it was read from. --- tests/t0501-about-render.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'tests/t0501-about-render.sh') diff --git a/tests/t0501-about-render.sh b/tests/t0501-about-render.sh index f870c0e..b47c11d 100755 --- a/tests/t0501-about-render.sh +++ b/tests/t0501-about-render.sh @@ -36,9 +36,12 @@ test_expect_success 'create a repository with a markdown readme' ' # The Title A **bold** claim and a attempt. + + See the [roadmap](ROADMAP.md#plan). EOF git add README.md && - git commit -m "add readme" + git commit -m "add readme" && + git branch next ) ' @@ -48,7 +51,7 @@ test_expect_success 'point cgit at it through the about filter' ' cache-size=0 repo.url=md repo.path=$PWD/repos/md/.git - repo.readme=master:README.md + repo.readme=:README.md repo.about-filter=lua:$EXTENSIONS_DIRECTORY/about-render.lua EOF ' @@ -78,6 +81,16 @@ test_expect_success CGIT_LUA_LPEG 'readme markup reaches the page escaped' ' ! grep "