Skip to content

Conversation

@xamberl
Copy link
Contributor

@xamberl xamberl commented Jul 11, 2025

I updated the sidebar to match the order of the main navigation pages.

  • HTC guides will only show HTC guides
  • HPC guides will only show HPC guides

The only problem remaining is that I'd like the general guides (pages tagged with both "htc" and "hpc") to show both HTC and HPC guides. However, this would make the sidebar really long, so I'd like both HTC and HPC guides to be collapsible only on the general guides. I wasn't able to figure it out, but I think some kind of button can be added to these lines instead of the <h6>:

{% if show_guide.first %}
<h6 class="mt-5">{{ item }}</h6>
{% else %}
<h6 class="mt-5">{{ item }}</h6>
{% endif %}

@CannonLock, do you have any suggestions?

@xamberl xamberl requested a review from CannonLock July 11, 2025 22:12
@CannonLock CannonLock merged commit 33776c9 into master Jul 15, 2025
1 of 2 checks passed
@CannonLock
Copy link
Member

LGTM! I tweaked the styles so that it scrolls if it overflows which will sort out the issue with content being hidden on the shared pages.

@CannonLock
Copy link
Member

To answer the question I suggest keeping things expanded and in the rare case that something is hidden let the user scroll for it. I think that is more intuitive then hiding all the values off the bat.

@xamberl xamberl deleted the xalim-sidebar branch September 19, 2025 17:47
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 this pull request may close these issues.

3 participants