Skip to content

Commit 78194d6

Browse files
committed
add note to readme in generated code
1 parent f4ae694 commit 78194d6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ the package.
7070

7171
## Reference
7272

73+
<!--- The below is autogenerated - do not edit --->
74+
7375
### The VolumeSlicer class
7476

7577
**class `VolumeSlicer(app, volume, *, spacing=None, origin=None, axis=0, reverse_y=True, clim=None, scene_id=None, color=None, thumbnail=True)`**

update_docs_in_readme.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def write_reference_docs():
1414
"""Write the reference docs to the README."""
1515
# Prepare
1616
header = "## Reference"
17+
note = "<!--- The below is autogenerated - do not edit --->"
1718
filename = os.path.join(HERE, "README.md")
1819
assert os.path.isfile(filename), "README.md not found"
1920
# Load first part of the readme
@@ -22,7 +23,7 @@ def write_reference_docs():
2223
text1, _, _ = text.partition(header)
2324
text1 = text1.strip()
2425
# Create second part of the readme
25-
text2 = "\n\n\n" + header + "\n\n" + get_reference_docs()
26+
text2 = "\n\n\n" + header + "\n\n" + note + "\n\n" + get_reference_docs()
2627
if "\r" in text1:
2728
text2 = text2.replace("\n", "\r\n")
2829
# Wite

0 commit comments

Comments
 (0)