|
I have committed a basic implementation, see r773896 You can now add any html base attribute as a toc macro parameter, eg %{toc|section=2|fromDepth=1|toDepth=1|id=myId|class=myClass}
this will add the parameters to the list tag: <ul id="myId" class="myClass">...
It is possible to wrap the <ul> in a <div id=""...> if this is desired. Whether the toc appears inside a <div class="section"> depends on whether the toc declaration appears within a section in the source document. Just move it outside if you don't want it there. I do not see a way to move the toc outside the bodyColumn or the contentBox as these are put in place by the siterenderer, ie outside doxia, after the sourc docs have been parsed. It would be so nice if the Site renderer could create a vertical menu from the TOC, like this site has (mine): I think the <div> of TOC should be outside of the bodyColumn and the contentBox to be able to do this. I don't think the TOC macro was meant to provide this functionality. It was designed to work within single pages, not whole sites ( What you want should rather be accomplished by some outside plugin, like the site plugin does with site.xml, and I am currently thinking about the same functionality for the pdf plugin. So as far as Doxia is concerned, I will close this issue as fixed, you may open another feature request for the site renderer or site plugin. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Even better:
It would be nice if the divID parameter exists, then the generated TOC, should show outside of both
<div id="bodyColumn">
<div id="contentBox">
(with the speficied id).
This would allow the CSS programmer to put the TOC into the navigation column, where it really belongs.