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

How do I add a drop-down list in the navigation bar? #145

Open
PProfizi opened this issue Nov 7, 2022 · 5 comments
Open

How do I add a drop-down list in the navigation bar? #145

PProfizi opened this issue Nov 7, 2022 · 5 comments

Comments

@PProfizi
Copy link
Contributor

PProfizi commented Nov 7, 2022

I would like to add a drop-down list when the user clicks on a section in the navigation bar of the pydpf-core's doc:
image

The goal is to propose two distinct "Operators" pages, one "Entry" and one "Premium".

I am not familiar on how to work with themes and styles, so any indication on how to do that would be great.

Thanks!

@PProfizi PProfizi changed the title How do I add a drop-down list in the navigation bar. How do I add a drop-down list in the navigation bar? Nov 7, 2022
@PProfizi
Copy link
Contributor Author

PProfizi commented Nov 7, 2022

The third example under here seems to do what I want, yet I have no idea how to integrate that via Sphinx.

image

@Revathyvenugopal162
Copy link
Contributor

ansys/pydpf-core#646, Addressed the issues with cards here.

@jorgepiloto
Copy link
Member

@Revathyvenugopal162, should we close this issue in favor of #500?

@Revathyvenugopal162
Copy link
Contributor

@Revathyvenugopal162, should we close this issue in favor of #500?

We are implementing the dropdown in #500 only for the home page section in the navigation bar, not for the other entries. However, I believe that if the other sections have different entries, they should use cards, similar to other libraries. We've also updated this in pyDPF, so I think we can close this issue. Additionally, #500 seems to be a duplicate of this issue. That is providing a dropdown in the toctree. If you agree that the entries in the sections should use cards instead of a dropdown, we can proceed to close this issue.

@MaxJPRey
Copy link
Contributor

I agree @Revathyvenugopal162 .
As soon as #500 is fixed, let's get back to @PProfizi to make sure it suits their expectations.

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

No branches or pull requests

4 participants