layout.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {% extends "!layout.html" -%}
  2. {# Refer to https://github.com/readthedocs/sphinx_rtd_theme/blob/master/sphinx_rtd_theme/layout.html #}
  3. {% block htmltitle -%}
  4. <title>{{ godot_title_prefix }}{{ title|striptags|e }}{{ titlesuffix }}</title>
  5. {% endblock -%}
  6. {% block extrahead -%}
  7. <meta name="doc_version" content="{{ version }}" />
  8. <meta name="doc_is_latest" content="{{ godot_is_latest }}" />
  9. <meta name="doc_pagename" content="{{ pagename }}" />
  10. {% endblock -%}
  11. {% block linktags -%}
  12. <meta name="theme-color" content="#3d8fcc" />
  13. {{ super() }}
  14. {% endblock -%}
  15. {%- block document %}
  16. <div itemprop="articleBody">
  17. {% if godot_is_latest or godot_show_article_status %}
  18. <div class="admonition-grid">
  19. {% if godot_is_latest %}
  20. <div class="admonition attention latest-notice">
  21. <p class="first admonition-title">Attention: Here be dragons</p>
  22. <p>
  23. This is the <code class="docutils literal notranslate"><span class="pre">latest</span></code>
  24. (unstable) version of this documentation, which may document features
  25. not available in or compatible with released stable versions of Godot.
  26. </p>
  27. <p class="last latest-notice-link">
  28. Checking the stable version of the documentation...
  29. </p>
  30. </div>
  31. {% endif %}
  32. {% if godot_show_article_status and not godot_is_latest %}
  33. <div class="admonition tip article-status">
  34. {% if meta and meta.get('article_outdated') == 'True' %}
  35. <p class="first admonition-title">Work in progress</p>
  36. <p>
  37. The content of this page was not yet updated for Godot
  38. <code class="docutils literal notranslate">{{ godot_version }}</code>
  39. and may be <strong>outdated</strong>. If you know how to improve this page or you can confirm
  40. that it's up to date, feel free to <a href="https://github.com/godotengine/godot-docs">open a pull request</a>.
  41. </p>
  42. {% else %}
  43. <p class="first admonition-title">Up to date</p>
  44. <p>
  45. This page is <strong>up to date</strong> for Godot <code class="docutils literal notranslate">{{ godot_version }}</code>.
  46. If you still find outdated information, please <a href="https://github.com/godotengine/godot-docs">open an issue</a>.
  47. </p>
  48. {% endif %}
  49. </div>
  50. {% endif %}
  51. </div>
  52. {% endif %}
  53. {% block body %}{% endblock %}
  54. {% if (not meta or meta.get('allow_comments') != 'False') and godot_show_article_comments %}
  55. <div id="godot-giscus">
  56. <hr>
  57. <h2>User-contributed notes</h2>
  58. <p>
  59. <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>
  60. </p>
  61. </div>
  62. {% endif %}
  63. {%- if self.comments()|trim %}
  64. <div class="articleComments">
  65. {%- block comments %}{% endblock %}
  66. </div>
  67. {%- endif%}
  68. </div>
  69. {%- endblock %}