Skip to content

Commit 3a7b4f5

Browse files
committed
hacky search fix
1 parent 6a9bf60 commit 3a7b4f5

File tree

2 files changed

+36
-11
lines changed

2 files changed

+36
-11
lines changed

mkdocs.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,23 @@ repo_name: 'arendst/tasmota'
55
repo_url: 'https://github.com/arendst/tasmota'
66
edit_uri: 'https://github.com/tasmota/docs/blob/master/docs/'
77
# copyright: 'Copyright © 2020 Tasmota Development Team'
8-
# use_directory_urls: false
8+
9+
plugins:
10+
- search:
11+
lang:
12+
- ro
13+
- en
14+
- alternate-link
15+
- minify:
16+
minify_html: true
17+
# - htmlproofer
918

1019
strict: true
1120

1221
theme:
1322
name: material
14-
# custom_dir: 'theme'
23+
language: 'en'
24+
custom_dir: 'overrides'
1525
logo: '_media/logo.svg'
1626
favicon: _media/favicon.ico
1727
palette:
@@ -22,9 +32,8 @@ theme:
2232
font:
2333
text: Barlow
2434
code: Roboto Mono
35+
2536
extra:
26-
search:
27-
language: 'en'
2837
social:
2938
- icon: fontawesome/brands/discord
3039
link: 'https://discord.gg/Ks2Kzd4'
@@ -44,13 +53,6 @@ markdown_extensions:
4453
- pymdownx.caret
4554
- codehilite
4655
- meta
47-
48-
plugins:
49-
- search
50-
- alternate-link
51-
- minify:
52-
minify_html: true
53-
# - htmlproofer
5456

5557
google_analytics:
5658
- 'UA-140681905-2'

overrides/partials/language/en.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{% macro t(key) %}{{ {
2+
"language": "en",
3+
"direction": "ltr",
4+
"clipboard.copy": "Copy to clipboard",
5+
"clipboard.copied": "Copied to clipboard",
6+
"edit.link.title": "Edit this page",
7+
"footer.previous": "Previous",
8+
"footer.next": "Next",
9+
"meta.comments": "Comments",
10+
"meta.source": "Source",
11+
"search.language": "en",
12+
"search.pipeline.stopwords": true,
13+
"search.pipeline.trimmer": false,
14+
"search.placeholder": "Search",
15+
"search.result.placeholder": "Type to start searching",
16+
"search.result.none": "No matching documents",
17+
"search.result.one": "1 matching document",
18+
"search.result.other": "# matching documents",
19+
"search.tokenizer": "[\s\-\ ]+",
20+
"skip.link.title": "Skip to content",
21+
"source.link.title": "Go to repository",
22+
"toc.title": "Table of contents"
23+
}[key] }}{% endmacro %}

0 commit comments

Comments
 (0)