layoutmkdocs

How to remove the buttons for previous and next in mkdocs?


I am trying to remove these buttons labeled "Previous" and "Next" in mkdocs:

buttons to remove

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?


Solution

  • 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.