mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-03 03:10:07 -04:00
Added back scroll locking
This commit is contained in:
@@ -90,8 +90,8 @@ as [documented here][2]._
|
||||
:octicons-beaker-24: Experimental
|
||||
|
||||
If your documentation is available in multiple languages, a _language selector_
|
||||
can be added to the header next to the search bar. Languages can be defined via
|
||||
`mkdocs.yml`:
|
||||
can be added to the header next to the search bar. Alternate languages can be
|
||||
defined via `mkdocs.yml`:
|
||||
|
||||
``` yaml
|
||||
extra:
|
||||
|
||||
@@ -408,7 +408,7 @@ JavaScript][33], you can subscribe to the `keyboard$` observable and attach
|
||||
your custom event listener:
|
||||
|
||||
``` js
|
||||
app.keyboard$.subscribe(function(key) {
|
||||
keyboard$.subscribe(function(key) {
|
||||
if (key.mode === "global" && key.type === "x") {
|
||||
/* Add custom keyboard handler here */
|
||||
key.claim()
|
||||
|
||||
@@ -68,7 +68,7 @@ which will emit the current `URL` to listen for navigation events and register
|
||||
a page view event with:
|
||||
|
||||
``` js
|
||||
app.location$.subscribe(function(url) {
|
||||
location$.subscribe(function(url) {
|
||||
/* Add custom page event tracking here */
|
||||
})
|
||||
```
|
||||
|
||||
@@ -316,8 +316,9 @@ customize the `transform` function, you can do this by [overriding the
|
||||
|
||||
``` html
|
||||
{% block config %}
|
||||
{{ super() }}
|
||||
<script>
|
||||
var search = {
|
||||
var __search = {
|
||||
transform: function(query) {
|
||||
return query
|
||||
}
|
||||
@@ -345,8 +346,9 @@ directory and [override the `config` block][21]:
|
||||
|
||||
``` html
|
||||
{% block config %}
|
||||
{{ super() }}
|
||||
<script>
|
||||
var search = {
|
||||
var __search = {
|
||||
worker: "<url>"
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user