List for cgit developers and users
 help / color / mirror / Atom feed
From: john at keeping.me.uk (John Keeping)
Subject: How to format the content of all markdown files, not just the about pages?
Date: Sun, 23 Dec 2018 15:43:38 +0000	[thread overview]
Message-ID: <20181223154338.GB6168@john.keeping.me.uk> (raw)
In-Reply-To: <CAKcFC3ZM3vQ8voYD7K7OqO0WPgw5G7gpZixVXU+L-8W7TaCYmQ@mail.gmail.com>

On Sun, Dec 23, 2018 at 03:25:00PM +0100, jean-christophe manciot wrote:
> with the following setup, no markdown file is correctly formatted besides
> the about pages:
> *cgit 1.2.1-14-g55ebd5e*
> *git 1:2.20.1-1*
> in */etc/cgitrc*:
> -------------------------------------------------------------------------------------------------
> # Format markdown, restructuredtext, manpages, text files, and html files
> # through the right converters
> about-filter=/usr/local/lib/cgit/filters/about-formatting.sh
> 
> ## Search for these files in the root of the default branch of repositories
> ## for coming up with the about page:
> readme=:README.md
> -------------------------------------------------------------------------------------------------
> 
> The about pages are perfectly formatted, for instance here
> <https://git.sdxlive.com/DR/about/>.
> But any other markdown page is not formatted, for instance here
> <https://git.sdxlive.com/DR/tree/KVM-and-Manager/README.md>.
> Am I missing something or is this a missing feature?

It's not supported at the moment, although there have been various
patches posted to add support for rendered content in the tree view.

The most recent thread ends about here with a summary of the changes
needed to move forward:

https://lists.zx2c4.com/pipermail/cgit/2018-July/004127.html

I'd forgotten that this is still unresolved, so I may see if I have time
to pick it up again between now and the new year.


Regards,
John


  reply	other threads:[~2018-12-23 15:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-23 14:25 actionmystique
2018-12-23 15:43 ` john [this message]
2018-12-27  1:24 ` list
     [not found]   ` <CAKcFC3a5jFWveNEuC541we-_HAHKaBWqH3U_VVTu=qYR0yTriA@mail.gmail.com>
2018-12-28  9:15     ` actionmystique

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181223154338.GB6168@john.keeping.me.uk \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).