cgit rst2html converter mismatch with py3-docutils executable
When using cgit+about filtering - if an .rst
file is in use it won't render properly as an about page because the underlying html converter for the cgit package is trying to call rst2html.py
but py3-docutils actually renames all the rst2html* files to remove the .py
extension
file in cgit that is using the rst2html.py
name
/usr/lib/cgit/filters/html-converters/rst2html
---
#!/bin/bash
exec rst2html.py --template <(echo -e "%(stylesheet)s\n%(body_pre_docinfo)s\n%(docinfo)s\n%(body)s")
py3-docutils
APKBUILD snippet
# Remove .py extension and add version suffix to executable files.
local path; for path in "$pkgdir"/usr/bin/*.py; do
mv "$path" "${path/.py/-3}"
done
I'm not certain if this is really an issue in cgit or py3-docutils but it definitely does create an issue (for now I've symlinked rst2html to rst2html.py)