Re: rst2html for partial HTML generation [Was: Re: 2015: reStructuredText implementations in other programming languages?]

Roberto Alsina <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 26/06/15 09:25, Matěj Cepl wrote:
> On 2015-04-23, 08:01 GMT, Peter Funk wrote:
>> BTW: Who can contribute reports about her/his experiences
>> with pandoc ( https://github.com/jgm/pandoc ) to this discussion?
>> I've experimented in a project with the following makefile rule but
>> later decided to manually edit the resulting .rst files a lot.
> https://github.com/jgm/pandoc/issues/2231#issuecomment-111875559
>
> rST processor which cannot process .. image: elements is kind of
> difficult to use. And now, I cannot upgrade pandoc (more recent
> one doesn't build on my system, and I don't want to use
> unpackaged programs anyway).
>
> However, I have decided to make The Right Thing™ and wrote my
> hexo renderer using rst2html
> (https://gitlab.com/mcepl/hexo-renderer-restructuredtext) except
> now I have a different problem (issue #1 in that repository).
> rst2html generates only complete HTML documents and relies on
> tons of CSS stylesheets.
>
> Would it be possible to somehow persuade rst2html to produce
> just as plain HTML as possible without dependency on too much of
> CSS?

In Nikola I just extract the body element using lxml and put it in the 
template where I want it.

The CSS ...

we have a rst.css which is extracted from docutils and a code.css 
generated by pygments.

The rst.css ... it's very old fashioned, with the 3-d sidebars and such, 
so we have an outstanding improvement request to redo via LESS so it can 
be easier to tweak, but haven't got around to hacking on it yet.


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
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.