add category links in llms.txt

This commit is contained in:
Vinta Chen 2026-05-07 20:00:56 +08:00
parent 5f042e2fb2
commit 10c06fb26d
No known key found for this signature in database
GPG key ID: B93DE4F003C33630
2 changed files with 36 additions and 2 deletions

View file

@ -352,7 +352,8 @@ class TestBuild:
assert "Sitemap: https://awesome-python.com/sitemap.xml" in llms_txt
assert "## Categories" in llms_txt
assert "**Tools**" in llms_txt
assert "- [Widgets](#widgets)" in llms_txt
assert "- [Widgets](https://awesome-python.com/categories/widgets/)" in llms_txt
assert "- [Widgets](#widgets)" not in llms_txt
assert "### Widgets" in llms_txt
assert "- [w1](https://example.com) - A widget." in llms_txt
assert "- [w2](https://github.com/owner/w2) - A starred widget. (GitHub stars: 42)" in llms_txt