Shudhanshu Singh
c0f4e5583e
feat(repo): prioritize well-known READMEs and optimize discovery ( #38532 )
...
This PR adjusts the repository README discovery logic to mirror GitHub's
priority order, while retaining support for Gitea's specific `.gitea/`
directory.
Previously, Gitea would prioritize a `README.md` at the root of the
repository over any READMEs in `.gitea/` or `.github/`. With this
change, well-known subdirectories are evaluated first when viewing the
repository root.
**New Priority Order:**
1. `.gitea/README.md`
2. `.github/README.md`
3. `/README.md` (root directory)
4. `docs/README.md`
This allows repository maintainers to use `.github/README.md` (or
`.gitea/README.md`) as the repository homepage without having to remove
or rename generic root `/README.md` files required by package managers
(like NPM, Crates.io, Docker, etc.).
---------
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2026-07-21 11:44:25 +08:00
..
2026-07-20 18:03:28 +00:00
2026-06-18 20:48:27 +00:00
2026-07-20 18:03:28 +00:00
2023-02-04 10:30:43 +08:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-19 07:32:00 +00:00
2026-05-26 15:49:31 -07:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-17 18:44:31 +08:00
2026-07-20 18:03:28 +00:00
2026-07-19 07:32:00 +00:00
2026-07-19 11:20:01 +08:00
2026-07-20 16:07:38 +00:00
2026-07-17 18:44:31 +08:00
2026-07-17 18:44:31 +08:00
2026-05-26 15:49:31 -07:00
2026-07-20 18:03:28 +00:00
2026-07-19 07:32:00 +00:00
2026-07-20 16:07:38 +00:00
2025-05-09 16:17:08 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-05-07 16:19:45 +02:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 18:03:28 +00:00
2026-07-19 07:32:00 +00:00
2026-07-17 18:44:31 +08:00
2026-07-19 07:32:00 +00:00
2026-07-15 17:30:01 +00:00
2026-07-17 07:44:05 +00:00
2026-07-17 07:44:05 +00:00
2026-07-15 17:30:01 +00:00
2026-07-20 16:07:38 +00:00
2025-07-30 07:08:59 +00:00
2026-05-26 15:49:31 -07:00
2026-07-17 18:44:31 +08:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2024-11-20 19:26:12 +00:00
2024-11-20 19:26:12 +00:00
2026-06-22 18:29:06 +00:00
2026-06-22 18:29:06 +00:00
2026-07-20 16:07:38 +00:00
2025-06-18 01:48:09 +00:00
2026-07-20 18:03:28 +00:00
2026-05-26 15:49:31 -07:00
2026-07-21 11:44:25 +08:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-19 07:32:00 +00:00
2026-07-20 16:07:38 +00:00
2026-05-26 15:49:31 -07:00
2026-07-20 18:03:28 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 18:03:28 +00:00
2026-07-20 16:07:38 +00:00
2026-05-26 15:49:31 -07:00
2026-07-20 18:03:28 +00:00
2026-07-15 17:30:01 +00:00
2026-07-17 18:44:31 +08:00
2026-07-20 16:07:38 +00:00
2026-07-20 18:03:28 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-19 07:32:00 +00:00
2026-07-20 18:03:28 +00:00
2026-07-08 23:52:06 +02:00
2024-01-19 17:05:02 +01:00
2026-04-04 16:27:57 -07:00
2026-06-11 18:08:55 +00:00
2026-04-14 12:03:26 +00:00
2026-05-13 09:00:41 +02:00
2026-05-26 15:49:31 -07:00
2026-07-20 16:07:38 +00:00
2026-07-20 10:04:23 +00:00
2026-06-24 05:38:02 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 03:17:25 +00:00
2026-07-20 18:03:28 +00:00
2026-07-19 07:32:00 +00:00
2026-07-20 16:07:38 +00:00
2026-07-19 07:32:00 +00:00
2025-12-25 19:26:23 -08:00
2026-07-17 18:44:31 +08:00
2026-07-20 18:03:28 +00:00
2026-07-19 07:32:00 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-19 07:32:00 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 18:03:28 +00:00
2026-07-19 07:32:00 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 18:03:28 +00:00
2026-07-20 16:07:38 +00:00
2026-07-19 07:32:00 +00:00
2026-07-20 16:07:38 +00:00
2026-07-19 07:32:00 +00:00
2026-07-20 16:07:38 +00:00
2026-07-17 18:44:31 +08:00
2026-07-17 18:44:31 +08:00
2026-07-19 07:32:00 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 10:04:23 +00:00
2026-07-20 16:07:38 +00:00
2026-07-17 18:44:31 +08:00
2026-07-20 16:07:38 +00:00
2026-07-20 18:03:28 +00:00
2024-02-09 11:02:53 +08:00
2026-05-26 15:49:31 -07:00
2025-03-31 01:53:48 -04:00
2026-05-26 15:49:31 -07:00
2026-07-20 16:07:38 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-07 16:19:45 +02:00
2026-07-20 16:07:38 +00:00
2026-07-15 17:30:01 +00:00
2026-07-15 17:30:01 +00:00
2026-07-15 17:30:01 +00:00
2026-07-19 07:32:00 +00:00
2026-05-13 09:00:41 +02:00
2026-07-15 17:30:01 +00:00
2026-04-14 12:03:26 +00:00
2026-07-20 18:03:28 +00:00
2026-04-14 12:03:26 +00:00
2026-07-17 18:44:31 +08:00
2026-07-15 17:30:01 +00:00
2026-07-20 16:07:38 +00:00
2026-07-19 07:32:00 +00:00
2026-07-20 16:07:38 +00:00
2025-07-30 07:08:59 +00:00
2026-05-26 15:49:31 -07:00