List for cgit developers and users
 help / color / mirror / Atom feed
* Viewing Repository "About" Tab
@ 2019-10-17 14:23 spython01
  2019-10-19 12:41 ` daniel
  0 siblings, 1 reply; 5+ messages in thread
From: spython01 @ 2019-10-17 14:23 UTC (permalink / raw)


What is the correct way to have cgit present the "about" tab for a
given repository (for example https://git.zx2c4.com/cgit/about/)?

I am running cgit version 1.2.1 on FreeBSD 12.0-RELEASE.

Below is a slightly modified version of my /usr/local/etc/cgitrc file.
I am able to output an "about" page for the entire site using

root-readme=/usr/home/username/repos/about

but I can't get the "about" tabs to show for individual repositories.
Within the repo itself, I do have a README.md file:
Mode Name Size
-rw-r--r-- .gitignore 93
-rw-r--r-- README.md 60

Thanks
Samir

/usr/local/etc/cgitrc:

css=/cgit.css
#logo=/cgit.png
logo=/favicon.png

# Add a cgit favicon
favicon=/favicon.png

robots=noindex, nofollow

virtual-root=/

root-title=CGIT
root-desc=description goes here

clone-url=git://git.example.com

enable-index-links=1
enable-log-filecount=1
enable-log-linecount=1
enable-commit-graph=1
enable-remote-branches=1

snapshots=tar.gz tar.bz
max-stats=quarter
#root-readme=/usr/local/www/cgit/about.htm
root-readme=/usr/home/username/repos/about

scan-path=/usr/home/username/repos

# Show owner on index page
enable-index-owner=0

##
## Search for these files in the root of the default branch of repositories
## for coming up with the about page:
##
readme=:README.md
readme=:readme.md
readme=:README.mkd
readme=:readme.mkd
readme=:README.rst
readme=:readme.rst
readme=:README.html
readme=:readme.html
readme=:README.htm
readme=:readme.htm
readme=:README.txt
readme=:readme.txt
readme=:README
readme=:readme
readme=:INSTALL.md
readme=:install.md
readme=:INSTALL.mkd
readme=:install.mkd
readme=:INSTALL.rst
readme=:install.rst
readme=:INSTALL.html
readme=:install.html
readme=:INSTALL.htm
readme=:install.htm
readme=:INSTALL.txt
readme=:install.txt
readme=:INSTALL
readme=:install


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-10-21  0:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-17 14:23 Viewing Repository "About" Tab spython01
2019-10-19 12:41 ` daniel
2019-10-19 17:08   ` spython01
2019-10-19 18:42     ` daniel
2019-10-21  0:51       ` spython01

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).