Skip to content

Provide a way to globally hide features like navigation #8268

Closed
@MattTheCuber

Description

@MattTheCuber

Context

No response

Description

Right now, we can set

---
hide:
  - navigation
  - ...
---

on each page. But it would be great to be able to specify default hidden attributes globally.

You can do this with custom css, but it would be great to do it with just he config.

mkdocs.yaml

extra_css:
  - docs/docs.css

docs/docs.css

@media only screen and (min-width: 76.25em) {
  .md-sidebar {
    display: none;
  }
}

Related links

Use Cases

Specifically, I am looking to hide my navigation globally and and can't make anything work. I don't want to use those header blocks because they render weird in GitHub.

Visuals

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions