* About tab not showing on repo page
@ 2017-02-08 17:01 thurstylark
2017-02-08 17:36 ` hjemli
0 siblings, 1 reply; 5+ messages in thread
From: thurstylark @ 2017-02-08 17:01 UTC (permalink / raw)
On my cgit instance[1], I have a few repos that have either a 'README'
or a 'README.md' file at the root of the repo. In my cgitrc[2] I have
'readme=:README' and 'readme=:README.md' (among other things), but I
still have no about tab on the repo page. Even if I force it by adding
'about/' to the end of the repo url, it returns with "invalid request".
I also tested the about-filter manually, and was able to get valid html
for both a plaintext README and a markdown README.md.
How do I troubleshoot this further?
[1]: https://git.thurstylark.com/
[2]:
https://git.thurstylark.com/cgit.git/tree/cgitrc?id=081570c2c5766c2885b8e899d0d07fe0b4434239
^ permalink raw reply [flat|nested] 5+ messages in thread
* About tab not showing on repo page
2017-02-08 17:01 About tab not showing on repo page thurstylark
@ 2017-02-08 17:36 ` hjemli
2017-02-08 17:47 ` thurstylark
0 siblings, 1 reply; 5+ messages in thread
From: hjemli @ 2017-02-08 17:36 UTC (permalink / raw)
On Wed, Feb 8, 2017 at 6:01 PM, David Thurstenson <thurstylark at gmail.com> wrote:
> On my cgit instance[1], I have a few repos that have either a 'README'
> or a 'README.md' file at the root of the repo. In my cgitrc[2] I have
> 'readme=:README' and 'readme=:README.md' (among other things), but I
> still have no about tab on the repo page.
Try to move the 'scan-path' directive to the end of your cgitrc.
From https://git.zx2c4.com/cgit/tree/cgitrc.5.txt#n392 :
"Be advised that only the global settings taken before the scan-path
directive will be applied to each repository."
PS: this is a recurring question - maybe the FAQ should be updated, or
the text in cgitrc.5?
Hth,
larsh
^ permalink raw reply [flat|nested] 5+ messages in thread
* About tab not showing on repo page
2017-02-08 17:36 ` hjemli
@ 2017-02-08 17:47 ` thurstylark
2017-02-08 21:58 ` i
0 siblings, 1 reply; 5+ messages in thread
From: thurstylark @ 2017-02-08 17:47 UTC (permalink / raw)
On 17-02-08 18:36:01, Lars Hjemli wrote:
> On Wed, Feb 8, 2017 at 6:01 PM, David Thurstenson <thurstylark at gmail.com> wrote:
> > On my cgit instance[1], I have a few repos that have either a 'README'
> > or a 'README.md' file at the root of the repo. In my cgitrc[2] I have
> > 'readme=:README' and 'readme=:README.md' (among other things), but I
> > still have no about tab on the repo page.
>
> Try to move the 'scan-path' directive to the end of your cgitrc.
>
> From https://git.zx2c4.com/cgit/tree/cgitrc.5.txt#n392 :
>
> "Be advised that only the global settings taken before the scan-path
> directive will be applied to each repository."
>
> PS: this is a recurring question - maybe the FAQ should be updated, or
> the text in cgitrc.5?
>
> Hth,
> larsh
That did the trick! I never considered scan-path as the source of my
issue mainly because my search was focussed on 'about' or 'readme'.
Thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
* About tab not showing on repo page
2017-02-08 17:47 ` thurstylark
@ 2017-02-08 21:58 ` i
2017-02-08 22:33 ` thurstylark
0 siblings, 1 reply; 5+ messages in thread
From: i @ 2017-02-08 21:58 UTC (permalink / raw)
Hi David,
which version do you use?
I've a similar problem. But scan-path is at the end. (config attached)
All readme entries seem to be ignored. Only a readme entry in the git
config of a specific repo works.
My version: cgit 1.1-1 on archlinux packaged 2016-11-23 09:17 UTC
MfG
MonkZ
Am 08.02.2017 um 18:47 schrieb David Thurstenson:
> On 17-02-08 18:36:01, Lars Hjemli wrote:
>> On Wed, Feb 8, 2017 at 6:01 PM, David Thurstenson <thurstylark at gmail.com> wrote:
>>> On my cgit instance[1], I have a few repos that have either a 'README'
>>> or a 'README.md' file at the root of the repo. In my cgitrc[2] I have
>>> 'readme=:README' and 'readme=:README.md' (among other things), but I
>>> still have no about tab on the repo page.
>>
>> Try to move the 'scan-path' directive to the end of your cgitrc.
>>
>> From https://git.zx2c4.com/cgit/tree/cgitrc.5.txt#n392 :
>>
>> "Be advised that only the global settings taken before the scan-path
>> directive will be applied to each repository."
>>
>> PS: this is a recurring question - maybe the FAQ should be updated, or
>> the text in cgitrc.5?
>>
>> Hth,
>> larsh
>
> That did the trick! I never considered scan-path as the source of my
> issue mainly because my search was focussed on 'about' or 'readme'.
>
> Thanks!
> _______________________________________________
> CGit mailing list
> CGit at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/cgit
>
-------------- next part --------------
about-filter=/usr/lib/cgit/filters/about-formatting.sh
cache-dynamic-ttl=0
cache-repo-ttl=0
cache-root-ttl=0
cache-size=0
cache-static-ttl=0
commit-filter=/usr/local/bin/cgit-commit-links.sh
css=/cgit.css
enable-commit-graph=1
enable-follow-links=1
enable-git-config=1
enable-http-clone=1
enable-index-links=1
enable-log-filecount=1
enable-log-linecount=1
enable-tree-linenumbers=1
enable_index_owner = 1
logo=/cgit.png
mimetype.gif=image/gif
mimetype.html=text/html
mimetype.jpeg=image/jpeg
mimetype.jpg=image/jpeg
mimetype.ogv=video/ogg
mimetype.pdf=application/pdf
mimetype.png=image/png
mimetype.svg=image/svg+xml
nocache = 1
noplainemail=1
readme=:INSTALL
readme=:INSTALL.htm
readme=:INSTALL.html
readme=:INSTALL.md
readme=:INSTALL.mkd
readme=:INSTALL.rst
readme=:INSTALL.txt
readme=:README
readme=:README.htm
readme=:README.html
readme=:README.md
readme=:README.mkd
readme=:README.rst
readme=:README.txt
readme=:install
readme=:install.htm
readme=:install.html
readme=:install.md
readme=:install.mkd
readme=:install.rst
readme=:install.txt
readme=:readme
readme=:readme.htm
readme=:readme.html
readme=:readme.md
readme=:readme.mkd
readme=:readme.rst
readme=:readme.txt
remove-suffix=0
robots=noindex, nofollow
snapshots=tar.gz tar.bz2 zip
source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
virtual-root=/
scan-path=/var/lib/gitolite/repositories/
^ permalink raw reply [flat|nested] 5+ messages in thread
* About tab not showing on repo page
2017-02-08 21:58 ` i
@ 2017-02-08 22:33 ` thurstylark
0 siblings, 0 replies; 5+ messages in thread
From: thurstylark @ 2017-02-08 22:33 UTC (permalink / raw)
On 17-02-08 22:58:36, MonkZ wrote:
> Hi David,
>
> which version do you use?
> I've a similar problem. But scan-path is at the end. (config attached)
> All readme entries seem to be ignored. Only a readme entry in the git
> config of a specific repo works.
>
> My version: cgit 1.1-1 on archlinux packaged 2016-11-23 09:17 UTC
>
> MfG
> MonkZ
>
> Am 08.02.2017 um 18:47 schrieb David Thurstenson:
> > On 17-02-08 18:36:01, Lars Hjemli wrote:
> >> On Wed, Feb 8, 2017 at 6:01 PM, David Thurstenson <thurstylark at gmail.com> wrote:
> >>> On my cgit instance[1], I have a few repos that have either a 'README'
> >>> or a 'README.md' file at the root of the repo. In my cgitrc[2] I have
> >>> 'readme=:README' and 'readme=:README.md' (among other things), but I
> >>> still have no about tab on the repo page.
> >>
> >> Try to move the 'scan-path' directive to the end of your cgitrc.
> >>
> >> From https://git.zx2c4.com/cgit/tree/cgitrc.5.txt#n392 :
> >>
> >> "Be advised that only the global settings taken before the scan-path
> >> directive will be applied to each repository."
> >>
> >> PS: this is a recurring question - maybe the FAQ should be updated, or
> >> the text in cgitrc.5?
> >>
> >> Hth,
> >> larsh
> >
> > That did the trick! I never considered scan-path as the source of my
> > issue mainly because my search was focussed on 'about' or 'readme'.
> >
> > Thanks!
> > _______________________________________________
> > CGit mailing list
> > CGit at lists.zx2c4.com
> > https://lists.zx2c4.com/mailman/listinfo/cgit
> >
I use the exact same version, and on Arch as well.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-02-08 22:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-08 17:01 About tab not showing on repo page thurstylark
2017-02-08 17:36 ` hjemli
2017-02-08 17:47 ` thurstylark
2017-02-08 21:58 ` i
2017-02-08 22:33 ` thurstylark
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).