Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split and refactor generate_header_nav_before_dropdown #1773

Closed
Carreau opened this issue Apr 18, 2024 · 0 comments · Fixed by #1780
Closed

Split and refactor generate_header_nav_before_dropdown #1773

Carreau opened this issue Apr 18, 2024 · 0 comments · Fixed by #1780

Comments

@Carreau
Copy link
Collaborator

Carreau commented Apr 18, 2024

I think we need to split this function to not return html but just the necessary bits to generate the html for the navs, and have separate functions to generate navs in different place instead of messing with html strings.

We should also make it clearer function are exposed to end users of the theme.

Originally posted by @Carreau in #1771 (comment)

Carreau added a commit to Carreau/pydata-sphinx-theme that referenced this issue Apr 23, 2024
On top of  pydata#1771, should fix pydata#1773 (once fininished)

This try to split the function into two parts: one that wrangle the
data,  one that generate html.

The generating the data part should be cacheable, while the other can be
made more flexible to be reusable in different part of the theme
(typically generating or not dropdowns in the sidebar or navbar).
Carreau added a commit to Carreau/pydata-sphinx-theme that referenced this issue May 2, 2024
On top of  pydata#1771, should fix pydata#1773 (once fininished)

This try to split the function into two parts: one that wrangle the
data,  one that generate html.

The generating the data part should be cacheable, while the other can be
made more flexible to be reusable in different part of the theme
(typically generating or not dropdowns in the sidebar or navbar).
Carreau added a commit to Carreau/pydata-sphinx-theme that referenced this issue May 7, 2024
On top of  pydata#1771, should fix pydata#1773 (once fininished)

This try to split the function into two parts: one that wrangle the
data,  one that generate html.

The generating the data part should be cacheable, while the other can be
made more flexible to be reusable in different part of the theme
(typically generating or not dropdowns in the sidebar or navbar).
Carreau added a commit to Carreau/pydata-sphinx-theme that referenced this issue May 14, 2024
On top of  pydata#1771, should fix pydata#1773 (once fininished)

This try to split the function into two parts: one that wrangle the
data,  one that generate html.

The generating the data part should be cacheable, while the other can be
made more flexible to be reusable in different part of the theme
(typically generating or not dropdowns in the sidebar or navbar).
Carreau added a commit that referenced this issue May 22, 2024
Refactor navbar generating function.

This should fix #1773 (once fininished)

It tries to split the function into two parts: one that wrangle the
data,  one that generate html.

The generating the data part should be cacheable, while the other can be
made more flexible to be reusable in different part of the theme
(typically generating or not dropdowns in the sidebar or navbar).
---------

Co-authored-by: Daniel McCloy <dan@mccloy.info>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant