# # cgit config # see cgitrc(5) for details # Depends: cmark highlight css=/cgit-feature/feature.css logo=/cgit-css/cgit.png remove-suffix=1 clone-url=git://$HTTP_HOST/$CGIT_REPO_URL https://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL http://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL # (ab)use source filter to parse markdown as html, # with line-numbered + highlighted plaintext only as fallback # TODO: add anchor to line-numbering: #
  • 2 # TODO: hide anchor except in :hover mode: #
  • ยง enable-tree-linenumbers=0 source-filter=/usr/local/share/feature/source-hosting/script/syntax-highlighting.sh about-filter=/usr/local/share/feature/source-hosting/script/about-formatting.sh readme=:README.md cache-size=1000 # must be last! scan-path=$DOCUMENT_ROOT