Skip to content

Commit 9737687

Browse files
authored
Style guide - code blocks (#156)
1 parent 0eda5eb commit 9737687

File tree

6 files changed

+479
-92
lines changed

6 files changed

+479
-92
lines changed

source/includes/python-sample.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
print("Hello Docs team!")
2+
print("This is Python code...")
3+
print("...in another file.")
4+
print("This line will be included in the docs...")
5+
print("...but this line won't.")
6+
7+
def sample_function():
8+
# start-function-sample
9+
print("This sample has comments to mark the extract start and end.")
10+
# end-function-sample
11+
print("This line won't be included in the sample.")

source/reference.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Reference
1212
/redirects
1313
/reference/apiargs
1414
/reference/cond
15-
/reference/copyable
15+
/reference/code-blocks
1616
/reference/eval
1717
/reference/icon
1818
/reference/lightbox

0 commit comments

Comments
 (0)