Skip to content

Commit 902874e

Browse files
authored
Added 'Python' as a possible code block type (#195)
1 parent 9d01507 commit 902874e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/sphinx_codeautolink/extension/block.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
BUILTIN_BLOCKS = {
2222
"default": None,
2323
"python": None,
24+
"Python": None,
2425
"python3": None,
2526
"py": None,
2627
"py3": None,
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
test_project
2+
test_project.bar
3+
# split
4+
# split
5+
Test project
6+
============
7+
8+
.. code-block:: Python
9+
10+
import test_project
11+
test_project.bar()
12+
13+
.. automodule:: test_project

0 commit comments

Comments
 (0)