Skip to content

Conversation

@dervoeti
Copy link
Member

@dervoeti dervoeti commented Nov 3, 2025

This should fix the broken search functionality in the docs.

I did this:

  • Moved loading of pagefind-modular-ui.js into head-scripts.hbs (where all the other scripts are loaded) so that it's part of the <head> tag (and not <body>)
  • Removed header-scripts.hbs since it was now empty
  • Renamed header-content.hbs to header.hbs. header.hbs was there before and included header-scripts and header-content. Since header-scripts is now gone it can just include the content of header-content directly.

This now includes the pagefind JS on my local machine in the HTML source.
I suspect that adding the Mermaid extension in stackabletech/documentation#791 might have broken it, since Mermaid is now the first script right after the <body> tag. I have not investigated this further though, since consolidating the loading of scripts in one place seems like the right thing to do and already fixed the problem.

Copy link
Member

@NickLarsenNZ NickLarsenNZ left a comment

Choose a reason for hiding this comment

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

LGMT

@dervoeti dervoeti merged commit c7c37ec into stackable Nov 3, 2025
2 checks passed
@dervoeti dervoeti deleted the fix/search-script-loading branch November 3, 2025 19:11
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