diff --git a/lib/docs/index.html b/lib/docs/index.html
index f9c2954a3a..3d4e663dbc 100644
--- a/lib/docs/index.html
+++ b/lib/docs/index.html
@@ -654,7 +654,13 @@
No Results Found
-
Press escape to exit search and then '?' to see more options.
+
Here are some things you can try:
+
+ - Check out the Language Reference for the language itself.
+ - Check out the Learn page for other helpful resources for learning Zig.
+ - Use your search engine.
+
+
Press ? to see keyboard shortcuts and Esc to return.
Fields
diff --git a/lib/docs/main.js b/lib/docs/main.js
index f171326b2e..3072918b32 100644
--- a/lib/docs/main.js
+++ b/lib/docs/main.js
@@ -51,6 +51,7 @@ var zigAnalysis;
const domHdrName = document.getElementById("hdrName");
const domHelpModal = document.getElementById("helpModal");
const domSearchPlaceholder = document.getElementById("searchPlaceholder");
+ const domLangRefLink = document.getElementById("langRefLink");
let searchTimer = null;
let searchTrimResults = true;
@@ -161,6 +162,13 @@ var zigAnalysis;
window.addEventListener("keydown", onWindowKeyDown, false);
onHashChange();
+ let langRefVersion = zigAnalysis.params.zigVersion;
+ if (!/^\d+\.\d+\.\d+$/.test(langRefVersion)) {
+ // the version is probably not released yet
+ langRefVersion = "master";
+ }
+ domLangRefLink.href = `https://ziglang.org/documentation/${langRefVersion}/`;
+
function renderTitle() {
let list = curNav.pkgNames.concat(curNav.declNames);
let suffix = " - Zig";