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

Added tabs for multiple programming languages #453

Merged
merged 1 commit into from
Sep 1, 2017

Conversation

djrm
Copy link
Contributor

@djrm djrm commented Sep 1, 2017

allows this
screenshot from 2017-08-31 23-57-27

@akien-mga
Copy link
Member

Awesome! For the reference, that's using this extension: https://github.com/djungelorm/sphinx-tabs

@akien-mga akien-mga merged commit 95d4a6f into godotengine:master Sep 1, 2017
@akien-mga
Copy link
Member

BTW, it looks like we might be able to rely on pip to install the extension, and thus not need to bundle it ourselves: http://docs.readthedocs.io/en/latest/faq.html?highlight=requirements.txt#my-project-isn-t-building-with-autodoc
But for that time being, what works works :)

@reduz
Copy link
Member

reduz commented Sep 1, 2017

This is great, did you check that we can use an image for visual script?

@akien-mga
Copy link
Member

This is great, did you check that we can use an image for visual script?

Yes, check the example here (scroll down): http://docs.godotengine.org/en/latest/learning/step_by_step/scripting.html#handling-a-signal

@neikeq
Copy link
Contributor

neikeq commented Sep 1, 2017

Would be nice if we could have something like this for the class reference as well. Not idea what would be the best way to identify [code] blocks for translating them though.

@akien-mga
Copy link
Member

We can easily parse the XML and output the correct reST markup to use that extension, but indeed we need to decide on how we want to implement code examples in the classref. The current [codeblock] is a hack and not very scalable.

@djrm djrm deleted the pr_code_tabs branch September 1, 2017 15:44
@djrm
Copy link
Contributor Author

djrm commented Sep 1, 2017

@akien-mga i could not make it wotk with pip, maybe because im declaring ./extensions as extensions folder, in order to have the gdscript parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants