Provide a general description of the issue or problem.
This section of the code:
|
} else { |
|
// Use the documentation nav links |
|
document |
|
.getElementById("Documentation") |
|
.querySelectorAll(".nav-link") |
|
.forEach(function (el) { |
|
// We might want to somehow limit which projects to include in the search |
|
let slug = el.innerHTML.replace(/(^\s|\s$)/, ""); |
|
let link = el.getAttribute("href"); |
|
_obj.projects[slug] = { name: slug, url: link }; |
|
}); |
|
this.projectorder = Object.keys(this.projects); |
|
} |
Isn't really needed now we have the Python theme configuration.
@slowe How would you recommend we remove this? I think we would need to just fallback to the original sphinx search? I can make the Python configuration raise an error, so it should be unlikely to hit this.
Provide a general description of the issue or problem.
This section of the code:
sunpy-sphinx-theme/src/sunpy_sphinx_theme/theme/sunpy/static/js/rtd_enhanced_search.js
Lines 80 to 92 in 3961b64
Isn't really needed now we have the Python theme configuration.
@slowe How would you recommend we remove this? I think we would need to just fallback to the original sphinx search? I can make the Python configuration raise an error, so it should be unlikely to hit this.