RE: [sphinx-dev] Putting the search box on the top bar

2010-09-28 Thread Alastair Dent


Find the layout.html file for the theme you are using.

Look for 'Search' and you should find some lines like:

{%- block sidebarsearch %}
{%- include searchbox.html %}
{%- endblock %}


Now to decide where to put it in the header.

The template I'm using has a navigation bar at the top, defined in {%-
macro relbar() %} 
I put the 
{%- block sidebarsearch %}
{%- include searchbox.html %}
{%- endblock %}

In the macro, after the definition of the navigation html.  You'll
probably want to tweak the layout - do this in layout.html.

-Original Message-
From: sphinx-dev@googlegroups.com [mailto:sphinx-...@googlegroups.com]
On Behalf Of delfick
Sent: 28 September 2010 11:37
To: sphinx-dev
Subject: [sphinx-dev] Putting the search box on the top bar

Hello,

Does anyone know how I'd go about making it so the search box is at the
top of the page, rather than in the sidebar ?

Thankyou,

Regards,
Stephen

--
You received this message because you are subscribed to the Google
Groups sphinx-dev group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



Re: [sphinx-dev] Putting the search box on the top bar

2010-09-28 Thread Stephen Moore
On Tue, Sep 28, 2010 at 8:35 PM, Alastair Dent alastair.d...@imgtec.com wrote:


 Find the layout.html file for the theme you are using.

 Look for 'Search' and you should find some lines like:

 [..]

well that was quite a bit easier than I thought it would be :)

Thankyou

...

Regards,
Stephen

-- 
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



RE: [sphinx-dev] Putting the search box on the top bar

2010-09-28 Thread Alastair Dent
Mostly it is easier - once you know where things are.

My suggestion is a bit of a cludge and I'm sure someone else can come up
with a more elegant solution. 

-Original Message-
From: sphinx-dev@googlegroups.com [mailto:sphinx-...@googlegroups.com]
On Behalf Of Stephen Moore
Sent: 28 September 2010 13:55
To: sphinx-dev@googlegroups.com
Subject: Re: [sphinx-dev] Putting the search box on the top bar

On Tue, Sep 28, 2010 at 8:35 PM, Alastair Dent
alastair.d...@imgtec.com wrote:


 Find the layout.html file for the theme you are using.

 Look for 'Search' and you should find some lines like:

 [..]

well that was quite a bit easier than I thought it would be :)

Thankyou

...

Regards,
Stephen

--
You received this message because you are subscribed to the Google
Groups sphinx-dev group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.