Skip to content

Commit

Permalink
Use local js/css instead of CDN for docsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Nov 6, 2023
1 parent 38fac3d commit b3b9d46
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
1 change: 0 additions & 1 deletion _includes/algolia.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"></script>
<script>
docsearch({
container: '#docsearch',
Expand Down
3 changes: 2 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/app.css">
<link rel="shortcut icon" href="{{ site.baseurl }}/assets/images/favicon.ico">
<link rel="stylesheet" href="/assets/css/utilities.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3" />
<link rel="stylesheet" href="/assets/css/docsearch.v3.css">
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/js/all.min.js"></script>
<script src="/assets/js/docsearch.v3.js"></script>
{% seo %}
{%- if site.google_analytics -%}
{%- include google-analytics.html -%}
Expand Down
8 changes: 8 additions & 0 deletions assets/css/docsearch.v3.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions assets/js/docsearch.v3.js

Large diffs are not rendered by default.

0 comments on commit b3b9d46

Please sign in to comment.