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. --- cgit.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index 7d7ece7..9b89c8f 100644 --- a/cgit.h +++ b/cgit.h @@ -107,6 +107,7 @@ struct cgit_repo { int enable_remote_branches; int enable_subject_links; int enable_html_serving; + int enable_summary_readme; int max_stats; int branch_sort; int commit_sort; @@ -241,6 +242,7 @@ struct cgit_config { int enable_remote_branches; int enable_subject_links; int enable_html_serving; + int enable_summary_readme; int enable_tree_linenumbers; int enable_git_config; int local_time; -- cgit v1.3.1-sl0p