Boost C++ Libraries: Ticket #1166: [boostbook] paths relative to boost.root https://svn.boost.org/trac10/ticket/1166 <p> One of the thing that I find most annoying about the documentation tool chain is that I cannot write links that work both for builds of all of boost and builds of just one library. If boost://libs/mpl/index.html or something similar worked then I would be a lot happier. I am attaching a patch that allows this syntax. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1166 Trac 1.4.3 Steven Watanabe Sat, 11 Aug 2007 20:38:38 GMT attachment set https://svn.boost.org/trac10/ticket/1166 https://svn.boost.org/trac10/ticket/1166 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">relative-href.xsl.patch</span> </li> </ul> Ticket Steven Watanabe Sat, 11 Aug 2007 20:39:13 GMT attachment set https://svn.boost.org/trac10/ticket/1166 https://svn.boost.org/trac10/ticket/1166 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">xref.xsl.patch</span> </li> </ul> Ticket Marshall Clow Sun, 19 Aug 2007 15:08:58 GMT component changed https://svn.boost.org/trac10/ticket/1166#comment:1 https://svn.boost.org/trac10/ticket/1166#comment:1 <ul> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">Building Boost</span> </li> </ul> Ticket Daniel James Mon, 31 Mar 2008 20:36:42 GMT status, version, component, severity changed; owner set https://svn.boost.org/trac10/ticket/1166#comment:2 https://svn.boost.org/trac10/ticket/1166#comment:2 <ul> <li><strong>owner</strong> set 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> <li><strong>version</strong> <span class="trac-field-old">Boost 1.34.1</span> → <span class="trac-field-new">Boost 1.35.0</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">Documentation</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Not Applicable</span> → <span class="trac-field-new">Problem</span> </li> </ul> <p> Yes, this is definitely needed. </p> <p> <code>boost://libs/mpl/index.html</code> is probably wrong, as the <code>://</code> usually indicates that the first past part of the path is a server name. <code>boost:/libs/mpl/index.html</code> or perhaps <code>boost:libs/mpl/index.html</code> is better. </p> <p> Another possibility is to just do this for paths starting with '/', as that does suggest the root of the distribution. I like this, as I'm not keen on inventing our own protocol name. But 'boost:' will work very well if $boost.root == '<a class="ext-link" href="http://www.boost.org"><span class="icon">​</span>http://www.boost.org</a>' - so it'll be ideal for candidate libraries. </p> <p> I'll attach an updated patch which implements what I described, and also fixes a small bug when the link is from a sub-directory. </p> <p> I'll bring this up on the Boost Docs list soon, as someone might have a better idea. </p> Ticket Daniel James Mon, 31 Mar 2008 20:37:56 GMT attachment set https://svn.boost.org/trac10/ticket/1166 https://svn.boost.org/trac10/ticket/1166 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">links.patch</span> </li> </ul> <p> Updated implementation, that uses 'boost:/libs..' instead of 'boost://libs..', and works for links from sub-directories. </p> Ticket Daniel James Sun, 01 Jun 2008 10:08:14 GMT milestone changed https://svn.boost.org/trac10/ticket/1166#comment:3 https://svn.boost.org/trac10/ticket/1166#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.37.0</span> </li> </ul> <p> I've been trying something like this in the doc branch, but it still doesn't completely work. Beacuse it's done as part of the chunking mechanism it only works for chunked output (ie. html/xhtml) but not for other types such as fo (for generating pdfs) and html-single. The links should be dealt with in the initial boostbook to docbook conversion. I'll get back to this. </p> Ticket Steven Watanabe Fri, 20 Jun 2008 01:34:43 GMT <link>https://svn.boost.org/trac10/ticket/1166#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1166#comment:4</guid> <description> <p> Another thing, Would it be better to have a generic mechanism for specifying the root of a path as using an xsl parameter. so that this would become $(boost.root)/... Is this evan possible in xsl? </p> <p> I'd also like to be able to specify the root of relative paths so that I can just specify paths relative to my quickbook sources rather than specifying the paths relative to the destination directory, since this is different for the standalone docs vs. the global boost doc build. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Wed, 11 Feb 2009 22:32:14 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/1166 https://svn.boost.org/trac10/ticket/1166 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-links-1.patch</span> </li> </ul> <p> New implementation, which transforms the links in the boostbook to docbook stage. Currently only translates ulinks, not other links such as images. </p> Ticket Daniel James Wed, 11 Feb 2009 22:32:55 GMT attachment set https://svn.boost.org/trac10/ticket/1166 https://svn.boost.org/trac10/ticket/1166 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-links-2.patch</span> </li> </ul> <p> Some examples of using the 'boost:/' style links. </p> Ticket Daniel James Sun, 15 Feb 2009 19:31:39 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1166#comment:5 https://svn.boost.org/trac10/ticket/1166#comment:5 <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/51261" title="Implement the 'boost:' for links relative to boost root. Also, ...">[51261]</a>) Implement the 'boost:' for links relative to boost root. Also, optionally replace links within the boost distribution with links to the the boost site, which is useful for generating pdfs and standalone documentation. </p> <p> Implemented with John Maddock. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1166" title="#1166: Feature Requests: [boostbook] paths relative to boost.root (closed: fixed)">#1166</a>. </p> Ticket Daniel James Thu, 12 Mar 2009 20:11:59 GMT <link>https://svn.boost.org/trac10/ticket/1166#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1166#comment:6</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/51739" title="Record another previous change: Recorded merge of revisions 51261 via ...">[51739]</a>) Record another previous change: </p> <p> Recorded merge of revisions 51261 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/51261" title="Implement the 'boost:' for links relative to boost root. Also, ...">r51261</a> | danieljames | 2009-02-15 19:31:37 +0000 (Sun, 15 Feb 2009) | 5 lines </p> </blockquote> <p> </p> <blockquote> <p> Implement the 'boost:' for links relative to boost root. Also, optionally replace links within the boost distribution with links to the the boost site, which is useful for generating pdfs and standalone documentation. </p> </blockquote> <p> </p> <blockquote> <p> Implemented with John Maddock. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1166" title="#1166: Feature Requests: [boostbook] paths relative to boost.root (closed: fixed)">#1166</a>. </p> </blockquote> <p> ........ </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sun, 12 Apr 2009 11:29:46 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/1166#comment:7 https://svn.boost.org/trac10/ticket/1166#comment:7 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.37.0</span> → <span class="trac-field-new">Boost 1.39.0</span> </li> </ul> Ticket