Search code examples
pythonmarkdowndocumentationmkdocs

How can I toggle between Windows and Mac commands on MKDocs?


I am using material mkdocs for my external documentation for my users. I am wondering how can I achieve this effect of toggling between different operating system commands within the documentation?

screenshot of Django docs command

I got this screenshot from: Django Docs tutorial


Solution

  • You can use content tabs to switch between different tabs

    https://squidfunk.github.io/mkdocs-material/reference/content-tabs/#usage