Viewing Repository "About" Tab

Samir Parikh spython01 at gmail.com
Thu Oct 17 16:23:46 CEST 2019


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


More information about the CGit mailing list