Discussion:
[Docutils-users] docutils.conf and rst2html5
Matěj Cepl
2017-02-28 17:36:44 UTC
Permalink
Using “rst2html5 (Docutils 0.13.1 [release], Python 2.7.13, on
linux2)” and this docutils.conf in the directory with my *.rst
file:

[general]
input_encoding=utf-8
[html5 writer]
cloak_email_addresses: yes
stylesheet_path: minimal.css,plain.css,mystyle.css
template: layout.tpl

I get no stylesheet or template used. However, when I run

$ rst2html5 --template=layout.tpl \
--stylesheet-path=minimal.css,plain.css,mystyle.css \
source.rst >output.html

both template and stylesheets are used.

What’s the difference?

Best,

Matěj
--
https://matej.ceplovi.cz/blog/, Jabber: ***@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8

I love deadlines. I like the whooshing sound they make as they
fly by.
-- Douglas Adams, The Salmon of Doubt


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply A
Guenter Milde
2017-03-01 11:04:56 UTC
Permalink
Post by Matěj Cepl
Using “rst2html5 (Docutils 0.13.1 [release], Python 2.7.13, on
linux2)” and this docutils.conf in the directory with my *.rst
...
Post by Matěj Cepl
[html5 writer]
...
Post by Matěj Cepl
I get no stylesheet or template used. However, when I run
$ rst2html5 --template=layout.tpl \
--stylesheet-path=minimal.css,plain.css,mystyle.css \
source.rst >output.html
both template and stylesheets are used.
What’s the difference?
You found a bug. The html5 writer used the wrong config section. (I missed
this during the renaming from html-plain.)

This is fixed now (Revision 8041).

Thank you for reporting and sorry for the inconvenience,

Günter


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Plea
Matěj Cepl
2017-03-03 08:16:02 UTC
Permalink
Post by Guenter Milde
You found a bug. The html5 writer used the wrong config
section. (I missed this during the renaming from html-plain.)
This is fixed now (Revision 8041).
Perfect, builds in Fedora 25 with testsuite running
https://koji.fedoraproject.org/koji/taskinfo?taskID=18150497

Best,

Matěj
--
https://matej.ceplovi.cz/blog/, Jabber: ***@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8

Besides, the determined Real Programmer can write Fortran
programs in any language.
-- Ed Post, Real Programmers Don't Use Pascal
Loading...