Boost C++ Libraries: Ticket #2701: Quickbook docs on internal link may be misleading https://svn.boost.org/trac10/ticket/2701 <p> The Quickbook docs on the really, really useful Anchor links says </p> <p> You can link within a document using: </p> <p> [link section_id.normalized_header_text The link text] </p> <p> But don't you have to include the article name, in this case 'quickbook'? </p> <p> as in </p> <p> [def <span class="underline">comments</span> [link quickbook.syntax.comments Comments]] </p> <p> I read the docs that you only need syntax.comments. </p> <p> (I also note that the article name is actually always converted using the section rules, inserting _ to create a name but I don't se where this is explained. </p> <p> I assumed (the cause of many foulups) that I could use the section syntax thus to choose my own name: </p> <p> article My Book One - The Big Picture Manual : mybook1 </p> <p> This didn't seem to work - perhaps by design - but it might be useful to avoid really long names like my_book_one_-_the_big_ picture_manual. </p> <p> It might also be helpful to tell people to look at the log file produced by Quickbook to find the full link address - it can get difficult when nested many sections deep. </p> <p> (A brilliant tool, especially with Doxygenation!) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2701 Trac 1.4.3 Daniel James Fri, 30 Jan 2009 18:59:20 GMT <link>https://svn.boost.org/trac10/ticket/2701#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2701#comment:1</guid> <description> <p> FWIW, you can can give an article id by writing something like: </p> <pre class="wiki">[article My Book One - The Big Picture Manual [quickbook 1.4] [id mybook1] [dirname mybook1] ] </pre><p> This is documented in the <a href="http://www.boost.org/doc/libs/1_37_0/doc/html/quickbook/syntax.html#quickbook.syntax.block.document">Document section</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Paul A. Bristow</dc:creator> <pubDate>Sat, 31 Jan 2009 10:35:20 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2701#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2701#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/2701#comment:1" title="Comment 1">danieljames</a>: </p> <blockquote class="citation"> <p> FWIW, you can can give an article id by writing something like: </p> <pre class="wiki">[article My Book One - The Big Picture Manual [quickbook 1.4] [id mybook1] [dirname mybook1] ] </pre><p> This is documented in the <a href="http://www.boost.org/doc/libs/1_37_0/doc/html/quickbook/syntax.html#quickbook.syntax.block.document">Document section</a>. </p> </blockquote> <p> Oh Dear not RFTM again :-( </p> <p> But I'm not sure things are quite right. </p> <p> If I create an article ID thus </p> <p> [article Plot in SVG </p> <blockquote> <p> [quickbook 1.4] [id SVG_plot] </p> </blockquote> <p> ... </p> <p> I get (in the log) </p> <blockquote> <p> Writing plot_in_svg/howtouse.html for section(plot_in_svg.howtouse) </p> </blockquote> <p> so it is using the title, Plot in SVG converted using the rules to "plot_in_svg" </p> <p> that than the expected "svg_plot" from the id. </p> <p> Am I still doing something silly? </p> <p> (And my 1st 'complaint' about documenting the use of this in links stands). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sat, 31 Jan 2009 11:44:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2701#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2701#comment:3</guid> <description> <blockquote class="citation"> <p> Oh Dear not RFTM again :-( </p> </blockquote> <p> I wouldn't say that, it's not that easy to find. I think the quickbook documentation could do with a little tutorial that introduces these concepts. But that's for another day. </p> <blockquote class="citation"> <p> I get (in the log) </p> <blockquote> <p> Writing plot_in_svg/howtouse.html for section(plot_in_svg.howtouse) </p> </blockquote> </blockquote> <p> It works for me... For this quickbook file: </p> <pre class="wiki">[article Plot in SVG [quickbook 1.4] [id SVG_plot] ] Test </pre><p> Which produces this boostbook: </p> <pre class="wiki">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE library PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd"&gt; &lt;article id="SVG_plot" name="Plot in SVG" dirname="SVG_plot" last-revision="$Date: 2009/01/31 10:37:36 $" xmlns:xi="http://www.w3.org/2001/XInclude"&gt; &lt;articleinfo&gt; &lt;/articleinfo&gt; &lt;title&gt;Plot in SVG&lt;/title&gt; &lt;para&gt; Test &lt;/para&gt; &lt;/article&gt; </pre><p> Note that <code>id</code> and <code>dirname</code> are both <code>SVG_plot</code>. </p> <p> If you still still can't get it to work, then I guess that's a new ticket. </p> <blockquote class="citation"> <p> (And my 1st 'complaint' about documenting the use of this in links stands). </p> </blockquote> <p> Yes, I don't have the time to deal with it at the moment. That's why I didn't accept the ticket. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Paul A. Bristow</dc:creator> <pubDate>Mon, 02 Feb 2009 11:03:08 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2701#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2701#comment:4</guid> <description> <p> OK fine - this is not urgent, but when you have nothing better to do ;-) </p> <p> &lt;?xml version="1.0"?&gt; &lt;!DOCTYPE article PUBLIC "-<em>OASIS</em>DTD <a class="missing wiki">DocBook</a> XML V4.2<em>EN" "<a class="ext-link" href="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"><span class="icon">​</span>http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd</a>"&gt; &lt;article xmlns:rev=&#34;http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" id="SVG_plot" name="SVG Plot Manual document title" dirname="SVG_plot" rev:last-revision=&#34;$Date: 2009/02/02 10:46:37 $"&gt; </em></p> <p> has the title, ID and dirname as we both expect. </p> <p> But am I wrong to be surprised that the section id comes from the title, and not from the id </p> <blockquote> <p> &lt;title&gt;SVG Plot Manual document title&lt;/title&gt; &lt;section id="svg_plot_manual_document_title.howtouse"&gt; </p> <blockquote> <p> &lt;title&gt;&lt;link linkend="svg_plot_manual_document_title.howtouse"&gt; How To Use This </p> <blockquote> <p> <sup></sup><sup></sup><sup></sup><sup></sup><sup></sup><sup></sup><sup></sup><sup></sup><sup></sup><sup></sup><sup></sup><sup></sup><sup></sup><sup></sup><sup></sup> </p> </blockquote> </blockquote> </blockquote> <p> Perhaps this is a feature? </p> <p> (I'm also uncertain (but that's not uncommon) what dirname is intended for). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Mon, 02 Feb 2009 11:30:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2701#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2701#comment:5</guid> <description> <p> That looks like a bug to me. I'll need to see the quickbook file to work out what's going on. Can you either create a new ticket and attach it (or a simplified version). </p> <blockquote class="citation"> <p> (I'm also uncertain (but that's not uncommon) what dirname is intended for). </p> </blockquote> <p> I just looked it up, and I've been using it incorrectly myself. It's only valid boostbook for a library anyway, so that's another bug. It's used to indicate the source location of a library. I've created a ticket (<a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2711" title="#2711: Bugs: Quickbook produces invalid document info. (closed: fixed)">#2711</a>). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sun, 22 Feb 2009 16:10:44 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/2701#comment:6 https://svn.boost.org/trac10/ticket/2701#comment:6 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Eric Niebler</span> to <span class="trac-author">Daniel James</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Daniel James Sun, 01 Mar 2009 14:16:46 GMT <link>https://svn.boost.org/trac10/ticket/2701#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2701#comment:7</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/51508" title="Try to make anchor and link usage a little clearer. Refs #1213, #2701">[51508]</a>) Try to make anchor and link usage a little clearer. </p> <p> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1213" title="#1213: Feature Requests: Specify that [#named_anchors] are global (closed: fixed)">#1213</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2701" title="#2701: Feature Requests: Quickbook docs on internal link may be misleading (closed: fixed)">#2701</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sat, 14 Mar 2009 11:42:43 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2701#comment:8 https://svn.boost.org/trac10/ticket/2701#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/51774" title="Merge most of the recent changes to quickbook and boostbook. Left out ...">[51774]</a>) Merge most of the recent changes to quickbook and boostbook. </p> <p> Left out doxygen changes: <a class="changeset" href="https://svn.boost.org/trac10/changeset/51323" title="More information in error messages in the doxygen2boostbook script.">[51323]</a>,<a class="changeset" href="https://svn.boost.org/trac10/changeset/51324" title="Deal with top level enums from doxygen.">[51324]</a>,<a class="changeset" href="https://svn.boost.org/trac10/changeset/51680" title="Try to support inbodydescription in doxygen xml.">[51680]</a> And a quickbook change which might be a breaking change: <a class="changeset" href="https://svn.boost.org/trac10/changeset/51403" title="Accept space between 'section:' and the section id. Ref #2712.">[51403]</a> </p> <p> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1977" title="#1977: Patches: headername does not allow the text to be different from the path to ... (closed: fixed)">#1977</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1170" title="#1170: Bugs: Emit Warnings instead of # symbols in the syntax highlighter (closed: fixed)">#1170</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1213" title="#1213: Feature Requests: Specify that [#named_anchors] are global (closed: fixed)">#1213</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2701" title="#2701: Feature Requests: Quickbook docs on internal link may be misleading (closed: fixed)">#2701</a>. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2153" title="#2153: Bugs: [boostbook] Entities methodname, classname, macroname, headername, ... (closed: fixed)">#2153</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2771" title="#2771: Bugs: Serialization documentation should make portability issues more obvious (closed: fixed)">#2771</a>. </p> <p> Merged revisions 51268-51269,51319-51321,51370-51372,51388-51389,51401-51402,51405-51406,51508,51647,51696 via svnmerge from <a class="ext-link" href="https://svn.boost.org/svn/boost/trunk"><span class="icon">​</span>https://svn.boost.org/svn/boost/trunk</a> </p> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51268" title="Add default path for callouts.">r51268</a> | johnmaddock | 2009-02-16 10:39:18 +0000 (Mon, 16 Feb 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Add default path for callouts. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51269" title="Add preliminary HTMLHelp support.">r51269</a> | johnmaddock | 2009-02-16 10:40:26 +0000 (Mon, 16 Feb 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Add preliminary HTMLHelp support. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51319" title="Remove long out of date warning.">r51319</a> | danieljames | 2009-02-18 21:22:37 +0000 (Wed, 18 Feb 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Remove long out of date warning. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51320" title="Write out the quickbook options when the file is missing.">r51320</a> | danieljames | 2009-02-18 21:23:13 +0000 (Wed, 18 Feb 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Write out the quickbook options when the file is missing. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51321" title="Add default path for callouts to xhtml.">r51321</a> | danieljames | 2009-02-18 21:23:35 +0000 (Wed, 18 Feb 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Add default path for callouts to xhtml. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51370" title="Regenerate boostbook reference documentation and merge with existing ...">r51370</a> | danieljames | 2009-02-21 18:50:00 +0000 (Sat, 21 Feb 2009) | 4 lines </p> </blockquote> <p> </p> <blockquote> <p> Regenerate boostbook reference documentation and merge with existing documentation. </p> </blockquote> <p> </p> <blockquote> <p> Ref <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2153" title="#2153: Bugs: [boostbook] Entities methodname, classname, macroname, headername, ... (closed: fixed)">#2153</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51371" title="Fix links in standalone boostbook documentation.">r51371</a> | danieljames | 2009-02-21 18:50:14 +0000 (Sat, 21 Feb 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Fix links in standalone boostbook documentation. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51372" title="Change license in boostbook docs to boost license. Douglas Gregor is ...">r51372</a> | danieljames | 2009-02-21 18:50:25 +0000 (Sat, 21 Feb 2009) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> Change license in boostbook docs to boost license. </p> </blockquote> <p> </p> <blockquote> <p> Douglas Gregor is listed in the blanket permissions file. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51388" title="This DTD isn't stable, so I'm calling it a 'development' version. ...">r51388</a> | danieljames | 2009-02-22 11:54:01 +0000 (Sun, 22 Feb 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> This DTD isn't stable, so I'm calling it a 'development' version. Which is probably wrong, but there you go. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51389" title="Support the alt tag in headername and macroname. Also make headername ...">r51389</a> | danieljames | 2009-02-22 11:54:18 +0000 (Sun, 22 Feb 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Support the alt tag in headername and macroname. Also make headername and macroname valid. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1977" title="#1977: Patches: headername does not allow the text to be different from the path to ... (closed: fixed)">#1977</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51401" title="Add a purpose for macroname, headername, enumname, globalname. Ref ...">r51401</a> | danieljames | 2009-02-22 23:47:51 +0000 (Sun, 22 Feb 2009) | 8 lines </p> </blockquote> <p> </p> <blockquote> <p> Add a purpose for macroname, headername, enumname, globalname. </p> </blockquote> <p> </p> <blockquote> <p> Ref <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2153" title="#2153: Bugs: [boostbook] Entities methodname, classname, macroname, headername, ... (closed: fixed)">#2153</a>: There's still no documentation for methodname and classname. These are actually defined in the docbook DTD for a different purpose so I'm not sure how to deal with them. </p> </blockquote> <p> </p> <blockquote> <p> <a class="ext-link" href="http://www.docbook.org/tdg/en/html/methodname.html"><span class="icon">​</span>http://www.docbook.org/tdg/en/html/methodname.html</a> <a class="ext-link" href="http://www.docbook.org/tdg/en/html/classname.html"><span class="icon">​</span>http://www.docbook.org/tdg/en/html/classname.html</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51402" title="Generate slightly more valid boostbook. For document types other than ...">r51402</a> | danieljames | 2009-02-22 23:48:37 +0000 (Sun, 22 Feb 2009) | 7 lines </p> </blockquote> <p> </p> <blockquote> <p> Generate slightly more valid boostbook. </p> </blockquote> <p> </p> <blockquote> <p> For document types other than library: </p> </blockquote> <ul><li>Don't generate name or dirname for document types. </li><li>Put title before document info. </li></ul><p> </p> <blockquote> <p> Ref <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2771" title="#2771: Bugs: Serialization documentation should make portability issues more obvious (closed: fixed)">#2771</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51405" title="Print out unexpected characters as errors. Ref #1170">r51405</a> | danieljames | 2009-02-22 23:49:21 +0000 (Sun, 22 Feb 2009) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> Print out unexpected characters as errors. </p> </blockquote> <p> </p> <blockquote> <p> Ref <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1170" title="#1170: Bugs: Emit Warnings instead of # symbols in the syntax highlighter (closed: fixed)">#1170</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51406" title="Better handling of errors without line numbers.">r51406</a> | danieljames | 2009-02-22 23:49:36 +0000 (Sun, 22 Feb 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Better handling of errors without line numbers. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51508" title="Try to make anchor and link usage a little clearer. Refs #1213, #2701">r51508</a> | danieljames | 2009-03-01 14:16:44 +0000 (Sun, 01 Mar 2009) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> Try to make anchor and link usage a little clearer. </p> </blockquote> <p> </p> <blockquote> <p> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1213" title="#1213: Feature Requests: Specify that [#named_anchors] are global (closed: fixed)">#1213</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2701" title="#2701: Feature Requests: Quickbook docs on internal link may be misleading (closed: fixed)">#2701</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51647" title="Display text purposes in function reference.">r51647</a> | danieljames | 2009-03-08 09:45:51 +0000 (Sun, 08 Mar 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Display text purposes in function reference. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/51696" title="Set margins to 0pt so they line up with surrounding text rather than ...">r51696</a> | johnmaddock | 2009-03-11 10:22:42 +0000 (Wed, 11 Mar 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Set margins to 0pt so they line up with surrounding text rather than appearing outside it - prevents margins from overlapping other content. </p> </blockquote> <p> ........ </p> Ticket