At FUDCon Blacksburg, Sparks, jjmcd, and I determined that mw-render no longer provides a DocBook writer and therefore it would be stupid to try and repackage it.
This week I found out that was still true, but instead of completely deleting code, they decided to move the DocBook renderer (and its required XHTML renderer) in a separate Python package.
Here is the status of getting everything we need back into Fedora: https://fedoraproject.org/wiki/User:Ianweller/mwlib_status However, before I go too crazy, I wanted to present the current SRPMs that I have now so that you guys can test and make sure python-mwlib is still something we can use in Docs.
At this point I will freeze these SRPM releases, so if I make a new one there will also be a corresponding release bump and a changelog entry.
http://ianweller.fedorapeople.org/SRPMS/python-mwlib/0.13.3-1/ http://ianweller.fedorapeople.org/SRPMS/python-mwlib-docbook/0.1.0-1/ http://ianweller.fedorapeople.org/SRPMS/python-mwlib-xhtml/0.1.0-1/ http://ianweller.fedorapeople.org/SRPMS/python-qserve/0.2.6-1/
Additional packages you will need: https://admin.fedoraproject.org/updates/python-bottle-0.10.7-1.fc16 https://bugzilla.redhat.com/show_bug.cgi?id=786668
Everything else should already be in Fedora.
(TODO: It was brought to my attention that apipkg is bundled in python-py and there is an actual upstream project which is supposed to be packaged separately. I'm going to see about reviewing that, then filing a bug against python-py to unbundle their copy of apipkg. And then fixing python-mwlib again.)
On Fri, 2012-02-03 at 10:00 -0600, Ian Weller wrote:
However, before I go too crazy, I wanted to present the current SRPMs that I have now so that you guys can test and make sure python-mwlib is still something we can use in Docs.
Ian,
It is tough to do a really thorough test until there is some content in the beats, but a quick attempt looks promising. It gives some rather lengthy error messages that almost look as if they came from publican, but the resulting XMLs seem to be OK.
Passing a couple of pages through my sed script only took some minor (and obvious) edits to be accepted by publican.
--McD
On Fri, Feb 03, 2012 at 03:04:37PM -0500, John J. McDonough wrote:
It is tough to do a really thorough test until there is some content in the beats, but a quick attempt looks promising. It gives some rather lengthy error messages that almost look as if they came from publican, but the resulting XMLs seem to be OK.
Passing a couple of pages through my sed script only took some minor (and obvious) edits to be accepted by publican.
Sweet -- so that means we're on the right track sticking with mw-render. (Or on *a* right track.)
It doesn't look like they're keeping the docbook writer that well maintained, but it is a separate project and I'm sure they'd love some patches. If not we'll fork it on GitHub and call ourselves upstream.
docs@lists.stg.fedoraproject.org