From f64bb3a19c276303f7502633ffa930a14aa883cc Mon Sep 17 00:00:00 2001 From: "Jason A. Dönerfield" Date: Sat, 11 Jul 2026 22:02:20 +0200 Subject: ui-summary: optionally render the repo readme on the summary page Add enable-summary-readme (global + per-repo repo.enable-summary-readme, default off). When enabled, the configured readme is rendered inline below the repository info on the summary page, in addition to the standard about page. Refactor the readme-rendering core out of cgit_print_repo_readme() into a static print_readme() helper (no layout wrapper) so the about page and the summary page share it. --- cgitrc.5.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cgitrc.5.txt') diff --git a/cgitrc.5.txt b/cgitrc.5.txt index 7c39bf9..57839e4 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt @@ -197,6 +197,11 @@ enable-log-filecount:: modified files for each commit on the repository log page. Default value: "0". +enable-summary-readme:: + Flag which, when set to "1", will make cgit render the repository's + readme (see 'readme') inline below the info on the repo summary page, + in addition to the standard "about" page. Default value: "0". + enable-log-linecount:: Flag which, when set to "1", will make cgit print the number of added and removed lines for each commit on the repository log page. Default @@ -519,6 +524,10 @@ repo.enable-log-linecount:: A flag which can be used to disable the global setting `enable-log-linecount'. Default value: none. +repo.enable-summary-readme:: + A flag which can be used to override the global setting + `enable-summary-readme'. Default value: none. + repo.enable-remote-branches:: Flag which, when set to "1", will make cgit display remote branches in the summary and refs views. Default value: . -- cgit v1.3.1-sl0p