SpongeDocs icon indicating copy to clipboard operation
SpongeDocs copied to clipboard

Add language tabs on code blocks

Open Inscrutable opened this issue 6 years ago • 2 comments

@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

Inscrutable avatar Mar 03 '19 01:03 Inscrutable

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

phit avatar Mar 03 '19 01:03 phit

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

Grauldon avatar Mar 04 '19 00:03 Grauldon