Reputation: 2314
I am trying to remove these buttons labeled "Previous" and "Next" in mkdocs:
I have read the docs and searched the web but haven't found anything other than some GitHub issues like:
How to remove the buttons in a not so hacky way?
Upvotes: 4
Views: 1538
Reputation: 784
One way to accomplish this with the default theme on MkDocs 1.6.0
is to override the related css.
├── docs
└── stylesheets
└── extra.css
extra.css
:.nav-link[rel="next"] {display: none;}
.nav-link[rel="prev"] {display: none;}
mkdocs.yml
:theme: mkdocs
extra_css:
- stylesheets/extra.css
Upvotes: 2
Reputation: 979
I would do this using CSS to hide it by adding into the included css. In the material theme it will be:
md-footer__inner { display: none }
This should be within the css which is included as extra_css
in the mkdocs.yml
.
Upvotes: 5