* How to apply about-formatting.sh to appropriate tree files
@ 2018-08-11 11:51 actionmystique
2018-08-11 13:11 ` john
0 siblings, 1 reply; 3+ messages in thread
From: actionmystique @ 2018-08-11 11:51 UTC (permalink / raw)
Hi there,
I could not find a way with v1.2.1 to get any markdown/html files formatted
correctly when read from the tree.
I already successfully use the
"about-filter=/usr/local/lib/cgit/filters/about-formatting.sh" setting in
/etc/cgitrc, but it only pertains to the about page.
How can we use this filter for all appropriate tree files?
--
Jean-Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20180811/aaebf182/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* How to apply about-formatting.sh to appropriate tree files
2018-08-11 11:51 How to apply about-formatting.sh to appropriate tree files actionmystique
@ 2018-08-11 13:11 ` john
2018-08-16 8:35 ` actionmystique
0 siblings, 1 reply; 3+ messages in thread
From: john @ 2018-08-11 13:11 UTC (permalink / raw)
On Sat, Aug 11, 2018 at 01:51:09PM +0200, jean-christophe manciot wrote:
> I could not find a way with v1.2.1 to get any markdown/html files formatted
> correctly when read from the tree.
> I already successfully use the
> "about-filter=/usr/local/lib/cgit/filters/about-formatting.sh" setting in
> /etc/cgitrc, but it only pertains to the about page.
> How can we use this filter for all appropriate tree files?
This is not currently supported.
Some patches were posted a little while ago [1] which add this feature,
but they're not quite ready to be integrated yet.
The best summary of where we want to go is [2].
[1] https://lists.zx2c4.com/pipermail/cgit/2018-June/003978.html
[2] https://lists.zx2c4.com/pipermail/cgit/2018-July/004127.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* How to apply about-formatting.sh to appropriate tree files
2018-08-11 13:11 ` john
@ 2018-08-16 8:35 ` actionmystique
0 siblings, 0 replies; 3+ messages in thread
From: actionmystique @ 2018-08-16 8:35 UTC (permalink / raw)
Christian Hesse (list at eworm.de) has brilliantly added this feature with the
patch available here
<https://git.zx2c4.com/cgit/diff/filters/html-converters/md2html?h=ch/anchorlinks&id=42e70dcbe84e128ba23a25918e3d5d9aac656dc6>
.
It allows you to:
- add your own static table of contents and the links now point to the
right paragraph
- or add a [TOC] marker anywhere in the markdown file and let cgit
dynamically build your table of contents
I was able to test the about link with a toc having up to 5 levels of
indentation, which is much more than Gitlab is able to do (2).
Very nice ;-)
On Sat, Aug 11, 2018 at 3:11 PM John Keeping <john at keeping.me.uk> wrote:
> On Sat, Aug 11, 2018 at 01:51:09PM +0200, jean-christophe manciot wrote:
> > I could not find a way with v1.2.1 to get any markdown/html files
> formatted
> > correctly when read from the tree.
> > I already successfully use the
> > "about-filter=/usr/local/lib/cgit/filters/about-formatting.sh" setting in
> > /etc/cgitrc, but it only pertains to the about page.
> > How can we use this filter for all appropriate tree files?
>
> This is not currently supported.
>
> Some patches were posted a little while ago [1] which add this feature,
> but they're not quite ready to be integrated yet.
>
> The best summary of where we want to go is [2].
>
> [1] https://lists.zx2c4.com/pipermail/cgit/2018-June/003978.html
> [2] https://lists.zx2c4.com/pipermail/cgit/2018-July/004127.html
>
--
Jean-Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20180816/3c189290/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-16 8:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-11 11:51 How to apply about-formatting.sh to appropriate tree files actionmystique
2018-08-11 13:11 ` john
2018-08-16 8:35 ` actionmystique
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).