From d0927980387b9d7d1e2f83310c76853e20bbf53b Mon Sep 17 00:00:00 2001 From: StraToN Date: Thu, 25 Jul 2019 15:57:43 +0200 Subject: [PATCH] Adds a meta on top of every generated class to hide 'Edit on Github' link Linked docs issue https://github.com/godotengine/godot-docs/pull/2656 (cherry picked from commit d83b8881ae15e156590dfe47b00e2e6059286e69) --- doc/tools/makerst.py | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py index 8a1352b4408..56ae5b4c8ba 100644 --- a/doc/tools/makerst.py +++ b/doc/tools/makerst.py @@ -394,6 +394,7 @@ def make_rst_class(node): f = codecs.open("class_" + name.lower() + '.rst', 'wb', 'utf-8') # Warn contributors not to edit this file directly + f.write(":github_url: hide\n\n") f.write(".. Generated automatically by doc/tools/makerst.py in Godot's source tree.\n") f.write(".. DO NOT EDIT THIS FILE, but the " + name + ".xml source instead.\n") f.write(".. The source is found in doc/classes or modules//doc_classes.\n\n")