summaryrefslogtreecommitdiff
path: root/etc/cgitrc
blob: 003d7a2f8975a0bdc764c275cbd00bd6bc305ec6 (plain)
  1. #
  2. # cgit config
  3. # see cgitrc(5) for details
  4. # Depends: cmark highlight
  5. css=/cgit-feature/feature.css
  6. logo=/cgit-css/cgit.png
  7. remove-suffix=1
  8. clone-url=git://$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=/usr/local/share/feature/source-hosting/script/syntax-highlighting.sh
  17. about-filter=/usr/local/share/feature/source-hosting/script/about-formatting.sh
  18. readme=:README.md
  19. cache-size=1000
  20. # must be last!
  21. scan-path=$DOCUMENT_ROOT