Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ansible sphinx theme to rtd theme version 0.4.3 #61189

Merged
merged 25 commits into from Aug 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
9fe65e6
update theme.conf
samccann Jul 8, 2019
92dd751
clean up layout.html
samccann Jul 8, 2019
1a1f92b
more fixes
samccann Jul 8, 2019
9175628
remove extranav from sphinx layout
samccann Jul 11, 2019
b324591
update footer.hmtl
samccann Jul 11, 2019
5aab539
add note to ansible-specific section
samccann Jul 11, 2019
27d03b0
update js folder
samccann Jul 15, 2019
401dcf0
update fonts
samccann Jul 18, 2019
aaac374
update badge_only css to 0.4.3
samccann Jul 22, 2019
e754ebe
move large ansible changes out of theme.css
samccann Aug 1, 2019
5cc3c68
maxify theme to help merge`
samccann Aug 1, 2019
93799f7
partial merge of 0.4.3 theme.css
samccann Aug 20, 2019
095b567
further merge - still working
samccann Aug 20, 2019
1a7ec93
fix extra scroll - working
samccann Aug 21, 2019
d6da6cd
theme.css merge to 0.4.3
samccann Aug 21, 2019
d3740ec
combined custom css into one file
samccann Aug 22, 2019
4e95f17
fix shippable error
samccann Aug 22, 2019
b02dd59
remove redundancies, fix top nav bar
samccann Aug 23, 2019
339fd6d
fixed Ansible logo scrolling into rst content on small screen
samccann Aug 26, 2019
3ebfca1
Revert "fixed Ansible logo scrolling into rst content on small screen"
samccann Aug 26, 2019
f0cd21f
add ansible color scheme
samccann Aug 26, 2019
a5ede54
fixed scrolling logo problem on small screen
samccann Aug 27, 2019
ea83328
fix text scrolling into top nav bar
samccann Aug 27, 2019
07f3c88
fix disappearing Ansible logo etc
samccann Aug 27, 2019
d1dc8e7
add Ansible color to left-nav menu
samccann Aug 28, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
403 changes: 402 additions & 1 deletion docs/docsite/_static/ansible.css

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions docs/docsite/_themes/sphinx_rtd_theme/ansible_extrabody.html
@@ -0,0 +1,25 @@
<!---- extra body elements for Ansible beyond RTD Sphinx Theme --->
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-PSB293" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-PSB293');</script>
<!-- End Google Tag Manager -->

<div class="DocSite-globalNav ansibleNav">
<ul>
<li><a href="https://www.ansible.com/ansiblefest" target="_blank">AnsibleFest</a></li>
<li><a href="https://www.ansible.com/tower" target="_blank">Products</a></li>
<li><a href="https://www.ansible.com/community" target="_blank">Community</a></li>
<li><a href="https://www.ansible.com/webinars-training" target="_blank">Webinars & Training</a></li>
<li><a href="https://www.ansible.com/blog" target="_blank">Blog</a></li>
</ul>
</div>

<a class="DocSite-nav" href="/" style="padding-bottom: 30px;">

<img class="DocSiteNav-logo"
src="{{ pathto('_static/', 1) }}images/logo_invert.png"
alt="Ansible Logo">
<div class="DocSiteNav-title">
Documentation
</div>
</a>
18 changes: 18 additions & 0 deletions docs/docsite/_themes/sphinx_rtd_theme/ansible_extrafooter.html
@@ -0,0 +1,18 @@
<!-- extra footer elements for Ansible beyond RTD Sphinx Theme --->
<!-- begin analytics -->
<script type="text/javascript">
var _hsq = _hsq || [];
_hsq.push(["setContentType", "standard-page"]);
(function(d,s,i,r) {
if (d.getElementById(i)){return;}
var n = d.createElement(s),e = document.getElementsByTagName(s)[0];
n.id=i;n.src = '//js.hs-analytics.net/analytics/'+(Math.ceil(new Date()/r)*r)+'/330046.js';
e.parentNode.insertBefore(n, e);
})(document, "script", "hs-analytics",300000);
</script>
<!-- end analytics -->
<script type="text/javascript">
if (("undefined" !== typeof _satellite) && ("function" === typeof _satellite.pageBottom)) {
_satellite.pageBottom();
}
</script>
12 changes: 12 additions & 0 deletions docs/docsite/_themes/sphinx_rtd_theme/ansible_extrahead.html
@@ -0,0 +1,12 @@
<!---- extra head elements for Ansible beyond RTD Sphinx Theme --->
<script type="text/javascript" src="//www.redhat.com/dtm.js"></script>
<meta class="swiftype" name="published_at" data-type="date" content="2017-12-13" />
<meta class="swiftype" name="version" data-type="string" content="3.2.2">

<!-- Google Tag Manager Data Layer -->
<script>
dataLayer = [];
</script>
<!-- End Google Tag Manager Data Layer -->

<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
9 changes: 9 additions & 0 deletions docs/docsite/_themes/sphinx_rtd_theme/ansible_extranav.html
@@ -0,0 +1,9 @@
<!-- extra nav elements for Ansible beyond RTD Sphinx Theme --->
<!-- changeable widget links to tower - do not change as image controlled by Ansible-->
<div id="sideBanner">
<br/>
<a href="https://www.ansible.com/docs-left?utm_source=docs">
<img style="border-width:0px;" src="https://cdn2.hubspot.net/hubfs/330046/docs-graphics/ASB-docs-left-rail.png" />
</a>
<br/><br/><br/>
</div>
2 changes: 1 addition & 1 deletion docs/docsite/_themes/sphinx_rtd_theme/breadcrumbs.html
Expand Up @@ -43,8 +43,8 @@
<!-- User defined GitHub URL -->
<a href="{{ meta['github_url'] }}" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
{% else %}
<!-- Ansible-specific additions for modules etc -->
{% if pagename.endswith('_module') %}

<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/{{ theme_vcs_pageview_mode|default("blob") }}/{{ github_module_version }}{{ meta.get('source', '') }}?description=%23%23%23%23%23%20SUMMARY%0A%3C!---%20Your%20description%20here%20--%3E%0A%0A%0A%23%23%23%23%23%20ISSUE%20TYPE%0A-%20Docs%20Pull%20Request%0A%0A%2Blabel:%20docsite_pr" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
{% elif (not 'list_of' in pagename) and (not 'category' in pagename) %}
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/{{ theme_vcs_pageview_mode|default("blob") }}/{{ github_version }}{{ conf_py_path }}{{ pagename }}{{ suffix }}?description=%23%23%23%23%23%20SUMMARY%0A%3C!---%20Your%20description%20here%20--%3E%0A%0A%0A%23%23%23%23%23%20ISSUE%20TYPE%0A-%20Docs%20Pull%20Request%0A%0A%2Blabel:%20docsite_pr" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
Expand Down
42 changes: 38 additions & 4 deletions docs/docsite/_themes/sphinx_rtd_theme/footer.html
Expand Up @@ -12,6 +12,7 @@

<hr/>

{# Ansible search with Swift - do not remove #}
<script type="text/javascript">
(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);
Expand All @@ -21,8 +22,41 @@
_st('install','yABGvz2N8PwcwBxyfzUc','2.0.0');
</script>

<p>
{%- if last_updated %}{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}<br/>{% endif %}
Copyright © 2019 Red Hat, Inc. <br/>
</p>
<div role="contentinfo">
<p>
{%- if show_copyright %}
{%- if hasdoc('copyright') %}
{% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}{% endtrans %}
{%- else %}
{% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}{% endtrans %}
{%- endif %}
{%- endif %}

{%- if build_id and build_url %}
{% trans build_url=build_url, build_id=build_id %}
<span class="build">
Build
<a href="{{ build_url }}">{{ build_id }}</a>.
</span>
{% endtrans %}
{%- elif commit %}
{% trans commit=commit %}
<span class="commit">
Revision <code>{{ commit }}</code>.
</span>
{% endtrans %}
{%- elif last_updated %}
<span class="lastupdated">
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
</span>
{%- endif %}

</p>
</div>

{%- if show_sphinx %}
{% trans %}Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>{% endtrans %}.
{%- endif %}

{%- block extrafooter %} {% endblock %}
</footer>