Skip to content

Commit

Permalink
Update algolia-search.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-sheng committed Jul 16, 2024
1 parent f19ddfc commit a18d62c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/docsy/assets/js/algolia-search.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$(function () {
var reg = /\/docs\/[a-zA-Z\-]+\/([\w|\.]+)\//;
var res = reg.exec(location.href);
var version = res && res[1] || "next";
var version = res && res[1] || "latest";

docsearch({
container: '#docsearch',
Expand Down

0 comments on commit a18d62c

Please sign in to comment.