Hey @Matt, thank you very much, excellent info!

I went into /usr/share/sphinx/themes/basic/layout.html (I think that's the 
one I have to play with because of all that inheritance thing) but there I 
cannot find block relbar1 or relbar2, there I only find {%- macro relbar() 
%}
Should I modify things there?
I tried to change a word there and tested it, but I did not see any 
difference.

On Monday, October 19, 2020 at 3:06:22 PM UTC+2 Matt from Documatt wrote:

> It would be best if you learned a little about Sphinx themes. Themes 
> contain templates like layout.html for page.html for regular documents, 
> search.html for search results, etc. The most important template is 
> layout.html. Templates contain blocks that are the smallest customizable 
> parts. Based on your question, you want to override block "relbar1" in 
> layout.html.
>
> Have a look at 
> https://documatt.gitlab.io/sphinx-themes/learn_basic_theme_project/ to 
> learn layout.html blocks.
>
> The official documentation has an excellent description and examples of 
> overriding blocks: 
> https://www.sphinx-doc.org/en/master/templating.html#jinja-sphinx-templating-primer
> .
>
> I recently blogged about this topic, too, at 
> https://techwriter.documatt.com/sphinx-theming/index.html. Feel free to 
> ask here!
>
> Matt
> https://techwriter.documatt.com
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/5224c222-19e1-4ef5-af57-7dcbf52384aan%40googlegroups.com.

Reply via email to