Skip to content

Commit 95d4a6f

Browse files
authored
Merge pull request godotengine#453 from djrm/pr_code_tabs
Added tabs for multiple programming languages
2 parents a616707 + 54a5c50 commit 95d4a6f

File tree

13 files changed

+443
-2
lines changed

13 files changed

+443
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
_build/
22
env/
33
extensions/__pycache__/
4+
__pycache__
5+
*.pyc
46
*~
57
.directory

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# Sphinx extension module names and templates location
1313
sys.path.append(os.path.abspath('extensions'))
14-
extensions = ['gdscript']
14+
extensions = ['gdscript', 'sphinx_tabs.tabs']
1515
templates_path = ['_templates']
1616

1717
# You can specify multiple suffix as a list of string: ['.rst', '.md']

extensions/gdscript.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,6 @@ def innerstring_rules(ttype):
164164
(r'\n', String.Single)
165165
],
166166
}
167+
168+
def setup(sphinx):
169+
sphinx.add_lexer('gdscript', GDScriptLexer())

extensions/sphinx_tabs/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__import__('pkg_resources').declare_namespace(__name__)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# The MIT License
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

extensions/sphinx_tabs/semantic-ui-2.2.10/menu.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/sphinx_tabs/semantic-ui-2.2.10/segment.min.css

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/sphinx_tabs/semantic-ui-2.2.10/tab.min.css

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)