[petsc-dev] Putting more menu items at the top of petsc.org pages (how to?)

Jed Brown jed at jedbrown.org
Tue Feb 21 23:19:44 CST 2023


Here's the theme option to control it.

https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/header-links.html#navigation-bar-dropdown-links

"Zhang, Hong via petsc-dev" <petsc-dev at mcs.anl.gov> writes:

> I think this is controlled by the theme we are using, which is pydata-sphinx-theme. It seems that the only way to do what you want is to modify the theme directly.
>
> https://github.com/pydata/pydata-sphinx-theme/blob/main/src/pydata_sphinx_theme/__init__.py#L283
>
> This function displays 5 TocTree directives before going to More. Perhaps we can create our own fork for this theme and customize it.
>
> Hong (Mr.)
>
>> On Feb 19, 2023, at 6:01 PM, Barry Smith <bsmith at petsc.dev> wrote:
>> 
>> 
>>    Googling "magic words sphinx menu" didn't help me so I ask here. Is there a way to have more menu items at the top
>> of the petsc.org pages instead of immediately going to More? I think I saw a way before but cannot find the magic words.
>> 
>> 
>> 
>> <Untitled.png>


More information about the petsc-dev mailing list