Skip to content

Commit

Permalink
More updates
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Nov 21, 2023
1 parent 25620f5 commit 472a1ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 90 deletions.
10 changes: 6 additions & 4 deletions docs/javascripts/readthedocs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Trigger Read the Docs' search addon instead of Material MkDocs default
document.querySelector(".md-search__input").addEventListener("focus", (e) => {
const event = new CustomEvent("readthedocs-search-show");
document.dispatchEvent(event);
document.addEventListener("DOMContentLoaded", function(event) {
// Trigger Read the Docs' search addon instead of Material MkDocs default
document.querySelector(".md-search__input").addEventListener("focus", (e) => {
const event = new CustomEvent("readthedocs-search-show");
document.dispatchEvent(event);
});
});
9 changes: 0 additions & 9 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ site_url: !ENV READTHEDOCS_CANONICAL_URL
theme:
name: material

# Disable it for now
# custom_dir: overrides

# Include extra CSS to make some style adjustments
extra_css:
- stylesheets/readthedocs.css
Expand All @@ -20,11 +17,5 @@ extra_css:
extra_javascript:
- javascripts/readthedocs.js

plugins:
- search:
# Disable the search plugin since it interferes with other hotkeys
enabled: false


# I didn't find a good way to disable the "global" hotkeys.
# https://github.com/squidfunk/mkdocs-material/discussions/4273#discussioncomment-3455176
77 changes: 0 additions & 77 deletions overrides/partials/search.html

This file was deleted.

0 comments on commit 472a1ea

Please sign in to comment.