Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add language tabs on code blocks #791

Open
Inscrutable opened this issue Mar 3, 2019 · 2 comments
Open

Add language tabs on code blocks #791

Inscrutable opened this issue Mar 3, 2019 · 2 comments
Labels
input wanted We would like to hear your opinion meta Issues/Discussions about the docs backend

Comments

@Inscrutable
Copy link
Member

@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 Inscrutable added meta Issues/Discussions about the docs backend input wanted We would like to hear your opinion labels Mar 3, 2019
@phit
Copy link
Contributor

phit commented Mar 3, 2019

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
Copy link
Contributor

Grauldon commented Mar 4, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
input wanted We would like to hear your opinion meta Issues/Discussions about the docs backend
Projects
None yet
Development

No branches or pull requests

3 participants