You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: theme/.hooks/theme/views_mkdocs/layout.html
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
<divclass="admonition info">
2
+
<pclass="admonition-title">The content of this page has been <ahref="https://github.com/purrbot-site/Docs/blob/master/docs/assets/imageapi.json" target="_blank" rel="nofollow">auto-generated from an OpenAPI file</a>.</p>
Copy file name to clipboardExpand all lines: theme/main.html
+4-16Lines changed: 4 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -44,23 +44,11 @@
44
44
45
45
{% block announce %}
46
46
{% if page.meta and i18n_page_locale != "en" and i18n_file_locale != i18n_page_locale %}
47
-
{% set announcement_classes = "announcement-translation" %}
48
-
{% if page.meta.not_translatable %}
49
-
{% set announcement_classes = announcement_classes ~ " announcement-translation__not-translatable" %}
50
-
{% endif %}
47
+
{% set type = "not_translatable" if page.meta.not_translatable else "translate" %}
48
+
{% set text = config.extra.translate.not_translatable if page.meta.not_translatable else config.translate.missing_translation | d('Error: Missing text') %}
51
49
52
-
<divclass="{{ announcement_classes }}">
53
-
{% if page.meta.not_translatable %}
54
-
<spanclass="twemoji">
55
-
{% include ".icons/material/translate-off.svg" %}
56
-
</span>
57
-
{{ config.extra.translate.not_translatable | d('This page cannot be translated and is therefore only available in English.') }}
58
-
{% else %}
59
-
<spanclass="twemoji">
60
-
{% include ".icons/material/translate.svg" %}
61
-
</span>
62
-
{{ config.extra.translate.missing_translation | d('This page has not yet been translated.') }}
63
-
{% endif%}
50
+
<divclass="admonition {{ type }}">
51
+
<pclass="admonition-title" style="text-align: center;">{{ text }}</p>
0 commit comments