summaryrefslogtreecommitdiff
path: root/cgit/cgitrc
blob: 6542d46391c378b0020fc2e411bdfed155bf1ce5 (plain)
  1. #
  2. # cgit config
  3. # see cgitrc(5) for details
  4. # Depends: cmark highlight
  5. css=/cgit-local/cgit.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