-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
47054df
commit 5ba9e3b
Showing
10 changed files
with
481 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
{% if show_built_with %} | ||
{%- set sphinx_web = '<a href="https://www.sphinx-doc.org/">Sphinx</a>' %} | ||
{%- set ansible_community_web = '<a href="https://docs.ansible.com/ansible/4/community/">Ansible Community</a>' %} | ||
{#- Translators: the variable "sphinx_web" is a link to the Sphinx project documentation with the text "Sphinx" #} | ||
{%- trans sphinx_web=sphinx_web %}Built with {{ sphinx_web }} using a{% endtrans %} | ||
{#- Translators: "theme" refers to a theme for Sphinx, which alters the appearance of the generated documenation #} | ||
<a href="https://sphinx-ansible-theme.rtfd.io">{% trans %}Sphinx Ansible Theme{% endtrans %}</a> | ||
{% trans %}that is based on the{% endtrans %} | ||
<a href="https://github.com/readthedocs/sphinx_rtd_theme">{% trans %}Read the Docs theme{% endtrans %}</a> | ||
{#- Translators: this is always used as "provided by Read the Docs", and should not imply Read the Docs is an author of the generated documentation. #} | ||
{% trans ansible_community_web=ansible_community_web %}and is maintained by the {{ ansible_community_web }}{% endtrans %}. | ||
{% endif %} | ||
{% if show_built_with %} {%- set sphinx_web = '<a | ||
href="https://www.sphinx-doc.org/" | ||
>Sphinx</a | ||
>' %} {%- set ansible_community_web = '<a | ||
href="https://docs.ansible.com/ansible/4/community/" | ||
>Ansible Community</a | ||
>' %} {#- Translators: the variable "sphinx_web" is a link to the Sphinx project | ||
documentation with the text "Sphinx" #} {%- trans sphinx_web=sphinx_web %}Built | ||
with {{ sphinx_web }} using a{% endtrans %} {#- Translators: "theme" refers to a | ||
theme for Sphinx, which alters the appearance of the generated documenation #} | ||
<a href="https://sphinx-ansible-theme.rtfd.io" | ||
>{% trans %}Sphinx Ansible Theme{% endtrans %}</a | ||
> | ||
{% trans %}that is based on the{% endtrans %} | ||
<a href="https://github.com/readthedocs/sphinx_rtd_theme" | ||
>{% trans %}Read the Docs theme{% endtrans %}</a | ||
> | ||
{#- Translators: this is always used as "provided by Read the Docs", and should | ||
not imply Read the Docs is an author of the generated documentation. #} {% trans | ||
ansible_community_web=ansible_community_web %}and is maintained by the {{ | ||
ansible_community_web }}{% endtrans %}. {% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,43 @@ | ||
<!-- extra head elements for Ansible beyond RTD Sphinx Theme --> | ||
{%- if theme_satellite_tracking | tobool %} | ||
<script src="https://www.redhat.com/dtm.js"></script> | ||
{%- endif %} | ||
|
||
{% if theme_swift_id %} | ||
{%- endif %} {% if theme_swift_id %} | ||
<!-- <meta class="swiftype" name="published_at" data-type="date" content="2017-12-13" /> --> | ||
<meta class="swiftype" name="version" data-type="string" content="{{ version }}"> | ||
{% endif %} | ||
|
||
{%- if theme_tag_manager_id %} | ||
<meta | ||
class="swiftype" | ||
name="version" | ||
data-type="string" | ||
content="{{ version }}" | ||
/> | ||
{% endif %} {%- if theme_tag_manager_id %} | ||
<!-- Google Tag Manager Data Layer --> | ||
<script> | ||
dataLayer = []; | ||
dataLayer = []; | ||
</script> | ||
<!-- End Google Tag Manager Data Layer --> | ||
{%- endif %} | ||
|
||
{% if theme_swift_id %} | ||
{# Ansible search with Swift - do not remove #} | ||
{%- endif %} {% if theme_swift_id %} {# Ansible search with Swift - do not | ||
remove #} | ||
<script> | ||
(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){ | ||
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t); | ||
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e); | ||
})(window,document,'script','https://s.swiftypecdn.com/install/v2/st.js','_st'); | ||
(function (w, d, t, u, n, s, e) { | ||
w["SwiftypeObject"] = n; | ||
w[n] = | ||
w[n] || | ||
function () { | ||
(w[n].q = w[n].q || []).push(arguments); | ||
}; | ||
s = d.createElement(t); | ||
e = d.getElementsByTagName(t)[0]; | ||
s.async = 1; | ||
s.src = u; | ||
e.parentNode.insertBefore(s, e); | ||
})( | ||
window, | ||
document, | ||
"script", | ||
"https://s.swiftypecdn.com/install/v2/st.js", | ||
"_st" | ||
); | ||
|
||
_st('install','{{ theme_swift_id }}','2.0.0'); | ||
_st("install", "{{ theme_swift_id }}", "2.0.0"); | ||
</script> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,5 @@ | ||
{#- | ||
Reset `show_sphinx` to prevent the RTD theme from rendering it's | ||
footer and introduce a new var to instead show our own: | ||
#} | ||
{% set show_built_with = show_sphinx %} | ||
{% set show_sphinx = False %} | ||
|
||
{%- extends "sphinx_rtd_theme/footer.html" %} | ||
|
||
{%- block extrafooter %} | ||
{{ super() }} | ||
|
||
{%- include "built_with.html" %} | ||
{%- endblock %} | ||
{#- Reset `show_sphinx` to prevent the RTD theme from rendering it's footer and | ||
introduce a new var to instead show our own: #} {% set show_built_with = | ||
show_sphinx %} {% set show_sphinx = False %} {%- extends | ||
"sphinx_rtd_theme/footer.html" %} {%- block extrafooter %} {{ super() }} {%- | ||
include "built_with.html" %} {%- endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,17 @@ | ||
{#- | ||
Declare logo and favicon fallbacks and | ||
also set their Sphinx 4 `_url` counterparts: | ||
#} | ||
{%- | ||
set ansible_logo_url = logo_url | ||
or ('_static/' + (logo or 'images/Ansible-Mark-RGB_White.png')) | ||
%} | ||
{%- set logo_url = '' %}{# Reset to prevent render in the RTD theme #} | ||
{%- set logo = logo_url %} | ||
{%- | ||
set favicon_url = favicon_url | ||
or ('_static/' + (favicon or 'images/Ansible-Mark-RGB_Black.png')) | ||
%} | ||
{%- set favicon = favicon_url | replace('_static/', '', 1) %} | ||
{%- set favicon_url = pathto(favicon_url, 1) if '//' not in favicon_url and not favicon_url.startswith('/') else favicon_url %} | ||
|
||
{%- extends "sphinx_rtd_theme/layout.html" %} | ||
|
||
{%- block extrahead %} | ||
{%- include "extrahead.html" ignore missing %} | ||
{%- endblock %} | ||
|
||
{%- block extrabody %} | ||
{%- include "extrabody.html" ignore missing %} | ||
{%- endblock %} | ||
|
||
{%- block document %} | ||
{%- include "banner.html" ignore missing %} | ||
|
||
{{ super() }} | ||
{%- endblock %} | ||
|
||
{%- block footer %} | ||
{%- include "extrafooter.html" ignore missing %} | ||
{%- endblock %} | ||
|
||
{%- block menu %} | ||
{{ super() }} | ||
|
||
{%- if theme_show_extranav | tobool %} | ||
{%- block extranav %}{% include "extranav.html" %}{% endblock %} | ||
{%- endif %} | ||
{%- block rtd_ethical_ads %} | ||
{%- include "rtd-ethical-ads.html" %} | ||
{%- endblock %} | ||
{%- endblock %} | ||
{#- Declare logo and favicon fallbacks and also set their Sphinx 4 `_url` | ||
counterparts: #} {%- set ansible_logo_url = logo_url or ('_static/' + (logo or | ||
'images/Ansible-Mark-RGB_White.png')) %} {%- set logo_url = '' %}{# Reset to | ||
prevent render in the RTD theme #} {%- set logo = logo_url %} {%- set | ||
favicon_url = favicon_url or ('_static/' + (favicon or | ||
'images/Ansible-Mark-RGB_Black.png')) %} {%- set favicon = favicon_url | | ||
replace('_static/', '', 1) %} {%- set favicon_url = pathto(favicon_url, 1) if | ||
'//' not in favicon_url and not favicon_url.startswith('/') else favicon_url %} | ||
{%- extends "sphinx_rtd_theme/layout.html" %} {%- block extrahead %} {%- include | ||
"extrahead.html" ignore missing %} {%- endblock %} {%- block extrabody %} {%- | ||
include "extrabody.html" ignore missing %} {%- endblock %} {%- block document %} | ||
{%- include "banner.html" ignore missing %} {{ super() }} {%- endblock %} {%- | ||
block footer %} {%- include "extrafooter.html" ignore missing %} {%- endblock %} | ||
{%- block menu %} {{ super() }} {%- if theme_show_extranav | tobool %} {%- block | ||
extranav %}{% include "extranav.html" %}{% endblock %} {%- endif %} {%- block | ||
rtd_ethical_ads %} {%- include "rtd-ethical-ads.html" %} {%- endblock %} {%- | ||
endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.