mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-27 17:00:54 +01:00
Prepare 1.8.0 release
This commit is contained in:
parent
14f85c52de
commit
3b6ee1e1cb
@ -1,3 +1,10 @@
|
||||
mkdocs-material-1.8.0 (2017-08-02)
|
||||
|
||||
* Added support for lazy-loading of search results for better performance
|
||||
* Added support for customization of search tokenizer/separator
|
||||
* Fixed #424: Search doesn't handle capital letters anymore
|
||||
* Fixed #419: Search doesn't work on whole words
|
||||
|
||||
mkdocs-material-1.7.5 (2017-07-25)
|
||||
|
||||
* Fixed #398: Forms broken due to search shortcuts
|
||||
|
@ -403,8 +403,6 @@ section on [overriding partials][18] and the general guide on
|
||||
|
||||
#### Site search
|
||||
|
||||
##### Language
|
||||
|
||||
Site search is implemented using [lunr.js][21], which includes stemmers for the
|
||||
English language by default, while stemmers for other languages are included
|
||||
with [lunr-languages][22], both of which are integrated with this theme. Support
|
||||
@ -434,6 +432,17 @@ Norwegian `no`, Swedish `sv` and Turkish `tr`.
|
||||
JavaScript payload by around 20kb (without gzip) and by another 15-30kb per
|
||||
language.
|
||||
|
||||
The separator for tokenization can also be customized, which makes it possible
|
||||
to index parts of words that are separated by `-` or `.` for example:
|
||||
|
||||
``` jinja
|
||||
{% macro t(key) %}{{ {
|
||||
...
|
||||
"search.tokenizer": "[\s\-\.]+",
|
||||
...
|
||||
}[key] }}{% endmacro %}
|
||||
```
|
||||
|
||||
[21]: https://lunrjs.com
|
||||
[22]: https://github.com/MihaiValentin/lunr-languages
|
||||
|
||||
|
@ -12,11 +12,18 @@ To determine the currently installed version, use the following command:
|
||||
|
||||
``` sh
|
||||
pip show mkdocs-material | grep -E ^Version
|
||||
# Version 1.7.5
|
||||
# Version 1.8.0
|
||||
```
|
||||
|
||||
## Changelog
|
||||
|
||||
### 1.8.0 <small> _ August 2, 2017</small>
|
||||
|
||||
* Added support for lazy-loading of search results for better performance
|
||||
* Added support for customization of search tokenizer/separator
|
||||
* Fixed [#424][424]: Search doesn't handle capital letters anymore
|
||||
* Fixed [#419][419]: Search doesn't work on whole words
|
||||
|
||||
### 1.7.5 <small> _ July 25, 2017</small>
|
||||
|
||||
* Fixed [#398][398]: Forms broken due to search shortcuts
|
||||
|
@ -24,7 +24,7 @@
|
||||
{% else %}
|
||||
<link rel="shortcut icon" href="{{ base_url }}/assets/images/favicon.png">
|
||||
{% endif %}
|
||||
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-1.7.5">
|
||||
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-1.8.0">
|
||||
{% endblock %}
|
||||
{% block htmltitle %}
|
||||
{% if page and page.meta.title %}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mkdocs-material",
|
||||
"version": "1.7.5",
|
||||
"version": "1.8.0",
|
||||
"description": "A Material Design theme for MkDocs",
|
||||
"keywords": [
|
||||
"mkdocs",
|
||||
|
Loading…
Reference in New Issue
Block a user