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:
Rémi Verschelde 2016-02-17 22:02:55 +01:00
parent 9e4532d689
commit e5389288dd
1 changed files with 4 additions and 0 deletions

View File

@ -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, '='))