layout.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 and meta and meta.get('article_outdated') == 'True' %}
  33. <div class="admonition attention article-status">
  34. <p class="first admonition-title">Work in progress</p>
  35. <p>
  36. The content of this page was not yet updated for Godot
  37. <code class="docutils literal notranslate">{{ godot_version }}</code>
  38. and may be <strong>outdated</strong>. If you know how to improve this page or you can confirm
  39. that it's up to date, feel free to <a href="https://github.com/godotengine/godot-docs">open a pull request</a>.
  40. </p>
  41. </div>
  42. {% endif %}
  43. </div>
  44. {% endif %}
  45. {% block body %}{% endblock %}
  46. {% if (not meta or meta.get('allow_comments') != 'False') and godot_show_article_comments %}
  47. <div id="godot-giscus">
  48. <hr>
  49. <h2>User-contributed notes</h2>
  50. <p>
  51. <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>
  52. </p>
  53. </div>
  54. {% endif %}
  55. {%- if self.comments()|trim %}
  56. <div class="articleComments">
  57. {%- block comments %}{% endblock %}
  58. </div>
  59. {%- endif%}
  60. </div>
  61. {%- endblock %}