I am writing a Python developer documentation where I need lengthy installation instructions for each operating system. Ideally I would make this so that instructions only specific to your own operating system is shown when you read the page. This is what professional services like MSDN often do - you choose a programming language and see API examples for this language only.
Has anyone encountered or used anything like this for Sphinx? My friend svx was working a Sphinx plugin which was something along the lines, but was for much more narrow Linux specific use case.
Example work in progres chapter: https://websauna.org/tutorials/gettingstarted/tutorial_02.html