Re: rst2html5.py --template from file is not replacing {head} and {body} placeholders in output
Sorin Pânca <[email protected]> Sun, 8 May 2022 13:38:48 +0300
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <CADPD1jCXoJGWLgTgCkV+QDEJWQ446MV9iEhtkkMB8wSbz-U_GA@mail.gmail.com> |
Hi Engelbert! I found that there is a separate pip3 package, rst2html that works. The one included in docutils-0.18.1 isn't working. Also, this rst2html package is installing the rst2html command in $PATH, while the one included in docutils is installing only rst2html.py in $PATH. I will currently stay with the separate package. Best regards, Sorin. În dum., 8 mai 2022 la 13:06, engelbert gruber <[email protected]> a scris: > > hi sorin > > sorry for the slow reply. > did you manage to succeed ? > > > i tried successfully ... rst2html5.py --template=afile.txt > > and the template : > > %(head_prefix)s > %(head)s > %(stylesheet)s > %(body_prefix)s > <div id="eins"> > %(body_pre_docinfo)s > %(docinfo)s > %(body)s > </div> > %(body_suffix)s > > On Thu, 28 Apr 2022 at 20:44, Sorin Pânca <[email protected]> wrote: >> >> Hello! >> (I am not a subscriber of the mailing list and this is my first message.) >> >> I have an issue using --template from file: the {head} and {body} >> placeholders are not replaced. I installed docutils 0.18.1 using pip3 >> install docutils on Majaro Linux. The template I'm using does not >> contain something different than the example template, only the URLs >> inside are changed and a <div> added around {body}. >> When I'm not using --template, the html is generated properly. When >> using --template from file, the generated document is the same as the >> template and it contains the placeholders, just like the template was >> copied over as output. >> >> Am I doing something wrong or is this a bug? >> Command: rst2html5.py --template='site-root/htdocs/template.html' >> --no-source-link --report=${ERROR_LEVEL} --no-generator >> --toc-entry-backlinks --no-section-numbering --strip-comments --strict >> --tab-width=4 doc.rst >> doc.html >> >> Thank you! >> >> -- >> Sorin Pânca. >> >> >> _______________________________________________ >> Docutils-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/docutils-users >> >> Please use "Reply All" to reply to the list. -- Sorin Pânca. _______________________________________________ Docutils-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/docutils-users Please use "Reply All" to reply to the list.