My guess is that you'd have to tweak around in
doc/themes/scikit-learn/layout.html
Basically, if you want that something must be in the side bar or header or
what-not, you have to
use the html and jenga within the mentioned file. You could for example say
{%- if (pagename == 'user_guide') %}
<h3>{{ _('Item!!') }}</h3>
{% endif %}
Item!!
Which will add that specifically on the User Guide page. It all must just
be in the
<div class="sphinxsidebarwrapper"> bracket and it will add it there.
As far as I've come to understand, sphinx/rst is kind of limited when
you've got a sort of custom webpage-layout like ours. I mostly try add it
in through either html/javascript/jenga, as I haven't really figured out
how to make sphinx do specific things outside of the content block.. and
their docs havent yielded much on that
Sorry if I'm misunderstanding you.. but if I'm not, you could basically
manually add your menu items to the
User Guide page's side bar like above, just buy using the layout.html file
Hope this helps!
2013/3/8 <[email protected]>
> I want to have a non-empty menu for the user guide. the template just uses
> the build in toc variable. there is also a toc_tree function but that gives
> the whole toc tree, not just below the current page. I think I know how to
> get what i want in rst but i have no idea how to tell sphinx to render that
> in the sidebar.
>
>
>
> Jaques Grobler <[email protected]> schrieb:
>>
>> Hey Andy,
>>
>> I'm not entirely sure about modifying it - it gets put in at line 206 of
>> layout.html by basically just getting the
>> 'toc' code from, I assume, the layout.html file within the
>> main sphinx/themes/basic.. or at least somewhere around there. What do you
>> want to change there? Removing it is pretty easy. Modifying it I think one
>> would have to overwrite in the scikit-learn layout.html what is currently
>> being taken from the basic/ folder. That's my guess anyway :)
>>
>>
>> 2013/3/5 Andreas Mueller <[email protected]>
>>
>>> On 03/05/2013 04:11 PM, Jaques Grobler wrote:
>>> > > Awesome, thanks. You have my inkscape file, right?
>>> >
>>> > > I am trying to make the user guide also more flat by putting your
>>> java
>>> > > script function in the file now :)
>>> > > I think as the user guide is much shorter now, it doesn't really hide
>>> > > things, but rather makes them easier to find.
>>> > > We'll see.
>>> >
>>> > @Andy I can't seem to find your inkscape file. Would you mind mailing
>>> > it to me?
>>> > Excited to see your further changes. I'm +1 for them so far - or the
>>> > direction it's all
>>> > moving into anyway :)
>>> >
>>> http://amueller.github.com/user_guide.html
>>>
>>> Your expertise is obviously very welcome ;)
>>> Do you know how do modify the toc-tree that is displayed in the sidebar?
>>> I noticed there is none in user guide :-/
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>> _______________________________________________
>>> Scikit-learn-general mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>>>
>>
>> ------------------------------
>>
>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>> endpoint security space. For insight on selecting the right partner to
>> tackle endpoint security challenges, access the full report.
>> http://p.sf.net/sfu/symantec-dev2dev
>>
>> ------------------------------
>>
>> Scikit-learn-general mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>>
>>
> --
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
> gesendet.
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general