From mboxrd@z Thu Jan 1 00:00:00 1970 From: actionmystique at gmail.com (jean-christophe manciot) Date: Thu, 5 Jul 2018 17:38:03 +0200 Subject: md2html is inoperative In-Reply-To: References: <20180630153952.GW6584@john.keeping.me.uk> Message-ID: I manually built latest cgit commit (22583c4) to avoid any discrepancy with my local git release (2.18.0-1). I also moved the scan-path directive below all global settings in /etc/cgitrc. The translation takes place correctly now, despite a hiccup with the #links which are not followed. (I'll open a new thread for that issue). On Mon, Jul 2, 2018 at 10:17 AM, jean-christophe manciot < actionmystique at gmail.com> wrote: > And that you're not seeing cached content immediately >> after changing the setting? >> > > I cleared the cache with: > # rm -fv /var/cache/cgit/* > > You can test CGit from the command line to rule out a misconfiguration >> in the web server: > > > There is no "cgit" binary in the ubuntu package: > # apt-file list cgit > cgit: /etc/apache2/conf-available/cgit.conf > cgit: /etc/cgitrc > cgit: /usr/lib/cgit/cgit.cgi > cgit: /usr/lib/cgit/filters/about-formatting.sh > cgit: /usr/lib/cgit/filters/commit-links.sh > cgit: /usr/lib/cgit/filters/email-gravatar.lua > cgit: /usr/lib/cgit/filters/email-gravatar.py > cgit: /usr/lib/cgit/filters/email-libravatar.lua > cgit: /usr/lib/cgit/filters/gentoo-ldap-authentication.lua > cgit: /usr/lib/cgit/filters/html-converters/man2html > cgit: /usr/lib/cgit/filters/html-converters/md2html > cgit: /usr/lib/cgit/filters/html-converters/rst2html > cgit: /usr/lib/cgit/filters/html-converters/txt2html > cgit: /usr/lib/cgit/filters/owner-example.lua > cgit: /usr/lib/cgit/filters/simple-authentication.lua > cgit: /usr/lib/cgit/filters/syntax-highlighting.py > cgit: /usr/lib/cgit/filters/syntax-highlighting.sh > cgit: /usr/share/cgit/cgit.css > cgit: /usr/share/cgit/cgit.png > cgit: /usr/share/cgit/favicon.ico > cgit: /usr/share/cgit/robots.txt > cgit: /usr/share/doc/cgit/changelog.Debian.gz > cgit: /usr/share/doc/cgit/copyright > cgit: /usr/share/man/man5/cgitrc.5.gz > > Is this a package building issue? > > Also, I've taken a look at the build process, and there seems to be a > discrepancy between the Ubuntu cgit package version (1.1+git2.10.2-3build1) > which appears to have been built with git 2.10.2 and my own self-built > version of git (2.18.0-1). I should probably try to build cgit myself. > > Note that for testing you should try something like: >> >> about-formatting.sh README.md > > > On the *git client*: > # ./about-formatting.sh ${repo_path}/README.md <${repo_path}/README.md > > >

GPLv3
PPA > by Jean-Christophe > Manciot is licensed under a GPLv3 > License.

>

Public PPA (Personal Packages Archive)

>

Table of Contents

> >

About Me

>

I have performed the following steps for this PPA:

> > ... > > This is an *almost perfect *translation. > I say almost because the following lines are shown at the same level: > *README.md* > - on a **desktop system**: > + Press Alt+F2 and type ```update-manager -c``` into the command box. > > *Converted into:* > > ? > On the* git server*, the README.md file is not directly accessible, so > there is the following setting for the corresponding repo in cgitrc: > readme=:README.md > > > On Sat, Jun 30, 2018 at 5:39 PM, John Keeping wrote: > >> On Thu, Jun 28, 2018 at 12:50:49PM +0200, jean-christophe manciot wrote: >> > On Ubuntu 18.10 cosmic >> > cgit 1.1+git2.10.2-3build1 >> > python3: 3.6.5-3 >> > python3-docutils: 0.14+dfsg-3 >> > python3-markdown: 2.6.9-1 >> > python3-pygments: 2.2.0+dfsg-1 >> > >> > In /etc/cgitrc: >> > about-filter=/usr/lib/cgit/filters/about-formatting.sh >> > >> > Despite that setting, the README.md file loaded from the link is >> > not formatted correctly. It seems that no conversion takes place. >> >> Are you sure that there isn't a repo-specific override in place for the >> about-filter? And that you're not seeing cached content immediately >> after changing the setting? >> >> You can test CGit from the command line to rule out a misconfiguration >> in the web server: >> >> CGIT_CONFIG=/etc/cgitrc cgit --query=url=repo/about/ >> >> > # about-formatting.sh README.md >> >> Note that for testing you should try something like: >> >> about-formatting.sh README.md > >> to check that python-markdown is invoked correctly. >> > > > > -- > Jean-Christophe > -- Jean-Christophe -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: md-translation.png Type: image/png Size: 10816 bytes Desc: not available URL: