[PATCH v2 10/15] config: add global inline-readme list

John Keeping john at keeping.me.uk
Mon Jun 18 21:32:32 CEST 2018

On Mon, Jun 18, 2018 at 10:58:05AM +0800, Andy Green wrote:
> Allows the user to specify a list of filenames that should be
> rendered inline with tree view, if present in the directory.
> Signed-off-by: Andy Green <andy at warmcat.com>
> ---
> diff --git a/cgitrc.5.txt b/cgitrc.5.txt
> index a1560eb..37858af 100644
> --- a/cgitrc.5.txt
> +++ b/cgitrc.5.txt
> @@ -250,6 +250,13 @@ index-info::
>  	is deprecated, and will not be supported by cgit-1.0 (use root-desc
>  	instead). Default value: none.
> +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,
> +	'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'

The documentation in the following patch is a bit more descriptive than
this.  I wonder if it makes sense to follow the pattern we use for the
"readme" option and say that this defines the default value for

More information about the CGit mailing list