Skip to content

Commit

Permalink
Fix search results
Browse files Browse the repository at this point in the history
  • Loading branch information
MakotoE committed Oct 30, 2023
1 parent 73b8150 commit 81bf1a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 70 deletions.
5 changes: 2 additions & 3 deletions _static/searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ const _displayItem = (item, searchTerms, highlightTerms) => {
const docFileSuffix = DOCUMENTATION_OPTIONS.FILE_SUFFIX;
const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX;
const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY;
const contentRoot = document.documentElement.dataset.content_root;

const [docName, title, anchor, descr, score, _filename] = item;

Expand All @@ -79,11 +78,11 @@ const _displayItem = (item, searchTerms, highlightTerms) => {
if (dirname.match(/\/index\/$/))
dirname = dirname.substring(0, dirname.length - 6);
else if (dirname === "index/") dirname = "";
requestUrl = contentRoot + dirname;
requestUrl = dirname;
linkUrl = requestUrl;
} else {
// normal html builders
requestUrl = contentRoot + docName + docFileSuffix;
requestUrl = docName + docFileSuffix;
linkUrl = docName + docLinkSuffix;
}
let linkEl = listItem.appendChild(document.createElement("a"));
Expand Down
67 changes: 0 additions & 67 deletions codeblock-format/main.go

This file was deleted.

0 comments on commit 81bf1a2

Please sign in to comment.