Skip to content

Conversation

@pedroslvieira
Copy link
Contributor

@pedroslvieira pedroslvieira commented Nov 24, 2025

Copy link
Contributor

@asteiner-swisstopo asteiner-swisstopo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice thanks, it works.

Just had a small comment about maintainability.

// Initialize Mermaid after DOM is ready
initMermaid()

// Initial scroll to active sidebar item, with timeout to ensure the SideBar is rendered
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about adding a sentence to make it clear that this is necessary when using a direct link?

Something like this:

// Without this, the sidebar is not centered on the current article if we come from a different domain and use a direct link.

It would not be obvious for me otherwise why this is necessary.

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