fixed broken screenshots in "Hide the sidebars"

This commit is contained in:
daaf 2021-03-13 15:16:50 -05:00
parent 55c150f99b
commit da94a168fc

View File

@ -31,8 +31,8 @@ theme:
```
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
Single Page Application__, which is especially useful for large documentation
are rebound automatically. This means that **Material for MkDocs behaves like a
Single Page Application**, which is especially useful for large documentation
sites that come with a massive search index, as the search index will now
remain intact in-between document switches.
@ -393,20 +393,19 @@ hide:
- toc # Hide table of contents
---
...
```
=== "Hide navigation"
[![Hide navigation][27]][27]
[![Hide navigation][29]][29]
=== "Hide table of contents"
[![Hide table of contents][28]][28]
[![Hide table of contents][30]][30]
=== "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
[28]: ../../reference/meta-tags/#metadata
@ -451,9 +450,9 @@ your custom event listener:
keyboard$.subscribe(function (key) {
if (key.mode === "global" && key.type === "x") {
/* Add custom keyboard handler here */
key.claim()
key.claim();
}
})
});
```
The call to `#!js key.claim()` will essentially execute `#!js preventDefault()`