|
I've been using QuickBook to create Boost style docs for a recent
project, and it's been quite helpful! I have run into a few issues,
and worked out some tentative solutions, but since IANABoostExpert just
yet any feedback (along the lines of "that looks good" or "yeah, but
that will catastrophically implode when ...") would be appreciated. Item #1: Jam'in with QuickBook... Is there a proper (or already finished) mechanism for getting QuickBook integrated with v2 bjam and boostbook? What I did for now was create a "quickbook.jam" file in $BOOST/tools/v2/build/tools containing This is working so far (i.e., it allowed me to create docs using the following jam file)import type ; import boostbook ; type.register QUICKBOOK : qbk ;import generators ; generators.register-standard quickbook.inline-file : QUICKBOOK : XML ; actions inline-file { quickbook #(>) #(<) } import toolset ;but looking through "doxygen.jam", I'm thinking that there might be more to getting this right under various conditions. I'm not exactly an expert with bjam yet... any comments? Item #2: List alignment I ran into a problem with alignment on unordered lists. The following source *foo1produces the following output (hope you're email reader likes html...)
Item #3) Links to section id Anchors are automatically created for each header within a section, such that given [section:my_section My Section]I can create a link from another section in my qbk file using [link my_section.header_1 see My Section Header 1]. However, what I would like (I think) is to be able to create a link to the "top" of the section, something like [link my_section My Section]. Ideally, if I just used [link my_section] it would default the text for the link to the section title instead of the id ("My Section" instead of "my_section"). Is there currently any way to link to just the section_id (without having to add a header)? I was able to get part of the way by inserting phrase << "<anchor id=\"" << section_id << ".top\" />\n"; at the end of begin_section_action::operator() in $BOOST/tools/quickbook/detail/actions.hpp (line 881), which lets me write [link my_section.top], although it doesn't ... anyhow, an hour or so just went by - that got me curious and I ended up modifying the title output in begin_section_action::operator() phrase << "\n<title id=\"" << library_id << "." << section_id << ".title\">"; and adding struct sectionref_action(along with the requisite bits to hook it in, mimicking "link") which seems to do what I wanted. Now I can just say [sectionref my_section] and the result is a link to the top of section my_section with the text "My Section". Does this seem like the right way to do what I wanted (and was what I wanted reasonable in the first place)? Thanks, that's all for the moment, now back to writing more docs... -- james __________________________________________________________ James Fowler, Open Sea Consulting http://www.OpenSeaConsulting.com, Marietta, Georgia, USA Do C++ Right. http://www.OpenCpp.org, opening soon! |
- [Boost-docs] Re: Minor issues with QuickBook James Fowler
- [Boost-docs] Re: Minor issues with QuickBook Joel de Guzman
- [Boost-docs] Re: Minor issues with QuickBook Joel de Guzman
- Re: [Boost-docs] Re: Minor issues with QuickBook James Fowler
- [Boost-docs] Re: Minor issues with QuickBook Joel de Guzman
- [Boost-docs] Re: Minor issues with QuickBo... Joel de Guzman
- Re: [Boost-docs] Minor issues with QuickBook Vladimir Prus
