Skip to content

Commit 4e4dc50

Browse files
committed
wrong path for search
Signed-off-by: Vanessa Sochat <[email protected]>
1 parent 7a62abe commit 4e4dc50

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ previous arts:
66
- [alexcarpenter/material-jekyll-theme](http://alexcarpenter.github.io/material-jekyll-theme)
77
- [squidfunk/mkdocs-material](https://github.com/squidfunk/mkdocs-material)
88

9-
109
## Usage
1110

1211
### 1. Get the code

assets/js/application.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
Array.prototype.forEach.call(n, function(e) {
221221
new f.default.Event.MatchMedia("(min-width: 1220px)", new f.default.Event.Listener(e.previousElementSibling, "click", new f.default.Nav.Collapse(e)))
222222
}), new f.default.Event.MatchMedia("(max-width: 1219px)", new f.default.Event.Listener("[data-md-component=navigation] [data-md-toggle]", "change", new f.default.Nav.Scrolling("[data-md-component=navigation] nav"))), document.querySelector("[data-md-component=search]") && (new f.default.Event.MatchMedia("(max-width: 959px)", new f.default.Event.Listener("[data-md-toggle=search]", "change", new f.default.Search.Lock("[data-md-toggle=search]"))), new f.default.Event.Listener("[data-md-component=query]", ["focus", "keyup", "change"], new f.default.Search.Result("[data-md-component=result]", function() {
223-
return fetch(t.url.base + "/search_index.json", {
223+
return fetch(t.url.base + "/search/search_index.json", {
224224
credentials: "same-origin"
225225
}).then(function(e) {
226226
console.log(e);
@@ -2759,9 +2759,14 @@
27592759
r(this, t);
27602760
var o = i(this, e.call(this, n)),
27612761
a = /^.+github\.com\/([^\/]+)\/?([^\/]+)?.*$/.exec(o.base_);
2762+
console.log("GitHub regexp is");
2763+
console.log(a);
2764+
console.log(a.length);
27622765
if (a && 3 === a.length) {
27632766
var s = a[1],
27642767
c = a[2];
2768+
console.log("Username: " + s);
2769+
console.log("Repository: " + c);
27652770
o.base_ = "https://api.github.com/users/" + s + "/repos", o.name_ = c
27662771
}
27672772
return o

0 commit comments

Comments
 (0)