Skip to content

Commit

Permalink
hacky search fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blakadder committed Apr 21, 2020
1 parent 6a9bf60 commit 3a7b4f5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 11 deletions.
24 changes: 13 additions & 11 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,23 @@ repo_name: 'arendst/tasmota'
repo_url: 'https://github.com/arendst/tasmota'
edit_uri: 'https://github.com/tasmota/docs/blob/master/docs/'
# copyright: 'Copyright © 2020 Tasmota Development Team'
# use_directory_urls: false

plugins:
- search:
lang:
- ro
- en
- alternate-link
- minify:
minify_html: true
# - htmlproofer

strict: true

theme:
name: material
# custom_dir: 'theme'
language: 'en'
custom_dir: 'overrides'
logo: '_media/logo.svg'
favicon: _media/favicon.ico
palette:
Expand All @@ -22,9 +32,8 @@ theme:
font:
text: Barlow
code: Roboto Mono

extra:
search:
language: 'en'
social:
- icon: fontawesome/brands/discord
link: 'https://discord.gg/Ks2Kzd4'
Expand All @@ -44,13 +53,6 @@ markdown_extensions:
- pymdownx.caret
- codehilite
- meta

plugins:
- search
- alternate-link
- minify:
minify_html: true
# - htmlproofer

google_analytics:
- 'UA-140681905-2'
Expand Down
23 changes: 23 additions & 0 deletions overrides/partials/language/en.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% macro t(key) %}{{ {
"language": "en",
"direction": "ltr",
"clipboard.copy": "Copy to clipboard",
"clipboard.copied": "Copied to clipboard",
"edit.link.title": "Edit this page",
"footer.previous": "Previous",
"footer.next": "Next",
"meta.comments": "Comments",
"meta.source": "Source",
"search.language": "en",
"search.pipeline.stopwords": true,
"search.pipeline.trimmer": false,
"search.placeholder": "Search",
"search.result.placeholder": "Type to start searching",
"search.result.none": "No matching documents",
"search.result.one": "1 matching document",
"search.result.other": "# matching documents",
"search.tokenizer": "[\s\-\ ]+",
"skip.link.title": "Skip to content",
"source.link.title": "Go to repository",
"toc.title": "Table of contents"
}[key] }}{% endmacro %}

0 comments on commit 3a7b4f5

Please sign in to comment.