[PATCH] Add "How to display about page?" info

Pedro Lucas Porcellis porcellis at eletrotupi.com
Mon Sep 28 04:28:33 CEST 2020


Also added some info regarding the about pages + dir scan and on filters
having different locations from distro to distro.
---
 faq | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/faq b/faq
index e940510..6d31781 100644
--- a/faq
+++ b/faq
@@ -39,3 +39,28 @@ You can use a post-receive hook to run a script that tells CGit the
 correct modification time by writing to ``info/web/last-modified``.  An
 example is provided in the CGit repository at
 ``contrib/hooks/post-receive.agefile``.
+
+### How to display the `about` page?
+
+In order to display the about page by repository, you just need to define what
+files cgit must look after on your `cgitrc (5)` file.
+
+```sh
+readme=:README.md
+readme=:README.rst
+# ...
+```
+
+To enable the markdown parsing, add the included conversion script (converts
+from markdown, rst, txt to html).
+
+`about-filter=/usr/lib/cgit/filters/about-formatting.sh`
+
+_Note that the location may slightly change by distros, for instance on Alpine
+Linux it's located on `/usr/lib/cgit/filters`. It's recommended to check on
+your package manager where it's being installed._
+
+## My configuration is not being loaded for my scan directory
+
+The scan directory should be after those lines. Matter of fact, it's
+recommended to be the last line on your `cgitrc` file.
-- 
2.28.0



More information about the CGit mailing list