[PATCH 00/11] Render READMEs inline in tree view
Andy Green
andy at warmcat.com
Wed Jun 13 04:01:29 CEST 2018
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
More information about the CGit
mailing list