aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
authorJason A. Dönerfield <no-replay@sl0p.foo>2026-07-11 22:02:20 +0200
committerJason A. Dönerfield <no-replay@sl0p.foo>2026-07-11 22:19:08 +0200
commitf64bb3a19c276303f7502633ffa930a14aa883cc (patch)
tree0734b6b680b0361b1dea916f7cddb2ff5de74b2f /cgit.h
parentBump version (diff)
downloadcgit-f64bb3a19c276303f7502633ffa930a14aa883cc.tar.gz
cgit-f64bb3a19c276303f7502633ffa930a14aa883cc.tar.xz
cgit-f64bb3a19c276303f7502633ffa930a14aa883cc.zip
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.
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h2
1 files changed, 2 insertions, 0 deletions
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;