Browse Source

Add a link to doc writing guidelines to the header (#5947)

(cherry picked from commit 21f92e43d6e16f64d5fddd9945aa80555fda9d29)
Yuri Sizov 3 years ago
parent
commit
16a3e6b695
1 changed files with 17 additions and 0 deletions
  1. 17 0
      _templates/breadcrumbs.html

+ 17 - 0
_templates/breadcrumbs.html

@@ -3,5 +3,22 @@
 {% block breadcrumbs_aside %}
 {% block breadcrumbs_aside %}
 {% if not meta or meta.get('github_url') != 'hide' %}
 {% if not meta or meta.get('github_url') != 'hide' %}
 {{ super() }}
 {{ super() }}
+
+<style>
+	.godot-edit-guidelines {
+		font-size: 14px;
+		float: right;
+		clear: both;
+	}
+
+	@media screen and (max-width: 480px) {
+		.godot-edit-guidelines {
+			display: none;
+		}
+	}
+</style>
+<a class="godot-edit-guidelines" href="https://docs.godotengine.org/en/latest/community/contributing/index.html#writing-documentation">
+	Learn how to contribute!
+</a>
 {% endif %}
 {% endif %}
 {% endblock %}
 {% endblock %}