rst2html5.py on mac doesn't support --embed-stylesheet and other options?

Lee Griffiths <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <CALTH_NFrP1EwqY5siTMTqvY6dbMUpbM7ioQSCe+pJ1OqWDfWkA@mail.gmail.com>
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)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
rst2html_help_output.7z (application/octet-stream, 4.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.