mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Merge pull request #85006 from Calinou/makerst-index-disallow-page-comments
makerst: Disallow user-contributed notes on the class index page
This commit is contained in:
commit
80de898d72
@ -1536,8 +1536,9 @@ def make_rst_index(grouped_classes: Dict[str, List[str]], dry_run: bool, output_
|
|||||||
else:
|
else:
|
||||||
f = open(os.path.join(output_dir, "index.rst"), "w", encoding="utf-8")
|
f = open(os.path.join(output_dir, "index.rst"), "w", encoding="utf-8")
|
||||||
|
|
||||||
# Remove the "Edit on Github" button from the online docs page.
|
# Remove the "Edit on Github" button from the online docs page, and disallow user-contributed notes
|
||||||
f.write(":github_url: hide\n\n")
|
# on the index page. User-contributed notes are allowed on individual class pages.
|
||||||
|
f.write(":github_url: hide\n:allow_comments: False\n\n")
|
||||||
|
|
||||||
# Warn contributors not to edit this file directly.
|
# Warn contributors not to edit this file directly.
|
||||||
# Also provide links to the source files for reference.
|
# Also provide links to the source files for reference.
|
||||||
|
Loading…
Reference in New Issue
Block a user