Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ generate:
build:
@echo -e "\033[0;32mBUILD:\033[0m"
hugo
node ./scripts/build-search-index.js < ./public/search-data/index.json > ./public/search-index.json
rm -rf ./public/search-data
node ./scripts/build-search-index.js < ./public/docs/search-data/index.json > ./public/docs/search-index.json
rm -rf ./public/docs/search-data

.PHONY: test
test:
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</button>

<div class="right-nav-block">
<form id="search-form" action="/search/" method="get">
<form id="search-form" action="/docs/search/" method="get">
<input type="search" id="search-box" name="q" placeholder="Search..." autocomplete="off">
<button class="button" type="submit"><i class="fas fa-search"></i></button>
</form>
Expand Down
2 changes: 1 addition & 1 deletion static/js/search-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var index;

// Download the search index synchronously.
var req = new XMLHttpRequest();
req.open("GET", "/search-index.json", false /* async */);
req.open("GET", "/docs/search-index.json", false /* async */);
req.send();
if (req.readyState === req.DONE && req.status === 200) {
var data = JSON.parse(req.responseText);
Expand Down