mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
fixed broken screenshots in "Hide the sidebars"
This commit is contained in:
@@ -31,8 +31,8 @@ theme:
|
|||||||
```
|
```
|
||||||
|
|
||||||
The resulting page is parsed and injected and all event handlers and components
|
The resulting page is parsed and injected and all event handlers and components
|
||||||
are rebound automatically. This means that __Material for MkDocs behaves like a
|
are rebound automatically. This means that **Material for MkDocs behaves like a
|
||||||
Single Page Application__, which is especially useful for large documentation
|
Single Page Application**, which is especially useful for large documentation
|
||||||
sites that come with a massive search index, as the search index will now
|
sites that come with a massive search index, as the search index will now
|
||||||
remain intact in-between document switches.
|
remain intact in-between document switches.
|
||||||
|
|
||||||
@@ -393,20 +393,19 @@ hide:
|
|||||||
- toc # Hide table of contents
|
- toc # Hide table of contents
|
||||||
---
|
---
|
||||||
|
|
||||||
...
|
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "Hide navigation"
|
=== "Hide navigation"
|
||||||
|
|
||||||
[![Hide navigation][27]][27]
|
[![Hide navigation][29]][29]
|
||||||
|
|
||||||
=== "Hide table of contents"
|
=== "Hide table of contents"
|
||||||
|
|
||||||
[![Hide table of contents][28]][28]
|
[![Hide table of contents][30]][30]
|
||||||
|
|
||||||
=== "Hide both"
|
=== "Hide both"
|
||||||
|
|
||||||
[![Hide navigation and table of contents][29]][29]
|
[![Hide navigation and table of contents][31]][31]
|
||||||
|
|
||||||
[27]: https://github.com/squidfunk/mkdocs-material/blob/master/src/base.html
|
[27]: https://github.com/squidfunk/mkdocs-material/blob/master/src/base.html
|
||||||
[28]: ../../reference/meta-tags/#metadata
|
[28]: ../../reference/meta-tags/#metadata
|
||||||
@@ -451,9 +450,9 @@ your custom event listener:
|
|||||||
keyboard$.subscribe(function (key) {
|
keyboard$.subscribe(function (key) {
|
||||||
if (key.mode === "global" && key.type === "x") {
|
if (key.mode === "global" && key.type === "x") {
|
||||||
/* Add custom keyboard handler here */
|
/* Add custom keyboard handler here */
|
||||||
key.claim()
|
key.claim();
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
The call to `#!js key.claim()` will essentially execute `#!js preventDefault()`
|
The call to `#!js key.claim()` will essentially execute `#!js preventDefault()`
|
||||||
|
|||||||
Reference in New Issue
Block a user