repo->hide = atoi(value);
else if (!strcmp(name, "ignore"))
repo->ignore = atoi(value);
- else if (ctx.cfg.enable_filter_overrides) {
+ else if (!strcmp(name, "inline-readme")) {
+ if (repo->inline_readme.items == ctx.cfg.inline_readme.items)
+ string_list_init(&repo->inline_readme, 1);
+
+ string_list_append(&repo->inline_readme, value);
+ } else if (ctx.cfg.enable_filter_overrides) {
if (!strcmp(name, "about-filter"))
repo->about_filter = cgit_new_filter(value, ABOUT);
else if (!strcmp(name, "commit-filter"))
char *defbranch;
char *module_link;
struct string_list readme;
+ struct string_list inline_readme;
char *section;
char *clone_url;
char *logo;
is not shown in the index and cannot be accessed by providing a direct
path. Default value: "0". See also: "repo.hide".
+repo.inline-readme::
+ Append given filename to the list of filenames to be rendered after the
+ tree navigation in tree view, if present in the directory being viewed. Eg,
+ 'repo.inline-readme=README.md'. You may also want a corresponding render.
+ entry for the readme suffix, eg,
+ 'render.md=/usr/libexec/cgit/filters/html-converters/md2html'.
+ If not given, the repo will use any global 'inline-readme=' configuration;
+ if any 'repo.inline-readme' are given only they are used for that repo,
+ and the global 'inline-readme=' list is ignored for that repo.
+
repo.logo::
Url which specifies the source of an image which will be used as a logo
on this repo's pages. Default value: global logo.
ret->clone_url = ctx.cfg.clone_url;
ret->submodules.strdup_strings = 1;
ret->hide = ret->ignore = 0;
+ ret->inline_readme = ctx.cfg.inline_readme;
+
return ret;
}