hugovk,
@hugovk@mastodon.social avatar

I wrote a thing!

How to activate tabs for your OS in Sphinx

https://dev.to/hugovk/sphinx-docs-how-to-activate-tabs-for-your-os-pd3

On pages like https://devguide.python.org and https://pillow.readthedocs.io/en/latest/installation/basic-installation.html we have tabs with specific instructions per operating system.

You can add a bit of JavaScript to automatically activate the relevant tab based on the reader's operating system, so they see the relevant info sooner.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • GTA5RPClips
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • osvaldo12
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • everett
  • Durango
  • cisconetworking
  • khanakhh
  • ethstaker
  • tester
  • anitta
  • Leos
  • normalnudes
  • modclub
  • megavids
  • provamag3
  • lostlight
  • All magazines