Skip to content

Commit

Permalink
Fix doc search
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Jan 18, 2023
1 parent 16a1511 commit 0254822
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/src/html/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
</div>

<!-- Button to open search modal -->
{% if "search" in config["plugins"] %}
{% if "material/search" in config.plugins %}
<label class="md-header__button md-icon" for="__search">
{% include ".icons/material/magnify.svg" %}
</label>
Expand Down
5 changes: 4 additions & 1 deletion docs/src/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ theme:
- navigation.top
- navigation.instant
- content.tabs.link
- search.share
- search.highlight
- search.suggest
pymdownx:
sponsor: "https://github.com/sponsors/facelessuser"

Expand Down Expand Up @@ -172,7 +175,7 @@ extra_javascript:
- assets/pymdownx-extras/extra-loader.js

plugins:
- search
- search:
- git-revision-date-localized:
fallback_to_build_date: true
- minify:
Expand Down
10 changes: 9 additions & 1 deletion docs/src/scss/_material.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ html {
background-color: var(--md-accent-bg-color--light);

&:hover {
background-color: var(--md-default-bg-color);
background-color: var(--md-default-bg-color--light);
}

~ .md-search__icon {
Expand All @@ -126,6 +126,14 @@ html {
}
}

[data-md-toggle=search]:checked~.md-header .md-search__input {
background-color: transparent;
}

.md-search__suggest {
color: var(--md-default-autocomplete-fg-color);
}

.md-search__overlay, .md-overlay {
background-color: var(--md-default-bg-color--light);
}
Expand Down
1 change: 1 addition & 0 deletions docs/src/scss/palette/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
--md-default-fg-color--light: #{transparentize($drac-fg, 0.46)};
--md-default-fg-color--lighter: #{transparentize($drac-fg, 0.84)};
--md-default-fg-color--lightest: #{transparentize($drac-fg, 0.93)};
--md-default-autocomplete-fg-color: #{transparentize($drac-fg, 0.60)};

--md-default-bg-color: var(--md-default-bg-color--darkest);
--md-default-bg-color--light: #{transparentize($drac-default-bg, 0.3)};
Expand Down
2 changes: 2 additions & 0 deletions docs/theme/assets/pymdownx-extras/extra-3ea1e896af.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/theme/assets/pymdownx-extras/extra-3ea1e896af.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions docs/theme/assets/pymdownx-extras/extra-7cf5de6eed.css

This file was deleted.

1 change: 0 additions & 1 deletion docs/theme/assets/pymdownx-extras/extra-7cf5de6eed.css.map

This file was deleted.

2 changes: 1 addition & 1 deletion docs/theme/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
</a>
</div>
</div>
{% if "search" in config["plugins"] %}
{% if "material/search" in config.plugins %}
<label class="md-header__button md-icon" for="__search">
{% include ".icons/material/magnify.svg" %}
</label>
Expand Down
7 changes: 5 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ theme:
- navigation.top
- navigation.instant
- content.tabs.link
- search.share
- search.highlight
- search.suggest
pymdownx:
sponsor: "https://github.com/sponsors/facelessuser"

Expand Down Expand Up @@ -163,7 +166,7 @@ extra:
link: https://discord.gg/TWs8Tgr
extra_css:
# - https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css
- assets/pymdownx-extras/extra-7cf5de6eed.css
- assets/pymdownx-extras/extra-3ea1e896af.css
extra_javascript:
- https://unpkg.com/[email protected]/dist/mermaid.min.js
# - https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js
Expand All @@ -172,7 +175,7 @@ extra_javascript:
- assets/pymdownx-extras/extra-loader-52693605.js

plugins:
- search
- search:
- git-revision-date-localized:
fallback_to_build_date: true
- minify:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
isolated_build = true
envlist =
{py37,py38,py39,py310}, lint, documents
{py37,py38,py39,py310,p311}, lint, documents

[testenv]
passenv = LANG
Expand Down

0 comments on commit 0254822

Please sign in to comment.