Re: How to apply about-formatting.sh to appropriate tree files

2018-08-16 Thread jean-christophe manciot
Christian Hesse (l...@eworm.de) has brilliantly added this feature with the
patch available here

.
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  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
___
CGit mailing list
CGit@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/cgit


Re: How to apply about-formatting.sh to appropriate tree files

2018-08-11 Thread John Keeping
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
___
CGit mailing list
CGit@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/cgit


How to apply about-formatting.sh to appropriate tree files

2018-08-11 Thread jean-christophe manciot
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
___
CGit mailing list
CGit@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/cgit