On the Python Developer’s Guide and Pillow documentation we have some pages with tabs for different operating systems: It’s possible to add some JavaScript so that the matching tab is activated based on the visitor’s operating system. Here’s how! Sphinx Inline Tabs # First add the Sphinx Inline Tabs extension to your docs' requirements.txt: # requirements.txt sphinx-inline-tabs>=2023.4.21 JavaScript # Next, add activate_tab.js to your _static/ directory: // activate_tab.js // Based on...