aboutsummaryrefslogtreecommitdiffstats
path: root/filters/about-formatting.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* md2html: render linked .md via the about view, fix relative baseJason A. Dönerfield3 days1-1/+1
| | | | | | | | | | | | | | Links to markdown files now point at /<repo>/about/<path> (rendered through the about-filter) instead of /<repo>/tree/<path> (raw blob), so clicking a README link to another .md shows rendered markdown. Also resolve relative links against the rendered file's own directory: about-formatting.sh now forwards the filename cgit passes ($1) to md2html as argv[1], and md2html uses dirname(argv[1]) as the base. This makes links *inside* a rendered subpage (docs/foo.md -> ./bar.md, ../README.md, images) resolve correctly. Non-markdown files and directories still go to tree/; images to plain/; about/ links carry no ?h= since the about view renders against the configured readme ref.
* about-formatting.sh: comment text out of dateJason A. Donenfeld2015-11-121-1/+1
|
* match other common markdown file extensionsChris Burroughs2014-12-231-1/+1
|
* Fix about-formatting.shPřemysl Janouch2014-01-081-1/+1
| | | | | | dash failed to parse the script. Signed-off-by: Přemysl Janouch <p.janouch@gmail.com>
* filters: import more modern scriptsJason A. Donenfeld2013-05-271-0/+27
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>