From mboxrd@z Thu Jan 1 00:00:00 1970 From: andy at warmcat.com (Andy Green) Date: Wed, 13 Jun 2018 10:01:29 +0800 Subject: [PATCH 00/11] Render READMEs inline in tree view In-Reply-To: <29df7d5c-2556-86e7-45bd-08e1e71a1e57@warmcat.com> References: <29df7d5c-2556-86e7-45bd-08e1e71a1e57@warmcat.com> Message-ID: <152885510454.7253.3542488576272033383.stgit@mail.warmcat.com> The following series adds config to allow rendering of selected READMEs inline after the tree view, where present in the directory being viewed. It builds on John Keeping's RENDER mode series from 2016. Typical config to enable it, if you have a README.md looks like tree-readme=README.md render.md=/usr/libexec/cgit/filters/html-converters/md2html --- Andy Green (6): ui-tree: free read_sha1_file() buffer after use ui-blame: free read_sha1_file() buffer after use ui-tree: print_object: add is_inline param ui-tree: ls_tail: add walk table param config: add tree-readme list ui-tree: render any matching README file in tree view John Keeping (5): Use string list strdup_strings for mimetypes Add source page Parse render filters from the config ui-tree: split out buffer printing ui-tree: use render fileters to display content cgit.c | 34 ++++++++- cgit.css | 5 + cgit.h | 5 + cgitrc.5.txt | 25 +++++++ cmd.c | 8 ++ filter.c | 1 shared.c | 21 ++++++ ui-blame.c | 3 + ui-shared.c | 10 +++ ui-shared.h | 3 + ui-tree.c | 211 +++++++++++++++++++++++++++++++++++++++++++++++++++++----- ui-tree.h | 2 - 12 files changed, 301 insertions(+), 27 deletions(-) -- Signature