You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Add a warning header to each rst file
To tell potential contributors that they should direct their work to the XML template and not the auto-generated reST
This commit is contained in:
@@ -349,6 +349,10 @@ def make_rst_class(node):
|
||||
|
||||
f = open("class_"+name.lower() + '.rst', 'wb')
|
||||
|
||||
# Warn contributors not to edit this file directly
|
||||
f.write(".. Generated automatically by doc/tools/makerst.py in Godot's source tree.\n")
|
||||
f.write(".. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.\n\n")
|
||||
|
||||
f.write(".. _class_"+name+":\n\n")
|
||||
f.write(make_heading(name, '='))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user