Skip to content

Breaking: Frontend UI poof bug #60

@dylanh724

Description

@dylanh724

The UI doesn't load in, so search doesn't work (null err from docsearch.js).

I tried to debug it, but the file is uglified, so it's too difficult to debug (keep an eye out for a feat request to un-uglify these so we can help you guys debug).

More context, screenshots, and [very dirty] workarounds in the Docsearch Discord thread

TL;DR:

  1. image

  2. This prevents generating the HTML code:

<div class="search-button__wrapper">
    <div class="search-button__overlay"></div>
    <div class="search-button__search-container">
		<form class="bd-search d-flex align-items-center"
			  action="search.html"
			  method="get">
		  <i class="fa-solid fa-magnifying-glass"></i>
		  <input type="search"
				 class="form-control"
				 name="q"
				 id="search-input"
				 placeholder="Search..."
				 aria-label="Search..."
				 autocomplete="off"
				 autocorrect="off"
				 autocapitalize="off"
				 spellcheck="false"/>
			<span class="search-button__kbd-shortcut">
				<kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd>
			</span>
		</form>
	</div>
</div>

The ultra-dirty workaround is to copy+paste this into source/_templates/layout.html to inject this directly in instead of awaiting generation. The other js containing the api keys and such still spawn np.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions