From: Lee G. <lgr...@mi...> - 2017-08-24 09:19:48
|
Hi (Note: I'm not subscribed to the mailing list) A colleague is having trouble using a script that I wrote which utilises `rst2html5.py` from the docutils package. The problem is that his version of rst2html5.py doesn't contain the `--embed-stylesheet` or `--stylesheet-path` options, which seems really strange to me. His version of rst2html4.py and rst2html.py *do* contain those options, so I've simply changed the script to use those instead. But I would expected all of these tools to have (almost) identical input parameters and simply create different html files. I wouldn't expect a document generation tool written in python to have platform specific behaviour. Is this expectation correct? What causes this difference between platforms? Is this unexpected to anyone else? Thanks, Lee I've attached the --help output for rst2html.py and rst2html5.py for both platforms. Note that for my windows machine I've put the explicit path to the script rather than just executing `rst2html.py` as my PATH points to the python3 one, and I wanted to keep the differences to a minimum. mac: $ rst2html.py --version rst2html.py (Docutils 0.14, Python 2.7.12, on darwin) $ rst2html5.py --version rst2html5.py (Docutils 0.14, Python 2.7.12, on darwin) $ which rst2html5.py /Library/Frameworks/Python.framework/Versions/2.7/bin/rst2html5.py $ which rst2html.py /Library/Frameworks/Python.framework/Versions/2.7/bin/rst2html.py win: $ /c/dev/env/python/Python27/Scripts/rst2html5.py --version rst2html5.py (Docutils 0.14, Python 2.7.12, on win32) $ /c/dev/env/python/Python27/Scripts/rst2html.py --version rst2html.py (Docutils 0.14, Python 2.7.12, on win32) |