Merge pull request #7520 from Calinou/add-page-comments

Add support for user-provided comments with Giscus
This commit is contained in:
Max Hilbrunner
2024-01-13 22:32:30 +01:00
committed by GitHub
65 changed files with 149 additions and 2 deletions

View File

@@ -66,6 +66,35 @@
{% endif %}
{% block body %}{% endblock %}
{% if (not meta or meta.get('allow_comments') != 'False') and godot_show_article_comments %}
<hr>
<h2>User-contributed notes</h2>
<p>
<em>Please read the <a href="https://github.com/godotengine/godot-docs-user-notes/discussions/1">User-contributed notes policy</a> before submitting a comment.</em>
</p>
{# Use https://giscus.app/ to regenerate the script tag if needed. #}
{# data-term is set to be language-independent and version-independent, so that comments can be centralized for each page. #}
{# This increases the likelihood that users will encounter comments on less frequently visited pages. #}
<script src="https://giscus.app/client.js"
data-repo="godotengine/godot-docs-user-notes"
data-repo-id="R_kgDOKuNx0w"
data-category="User-contributed notes"
data-category-id="DIC_kwDOKuNx084CbANb"
data-mapping="specific"
data-term="{{ pagename }}"
data-strict="1"
data-reactions-enabled="0"
data-emit-metadata="0"
data-input-position="bottom"
data-theme="preferred_color_scheme"
data-lang="en"
data-loading="lazy"
crossorigin="anonymous"
async></script>
<br>
{% endif %}
{%- if self.comments()|trim %}
<div class="articleComments">
{%- block comments %}{% endblock %}

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_complying_with_licenses:
Complying with licenses

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_docs_changelog:
Documentation changelog

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. meta::
:keywords: FAQ

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_about_intro:
Introduction

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_list_of_features:
List of features

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_release_policy:
Godot release policy

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Asset Library
=============

View File

@@ -196,6 +196,8 @@ html_context = {
"godot_version": "4.3",
# Enables a banner that displays the up-to-date status of each article.
"godot_show_article_status": True,
# Display user-contributed notes at the bottom of pages that don't have `:allow_comments: False` at the top.
"godot_show_article_comments": on_rtd and not is_i18n,
}
html_logo = "img/docs_logo.svg"

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Building from source
====================

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_configuring_an_ide:
Configuring an IDE

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Engine core and modules
=======================

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Debugging and profiling
=======================

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Vulkan
======

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Editor development
==================

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Godot file formats
==================

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_contributing_to_the_engine:
Engine development

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_contributing_writing_documentation:
Writing documentation

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_contributing_workflow:
Contribution workflow

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_your_first_2d_game:
Your first 2D game

View File

@@ -1,3 +1,4 @@
:allow_comments: False
:article_outdated: True
.. _doc_your_first_3d_game:

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. Intention: provide the necessary information to make the most of the getting
started series, answering questions like "do I want to learn Godot?", "how
does it look and feel?", "how does it work?", and "how do I best learn it?".

View File

@@ -1,4 +1,4 @@
:article_outdated: False
:allow_comments: False
Step by step
============

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Godot Docs *master* branch
============================

View File

@@ -1,3 +1,5 @@
:allow_comments: False
2D
==

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_global_illumination:
Global illumination

View File

@@ -1,3 +1,5 @@
:allow_comments: False
3D
==

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_3d_particles:
Particle systems (3D)

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_procedural_geometry:
Procedural geometry

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Animation
=========

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Blender ESCN exporter
=====================

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_importing_3d_scenes:
Importing 3D scenes

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Assets pipeline
===============

View File

@@ -1,3 +1,5 @@
:allow_comments: False
:article_outdated: True
Audio

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Best practices
==============

View File

@@ -1,3 +1,4 @@
:allow_comments: False
:article_outdated: True
Editor introduction

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Export
======

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Internationalization
====================

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Input handling
==============

View File

@@ -1,3 +1,5 @@
:allow_comments: False
File and data I/O
=================

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Math
====

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Migrating to a new version
==========================

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Navigation
==========

View File

@@ -1,3 +1,4 @@
:allow_comments: False
:article_outdated: True
Networking

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_performance:
Performance

View File

@@ -1,3 +1,4 @@
:allow_comments: False
:article_outdated: True
Animating thousands of objects

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Physics
=======

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Android
=======

View File

@@ -1,3 +1,4 @@
:allow_comments: False
:article_outdated: True
Platform-specific

View File

@@ -1,3 +1,4 @@
:allow_comments: False
:article_outdated: True
iOS plugins

View File

@@ -1,3 +1,4 @@
:allow_comments: False
:article_outdated: True
.. _doc_platform_html5:

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Editor plugins
==============

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Plugins
=======

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Rendering
=========

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_c_sharp_diagnostics:
C# diagnostics

View File

@@ -1,3 +1,5 @@
:allow_comments: False
C#/.NET
=======
@@ -8,7 +10,6 @@ The standard Godot executable does not contain C# support out of the box. Instea
to enable C# support for your project you need to `download a .NET version <https://godotengine.org/download/>`_
of the editor from the Godot website.
.. toctree::
:maxdepth: 1
:name: toc-learn-scripting-C#

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Debug
=====

View File

@@ -1,3 +1,5 @@
:allow_comments: False
GDExtension
===========

View File

@@ -1,3 +1,5 @@
:allow_comments: False
GDScript
========

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Scripting
=========

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Shaders
=======

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Shading reference
=================

View File

@@ -1,3 +1,5 @@
:allow_comments: False
Your first shader
=================

View File

@@ -1,3 +1,5 @@
:allow_comments: False
.. _doc_user_interface:
User interface (UI)

View File

@@ -1,3 +1,5 @@
:allow_comments: False
XR
==