Skip to content

Use ID to Identify & Hide Contents List#12

Open
cailafinn wants to merge 1 commit intomainfrom
remove_contents_gap
Open

Use ID to Identify & Hide Contents List#12
cailafinn wants to merge 1 commit intomainfrom
remove_contents_gap

Conversation

@cailafinn
Copy link
Copy Markdown

@cailafinn cailafinn commented Mar 10, 2026

Grabbing the contents by ID instead of by class seems to stop the large gap that we were seeing where the contents used to be in the sphinx source.

The visibility tag is also no-longer needed as the entire element including its box is no longer displayed.

I think the source of the bug is that the pydata-sphinx-theme already makes changes to the contents class and the style in here isn't overriding them. Which is maybe a larger-scale config issue.

To test

  1. I tested this by using the Firefox "Style Editor" to change style.css until it looked right. If there's a better way to test this out I'd be interested to hear it.

Grabbing the contents by ID instead of by class seems to stop the large gap that we were seeing where the contents used to be in the sphinx source.
@cailafinn cailafinn added the bug Something isn't working label Mar 10, 2026
@cailafinn cailafinn moved this to Waiting for Review in ISIS core workstream v6.16.0 Mar 10, 2026
@cailafinn cailafinn changed the title Use ID to Identify Contents Use ID to Identify & Hide Contents List Mar 10, 2026
@thomashampson
Copy link
Copy Markdown

Can't this be tested by building dev docs and opening in the browser?

@cailafinn
Copy link
Copy Markdown
Author

Since this is in a different repo I don't think it would pick this up unless it was merged into main/on anaconda?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Waiting for Review

Development

Successfully merging this pull request may close these issues.

2 participants