Quick tutorial on how to hide the header in mkdocs-material when scrolling down and let it reemerge when scrolling up. Because vertical space is scarce.
- Download https://npmcdn.com/headroom.js/dist/headroom.min.js and put it into docs/javascripts/
- Download activate_headroom.js and put it in the same folder
- put into mkdocs.yaml
extra_javascript: - 'javascripts/headroom.js' - 'javascripts/activate_headroom.js'
- download extra.css and put it into docs/stylesheets/. Or add it the content if you already have this file.
- put into mkdocs.yaml
extra_css: - 'stylesheets/extra.css'
Optional: adjust values in activate_headroom.js.
Caveat: Header does not unhide when pressing s or f to search.