SpongePowered / SpongeDocs

Documentation for Sponge and its Implementations
Creative Commons Attribution Share Alike 4.0 International
110 stars 116 forks source link

Add language tabs on code blocks #791

Open Inscrutable opened 5 years ago

Inscrutable commented 5 years ago

@gabizou has requested language tabs for different code blocks. In the future, Sponge's workspaces for development will be moving to Kotlin-DSL. SpongeDocs will need to be able to provide code examples how to use it between gradle, maven, and kotlin-dsl. Tabs are a way to manage this neatly.

The following third-party Sphinx add-on does the job: https://github.com/djungelorm/sphinx-tabs

phit commented 5 years ago

I can think of quite a few other places where tabs could be useful to cut down page length e.g. OS specific stuff

Grauldon commented 5 years ago

Sweet! IDEs are another area this can help. How far in the future?