[sphinx-users] Re: Customizing Relbar (both top/bottom) Links

2016-10-12 Thread Komiya Takeshi
Hi,

It seems cloud_sptheme uses relbar() marcro to generate relbar.
So you might be able to remote the hyperlink to genindex.html by overriding 
it.
But, more simply way, you can disable to generate genindex using 
"html_use_index = False".
Then the hyperlink will be removed automatically.

Thanks,

2016年10月3日月曜日 17時53分20秒 UTC+9 Matthew Gidden:
>
> Hi everyone,
>
> Perhaps a super simple question, but I've run into a bit of a wall. I'd 
> like to customize the relbar (that normally has the next, prev, index, etc. 
> links) -- specifically, I'd like to remove the link to genindex.html (it 
> doesn't make sense in the application I'm using sphinx for). How should I 
> do that?
>
> I am using the cloud_sptheme, but believe this should be a general enough 
> question across themes.
>
> My initial naive attempt was to extend layout.html (gist here 
> ), 
> copying from the layout.html from RTD 
> .
>  
> This didn't work. Does anyone have any suggestions for how to proceed?
>
> Thanks!
> Matt
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.


[sphinx-users] Re: Customizing Relbar (both top/bottom) Links

2016-10-03 Thread 'EMK' via sphinx-users
I think my team was able to modify that navigation bar, but we decided not 
to include the modification in the final layout so I don't remember what we 
did. 

Here are some hints that might help, though.

   1. You are looking to override an element called div.related. (You can 
   see this by right-clicking on that section of the HTML page in Chrome and 
   choosing "inspect")
   
   2. RTD is a very complex theme, and has many customizations that might 
   not apply to other themes. I recommend starting from a simpler example 
   theme like Basic or Alabaster.
   
   3. If you don't need the index at all, try turning it off in conf.py - 
   the theme should not make a link to an index that doesn't exist, right? I 
   think the settings in conf.py are things like html_use_index. 
   

On Monday, October 3, 2016 at 4:53:20 AM UTC-4, Matthew Gidden wrote:
>
> Hi everyone,
>
> Perhaps a super simple question, but I've run into a bit of a wall. I'd 
> like to customize the relbar (that normally has the next, prev, index, etc. 
> links) -- specifically, I'd like to remove the link to genindex.html (it 
> doesn't make sense in the application I'm using sphinx for). How should I 
> do that?
>
> I am using the cloud_sptheme, but believe this should be a general enough 
> question across themes.
>
> My initial naive attempt was to extend layout.html (gist here 
> ), 
> copying from the layout.html from RTD 
> .
>  
> This didn't work. Does anyone have any suggestions for how to proceed?
>
> Thanks!
> Matt
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.