Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
base repository: squidfunk/mkdocs-material
Choose a Base Repository
squidfunk/mkdocs-material
604bpierce/mkdocs-material
Acidburn0zzz/mkdocs-material
AndreWin/mkdocs-material
CWKevo/mkdocs-material
ChaosPower/mkdocs-material
Cloudxtreme/mkdocs-material
CoSeCant-csc/mkdocs-material
Community-Lores/mkdocs-material
DavidLambauer/mkdocs-material
Elvander/mkdocs-material
EvanSky/mkdocs-material
FlorianRappl/mkdocs-material
IntPlanet/mkdocs-material
JohanBjerning/mkdocs-material
JurgenSchouppe/mkdocs-material
Lu-Yi-Hsun/mkdocs-material
ManticoreGamesInc/mkdocs-material
MarinBernard/mkdocs-material
Mehran-Baghi/mkdocs-material
Mgutjahr/mkdocs-material
MikePayne/mkdocs-material
NickPavlov/mkdocs-material-components
OI-wiki/mkdocs-material
REAP720801/mkdocs-material
ReDeiPirati/mkdocs-material
RubeusTI/docs
SSK0001/mkdocs-material
SeppPenner/mkdocs-material
Subh94/mkdocs-material
Tset-Noitamotua/mkdocs-material
WillburHolt/mkdocs-material
YuyaHirayama/mkdocs-material
ahmadawais/mkdocs-material
aidanreilly/mkdocs-material
aimeos/mkdocs-material
alexeyzvegintcev/mkdocs-material-components
alexjlockwood/mkdocs-material
aliciaphes/mkdocs-material
amabdallah/mkdocs-material
andru255/mkdocs-material
antoniocastanheira/mkdocs-material
aureg/mkdocs-material
b6pzeusbc54tvhw5jgpyw8pwz2x6gs/mkdocs-material
baikingrio/mkdocs-material
barisaksu/mkdocs-material
baudryj/mkdocs-material
beilly/mkdocs-material
bentarnoff/mkdocs-material
bestwpw/mkdocs-material
beyondsanity/mkdocs-material
blankapham/mkdocs-material
boney9/mkdocs-material
boydcl/mkdocs-material
brianjking/mkdocs-material
brocaar/mkdocs-material
bugwrangler/mkdocs-material
cbasuta-retain/mkdocs-material
cesaremorel/mkdocs-material
ceymard/mkdocs-material
chhh/mkdocs-material
chrisbanes/mkdocs-material
christophermoura/mkdocs-material
cjsheets/mkdocs-material
cnicolov/mkdocs-material
cnmade/mkdocs-material
codacy/codacy-mkdocs-material
codetricity/mkdocs-material
comcc/mkdocs-material
cskiwi/mkdocs-material
curx/mkdocs-material
cxlwill/mkdocs-material
damianz5/mkdocs-material
damilgra/mkdocs-material
danielmorena/mkdocs-material
davidwindell/mkdocs-material
defji/mkdocs-material
dmytrodanylyk/mkdocs-material
drasko/mkdocs-material
dungphanxuan/mkdocs-material
dwd31415/mkdocs-material
ecstasy2/mkdocs-material
edmondscommerce/mkdocs-material
egedal/mkdocs-material
emanuelrosa/mkdocs-material
farlandliu/mkdocs-material
fenos/mkdocs-material
filltr/mkdocs-material
firepol/mkdocs-material
fkorotkov/mkdocs-material
flyeven/mkdocs-material
fmaida/mkdocs-material
fuhrmannb/mkdocs-material
funkyfuture/mkdocs-material
gmatteo/mkdocs-material
gpechim/mkdocs-material
gryckelynck/mkdocs-material
gurolg/mkdocs-material
hguomin/mkdocs-material
hu19891110/mkdocs-material
hyeonchang/mkdocs-material
iabhi7/mkdocs-material
iamtraction/mkdocs-material
illumos/mkdocs-material
jakubknejzlik/mkdocs-material
jandrewstre/mkdocs-material
jekyll-now-blog/a
jhsilva007/mkdocs-material
joeloverton/mkdocs-material
johnmccabe/mkdocs-material
jorgebg/mkdocs-material
jornada/mkdocs-material
joyhooei/mkdocs-material
jsding/mkdocs-material
jszroberto/mkdocs-material
jvictorsoto/mkdocs-material
k4kfh/mkdocs-material
kay54068/mkdocs-material
khalidsalomao/mkdocs-material
killeryoyo01/mkdocs-material
ktreese/mkdocs-material
kumardeni/mkdocs-material
kungstriving/mkdocs-material
lahdekorpi/mkdocs-material
lazarenkoalexey/mkdocs-material
lenciel/mkdocs-material
liliasfaxi/mkdocs-material
lionpeloux/mkdocs-material
lukasreussner/mkdocs-material
lukewhitt/mkdocs-material
madhuramendis/mkdocs-material
madre/mkdocs-material
madrus/mkdocs-material
makerdiary/mkdocs-material
markainick/mkdocs-material
mattbostock/mkdocs-material
maxiride/mkdocs-material
mbrantner/mkdocs-material
mdd41/mkdocs-material
michaeldove/mkdocs-material
miraai/mkdocs-material
miyajan/mkdocs-material
mjames-upc/mkdocs-unidata
monanllc/mkdocs-material
msudol/mkdocs-material
mtandre/mkdocs-material
mvertes/mkdocs-material
mwasyou/mkdocs-material
nickhsu/mkdocs-material
nmanumr/mkdocs-material
nwesterlaken/mkdocs-material
oaugustus/mkdocs-material
obestwalter/mkdocs-material
oddcb/mkdocs-material
omarnema/mkdocs-material
paco-portada/mkdocs-material
pascalberger/mkdocs-material
paulgibbs/mkdocs-material
phonaylin/mkdocs-material
pinpikokun/mkdocs-material
pmhayward/mkdocs-material
qdw-luke/mkdocs-material
qhenry/mkdocs-material
ragbadaskar/mkdocs-material
rbarge76/mkdocs-material
reifurther/mkdocs-material
reijoh/mkdocs-material
roidelapluie/mkdocs-material
saurabhbhatt/mkdocs-material
sbuckpesch/ssml.io
schollz/mkdocs-material
seancolsen/mkdocs-material
sebastian-marinescu/mkdocs-material
sgomez/mkdocs-material
siam28/mkdocs-material
sivasankar-r/mkdocs-material
spencer-scott/mkdocs-material
stefanwimmer128/mkdocs-material
szarych/mkdocs-material
tapkey/mkdocs-material
theSinner/mkdocs-material
thej/mkdocs-docoloo
thesocialdeck/mkdocs-material
tiennguyenhoan/mkdocs-material
tilgalas/mkdocs-material
tomrenn/mkdocs-material
trinadhv/mkdocs-material
tuedang/mkdocs-material
tumregels/mkdocs-material
tusbar/mkdocs-material
tushart91/mkdocs-material
tychota/mkdocs-material
vician/mkdocs-material
viewty/mkdocs-material
webgeaz/mkdocs-material
xorander00/mkdocs-material
yakworks/docmark
yannduran/mkdocs-material
yetone/mkdocs-material
zoubin/mkdocs-material
Nothing to show
base: 5.3.3
head repository: squidfunk/mkdocs-material
Choose a Head Repository
squidfunk/mkdocs-material
604bpierce/mkdocs-material
Acidburn0zzz/mkdocs-material
AndreWin/mkdocs-material
CWKevo/mkdocs-material
ChaosPower/mkdocs-material
Cloudxtreme/mkdocs-material
CoSeCant-csc/mkdocs-material
Community-Lores/mkdocs-material
DavidLambauer/mkdocs-material
Elvander/mkdocs-material
EvanSky/mkdocs-material
FlorianRappl/mkdocs-material
IntPlanet/mkdocs-material
JohanBjerning/mkdocs-material
JurgenSchouppe/mkdocs-material
Lu-Yi-Hsun/mkdocs-material
ManticoreGamesInc/mkdocs-material
MarinBernard/mkdocs-material
Mehran-Baghi/mkdocs-material
Mgutjahr/mkdocs-material
MikePayne/mkdocs-material
NickPavlov/mkdocs-material-components
OI-wiki/mkdocs-material
REAP720801/mkdocs-material
ReDeiPirati/mkdocs-material
RubeusTI/docs
SSK0001/mkdocs-material
SeppPenner/mkdocs-material
Subh94/mkdocs-material
Tset-Noitamotua/mkdocs-material
WillburHolt/mkdocs-material
YuyaHirayama/mkdocs-material
ahmadawais/mkdocs-material
aidanreilly/mkdocs-material
aimeos/mkdocs-material
alexeyzvegintcev/mkdocs-material-components
alexjlockwood/mkdocs-material
aliciaphes/mkdocs-material
amabdallah/mkdocs-material
andru255/mkdocs-material
antoniocastanheira/mkdocs-material
aureg/mkdocs-material
b6pzeusbc54tvhw5jgpyw8pwz2x6gs/mkdocs-material
baikingrio/mkdocs-material
barisaksu/mkdocs-material
baudryj/mkdocs-material
beilly/mkdocs-material
bentarnoff/mkdocs-material
bestwpw/mkdocs-material
beyondsanity/mkdocs-material
blankapham/mkdocs-material
boney9/mkdocs-material
boydcl/mkdocs-material
brianjking/mkdocs-material
brocaar/mkdocs-material
bugwrangler/mkdocs-material
cbasuta-retain/mkdocs-material
cesaremorel/mkdocs-material
ceymard/mkdocs-material
chhh/mkdocs-material
chrisbanes/mkdocs-material
christophermoura/mkdocs-material
cjsheets/mkdocs-material
cnicolov/mkdocs-material
cnmade/mkdocs-material
codacy/codacy-mkdocs-material
codetricity/mkdocs-material
comcc/mkdocs-material
cskiwi/mkdocs-material
curx/mkdocs-material
cxlwill/mkdocs-material
damianz5/mkdocs-material
damilgra/mkdocs-material
danielmorena/mkdocs-material
davidwindell/mkdocs-material
defji/mkdocs-material
dmytrodanylyk/mkdocs-material
drasko/mkdocs-material
dungphanxuan/mkdocs-material
dwd31415/mkdocs-material
ecstasy2/mkdocs-material
edmondscommerce/mkdocs-material
egedal/mkdocs-material
emanuelrosa/mkdocs-material
farlandliu/mkdocs-material
fenos/mkdocs-material
filltr/mkdocs-material
firepol/mkdocs-material
fkorotkov/mkdocs-material
flyeven/mkdocs-material
fmaida/mkdocs-material
fuhrmannb/mkdocs-material
funkyfuture/mkdocs-material
gmatteo/mkdocs-material
gpechim/mkdocs-material
gryckelynck/mkdocs-material
gurolg/mkdocs-material
hguomin/mkdocs-material
hu19891110/mkdocs-material
hyeonchang/mkdocs-material
iabhi7/mkdocs-material
iamtraction/mkdocs-material
illumos/mkdocs-material
jakubknejzlik/mkdocs-material
jandrewstre/mkdocs-material
jekyll-now-blog/a
jhsilva007/mkdocs-material
joeloverton/mkdocs-material
johnmccabe/mkdocs-material
jorgebg/mkdocs-material
jornada/mkdocs-material
joyhooei/mkdocs-material
jsding/mkdocs-material
jszroberto/mkdocs-material
jvictorsoto/mkdocs-material
k4kfh/mkdocs-material
kay54068/mkdocs-material
khalidsalomao/mkdocs-material
killeryoyo01/mkdocs-material
ktreese/mkdocs-material
kumardeni/mkdocs-material
kungstriving/mkdocs-material
lahdekorpi/mkdocs-material
lazarenkoalexey/mkdocs-material
lenciel/mkdocs-material
liliasfaxi/mkdocs-material
lionpeloux/mkdocs-material
lukasreussner/mkdocs-material
lukewhitt/mkdocs-material
madhuramendis/mkdocs-material
madre/mkdocs-material
madrus/mkdocs-material
makerdiary/mkdocs-material
markainick/mkdocs-material
mattbostock/mkdocs-material
maxiride/mkdocs-material
mbrantner/mkdocs-material
mdd41/mkdocs-material
michaeldove/mkdocs-material
miraai/mkdocs-material
miyajan/mkdocs-material
mjames-upc/mkdocs-unidata
monanllc/mkdocs-material
msudol/mkdocs-material
mtandre/mkdocs-material
mvertes/mkdocs-material
mwasyou/mkdocs-material
nickhsu/mkdocs-material
nmanumr/mkdocs-material
nwesterlaken/mkdocs-material
oaugustus/mkdocs-material
obestwalter/mkdocs-material
oddcb/mkdocs-material
omarnema/mkdocs-material
paco-portada/mkdocs-material
pascalberger/mkdocs-material
paulgibbs/mkdocs-material
phonaylin/mkdocs-material
pinpikokun/mkdocs-material
pmhayward/mkdocs-material
qdw-luke/mkdocs-material
qhenry/mkdocs-material
ragbadaskar/mkdocs-material
rbarge76/mkdocs-material
reifurther/mkdocs-material
reijoh/mkdocs-material
roidelapluie/mkdocs-material
saurabhbhatt/mkdocs-material
sbuckpesch/ssml.io
schollz/mkdocs-material
seancolsen/mkdocs-material
sebastian-marinescu/mkdocs-material
sgomez/mkdocs-material
siam28/mkdocs-material
sivasankar-r/mkdocs-material
spencer-scott/mkdocs-material
stefanwimmer128/mkdocs-material
szarych/mkdocs-material
tapkey/mkdocs-material
theSinner/mkdocs-material
thej/mkdocs-docoloo
thesocialdeck/mkdocs-material
tiennguyenhoan/mkdocs-material
tilgalas/mkdocs-material
tomrenn/mkdocs-material
trinadhv/mkdocs-material
tuedang/mkdocs-material
tumregels/mkdocs-material
tusbar/mkdocs-material
tushart91/mkdocs-material
tychota/mkdocs-material
vician/mkdocs-material
viewty/mkdocs-material
webgeaz/mkdocs-material
xorander00/mkdocs-material
yakworks/docmark
yannduran/mkdocs-material
yetone/mkdocs-material
zoubin/mkdocs-material
Nothing to show
compare: 5.4.0
  • 12 commits
  • 16 files changed
  • 0 comments
  • 4 contributors
Commits on Jun 25, 2020
Commits on Jun 26, 2020
Additional fix for #1773 to include highlighting integers.
* Further updates for #1773

* Update search.9b3611bd.min.js
Commits on Jun 28, 2020
Commits on Jun 29, 2020
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 9.8.0 to 9.8.4.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/master/CHANGELOG.md)
- [Commits](postcss/autoprefixer@9.8.0...9.8.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.13 to 14.0.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [sass](https://github.com/sass/dart-sass) from 1.26.8 to 1.26.9.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/master/CHANGELOG.md)
- [Commits](sass/dart-sass@1.26.8...1.26.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [@types/webpack](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/webpack) from 4.41.17 to 4.41.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/webpack)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Support for quotation marks in search
@@ -1,3 +1,8 @@
mkdocs-material-5.4.0 (2020-06-29)

* Added support to wrap searches in quotes to switch from OR to AND
* Fixed highlighting of numbers in search results

mkdocs-material-5.3.3 (2020-06-24)

* Added Bengali translations
@@ -228,14 +228,14 @@ Example:
``` markdown
* :material-account-circle: – we can use Material Design icons
* :fontawesome-regular-laugh-wink: – we can also use FontAwesome icons
* :octicons-octoface: – that's not all, we can also use GitHub's Octicons
* :octicons-octoface-16: – that's not all, we can also use GitHub's Octicons
```

Result:

* :material-account-circle: – we can use [Material Design icons][20]
* :fontawesome-regular-laugh-wink: – we can also use [FontAwesome icons][21]
* :octicons-octoface: – that's not all, we can also use [GitHub's Octicons][22]
* :octicons-octoface-16: – that's not all, we can also use [GitHub's Octicons][22]

[13]: https://facelessuser.github.io/pymdown-extensions/extensions/emoji/
[14]: https://twemoji.twitter.com/
@@ -18,6 +18,11 @@ pip show mkdocs-material

## Changelog

### 5.4.0 <small>_ June 29, 2020</small>

* Added support to wrap searches in quotes to switch from `OR` to `AND`
* Fixed highlighting of numbers in search results

### 5.3.3 <small>_ June 24, 2020</small>

* Added Bengali translations

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -1,10 +1,10 @@
{
"assets/javascripts/bundle.js": "assets/javascripts/bundle.38f5c9b5.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.38f5c9b5.min.js.map",
"assets/javascripts/bundle.js": "assets/javascripts/bundle.fc9c3121.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.fc9c3121.min.js.map",
"assets/javascripts/vendor.js": "assets/javascripts/vendor.de50e36d.min.js",
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.de50e36d.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.9b3611bd.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.9b3611bd.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.a68abb33.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.a68abb33.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.545621a7.min.css",
"assets/stylesheets/main.css.map": "assets/stylesheets/main.545621a7.min.css.map",
"assets/stylesheets/palette.css": "assets/stylesheets/palette.36d1b78f.min.css",
@@ -29,7 +29,7 @@
<meta name="author" content="{{ config.site_author }}">
{% endif %}
<link rel="shortcut icon" href="{{ config.theme.favicon | url }}">
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-5.3.3">
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-5.4.0">
{% endblock %}
{% block htmltitle %}
{% if page and page.meta and page.meta.title %}
@@ -183,7 +183,7 @@ <h1>{{ page.title | default(config.site_name, true)}}</h1>
</div>
{% block scripts %}
<script src="{{ 'assets/javascripts/vendor.de50e36d.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.38f5c9b5.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.fc9c3121.min.js' | url }}"></script>
{%- set translations = {} -%}
{%- for key in [
"clipboard.copy",
@@ -207,7 +207,7 @@ <h1>{{ page.title | default(config.site_name, true)}}</h1>
base: "{{ base_url }}",
features: {{ config.theme.features | tojson }},
search: Object.assign({
worker: "{{ 'assets/javascripts/worker/search.9b3611bd.min.js' | url }}"
worker: "{{ 'assets/javascripts/worker/search.a68abb33.min.js' | url }}"
}, typeof search !== "undefined" && search)
})
</script>

Some generated files are not rendered by default. Learn more.

@@ -1,6 +1,6 @@
{
"name": "mkdocs-material",
"version": "5.3.3",
"version": "5.4.0",
"description": "A Material Design theme for MkDocs",
"keywords": [
"mkdocs",
@@ -50,12 +50,12 @@
"@types/html-minifier": "^4.0.0",
"@types/lunr": "^2.3.3",
"@types/mini-css-extract-plugin": "^0.9.1",
"@types/node": "^14.0.13",
"@types/node": "^14.0.14",
"@types/ramda": "^0.27.6",
"@types/resize-observer-browser": "^0.1.3",
"@types/webpack": "^4.41.17",
"@types/webpack": "^4.41.18",
"@types/webpack-assets-manifest": "^3.0.1",
"autoprefixer": "9.8.0",
"autoprefixer": "9.8.4",
"copy-webpack-plugin": "^6.0.2",
"css-loader": "^3.6.0",
"event-hooks-webpack-plugin": "^2.1.6",
@@ -75,7 +75,7 @@
"preact": "^10.4.4",
"resize-observer-polyfill": "^1.5.1",
"rimraf": "^3.0.2",
"sass": "^1.26.8",
"sass": "^1.26.9",
"sass-loader": "^8.0.2",
"stylelint": "^13.6.1",
"stylelint-config-rational-order": "^0.1.2",
@@ -71,7 +71,7 @@ export function setupSearchHighlighter(
/* Return factory function */
return (value: string) => {
value = value
.replace(/[\s*+-:~^]+/g, " ")
.replace(/[\s*+\-:~^]+/g, " ")
.trim()

/* Create search term match expression */
@@ -40,16 +40,38 @@ export type SearchTransformFn = (value: string) => string
/**
* Default transformation function
*
* Rogue control characters are filtered before handing the query to the
* search index, as `lunr` will throw otherwise.
* 1. Search for terms in quotation marks and prepend a `+` modifier to denote
* that the resulting document must contain all terms, converting the query
* to an `AND` query (as opposed to the default `OR` behavior). While users
* may expect terms enclosed in quotation marks to map to span queries, i.e.
* for which order is important, `lunr` doesn't support them, so the best
* we can do is to convert the terms to an `AND` query.
*
* 2. Replace control characters which are not located at the beginning of the
* query or preceded by white space, or are not followed by a non-whitespace
* character or are at the end of the query string. Furthermore, filter
* unmatched quotation marks.
*
* 3. Trim excess whitespace from left and right.
*
* 4. Append a wildcard to the end of every word to make every word a prefix
* query in order to provide a good type-ahead experience, by adding an
* asterisk (wildcard) in between terms, which can be denoted by whitespace,
* any non-control character, or a word boundary.
*
* @param value - Query value
*
* @return Transformed query value
*/
export function defaultTransform(value: string): string {
return value
.replace(/(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g, "")
.trim()
.replace(/\s+|(?![^\x00-\x7F]|^)$|\b$/g, "* ")
.split(/"([^"]+)"/g) /* => 1 */
.map((terms, i) => i & 1
? terms.replace(/^\b|^(?![^\x00-\x7F]|$)|\s+/g, " +")
: terms
)
.join("")
.replace(/"|(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g, "") /* => 2 */
.trim() /* => 3 */
.replace(/\s+|(?![^\x00-\x7F]|^)$|\b$/g, "* ") /* => 4 */
}

No commit comments for this range