summaryrefslogtreecommitdiff
path: root/cgit/cgitrc
blob: 1fc2b8c7f956f9e4f967b09e6cdb1afc3fee05a9 (plain)
  1. #
  2. # cgit config
  3. # see cgitrc(5) for details
  4. # Depends: cmark highlight
  5. css=/cgit-local/local.css
  6. logo=/cgit-css/cgit.png
  7. remove-suffix=1
  8. clone-url=git://$HTTP_HOST/$CGIT_REPO_URL user@$HTTP_HOST:$CGIT_REPO_URL https://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL http://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL
  9. # (ab)use source filter to parse markdown as html,
  10. # with line-numbered + highlighted plaintext only as fallback
  11. # TODO: add anchor to line-numbering:
  12. # <li style='list-style-type:none'><a id='n2' href='#n2'>2</a>
  13. # TODO: hide anchor except in :hover mode:
  14. # <li><a id='n2' href='#n2'>§</a>
  15. enable-tree-linenumbers=0
  16. source-filter=/etc/local-COMMON/cgit/filters/syntax-highlighting.sh
  17. about-filter=/etc/local-COMMON/cgit/filters/about-formatting.sh
  18. readme=:README.md
  19. cache-size=1000
  20. # must be last!
  21. scan-path=$DOCUMENT_ROOT