Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/.sphinx/_integration/add_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
html_baseurl = "https://documentation.ubuntu.com/microceph/v19.2.0-squid/"
# Override default header styles
html_static_path = globals().get('html_static_path', []) + ["_static"]
html_css_files = globals().get('html_css_files', []) + ['override-header.css']
html_css_files = globals().get('html_css_files', []) + ['override-header.css', 'https://assets.ubuntu.com/v1/d86746ef-cookie_banner.css']
html_js_files = globals().get('html_js_files', []) + ['https://assets.ubuntu.com/v1/287a5e8f-bundle.js']
# Add "integrated" to the list of custom tags
tags.add('integrated')
elif project == "MicroOVN":
Expand Down
2 changes: 2 additions & 0 deletions doc/.sphinx/_integration/lxd.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<header id="header" class="p-navigation">

{% include "google-tag.html" %}

<div class="p-navigation__nav" role="menubar">

<ul class="p-navigation__links" role="menu">
Expand Down
2 changes: 2 additions & 0 deletions doc/.sphinx/_integration/microceph.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<header id="header" class="p-navigation">

{% include "google-tag.html" %}

<div class="p-navigation__nav" role="menubar">

<ul class="p-navigation__links" role="menu">
Expand Down
100 changes: 100 additions & 0 deletions doc/.sphinx/_integration/microceph_footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{# ru-fu: copied from Furo, with modifications as stated below. Modifications are marked 'mod:'. #}
Comment thread
roosterfish marked this conversation as resolved.

<div class="related-pages">
{# mod: Per-page navigation #}
{% if meta %}
{% if 'sequential_nav' in meta %}
{% set sequential_nav = meta.sequential_nav %}
{% endif %}
{% endif %}
{# mod: Conditional wrappers to control page navigation buttons #}
{% if sequential_nav != "none" -%}
{% if next and (sequential_nav == "next" or sequential_nav == "both") -%}
<a class="next-page" href="{{ next.link }}">
<div class="page-info">
<div class="context">
<span>{{ _("Next") }}</span>
</div>
<div class="title">{{ next.title }}</div>
</div>
<svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg>
</a>
{%- endif %}
{% if prev and (sequential_nav == "prev" or sequential_nav == "both") -%}
<a class="prev-page" href="{{ prev.link }}">
<svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg>
<div class="page-info">
<div class="context">
<span>{{ _("Previous") }}</span>
</div>
{% if prev.link == pathto(master_doc) %}
<div class="title">{{ _("Home") }}</div>
{% else %}
<div class="title">{{ prev.title }}</div>
{% endif %}
</div>
</a>
{%- endif %}
{%- endif %}
</div>
<div class="bottom-of-page">
<div class="left-details">
{%- if show_copyright %}
<div class="copyright">
{%- if hasdoc('copyright') %}
{% trans path=pathto('copyright'), copyright=copyright|e -%}
<a href="{{ path }}">Copyright</a> &#169; {{ copyright }}
{%- endtrans %}
{%- else %}
{% trans copyright=copyright|e -%}
Copyright &#169; {{ copyright }}
{%- endtrans %}
{%- endif %}
</div>
{%- endif %}

{# mod: removed "Made with" #}

{%- if last_updated -%}
<div class="last-updated">
{% trans last_updated=last_updated|e -%}
Last updated on {{ last_updated }}
{%- endtrans -%}
</div>
{%- endif %}

{%- if show_source and has_source and sourcename %}
<div class="show-source">
<a class="muted-link" href="{{ pathto('_sources/' + sourcename, true)|e }}"
rel="nofollow">Show source</a>
</div>
{%- endif %}
</div>
<div class="right-details">

{# mod: replaced RTD icons with our links #}

{% if discourse %}
<div class="ask-discourse">
<a class="muted-link" href="{{ discourse }}">Ask a question on Discourse</a>
</div>
{% endif %}

{% if github_url and github_version and github_folder %}

{% if github_issues %}
<div class="issue-github">
<a class="muted-link" href="{{ github_url }}/issues/new?title=doc%3A+ADD+A+TITLE&body=DESCRIBE+THE+ISSUE%0A%0A---%0ADocument: {{ pagename }}{{ page_source_suffix }}">Open a GitHub issue for this page</a>
</div>
{% endif %}

<div class="edit-github">
<a class="muted-link" href="{{ github_url }}/edit/{{ github_version }}{{ github_folder }}{{ pagename }}{{ page_source_suffix }}">Edit this page on GitHub</a>
</div>
{% endif %}

<a href="" class="js-revoke-cookie-manager muted-link">Manage your tracker settings</a>

</div>
</div>
</div>
2 changes: 2 additions & 0 deletions doc/.sphinx/_integration/microovn.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<header id="header" class="p-navigation">

{% include "google-tag.html" %}

<div class="p-navigation__nav" role="menubar">

<ul class="p-navigation__links" role="menu">
Expand Down
10 changes: 9 additions & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,22 @@ integrate:
mkdir -p integration/microcloud/_templates/ integration/microcloud/_static
mkdir -p integration/microceph/docs/_static

# Copy the header HTML and CSS files for the doc sets
# Copy the header HTML, CSS files, and Google Tag Manager for the doc sets
cp .sphinx/_integration/microcloud.html integration/microcloud/_templates/header.html
cp _templates/google-tag.html integration/microcloud/_templates/
cp .sphinx/_integration/override-header.css integration/microcloud/_static/

cp .sphinx/_integration/lxd.html integration/lxd/doc/_templates/header.html
cp _templates/google-tag.html integration/lxd/doc/_templates/
cp .sphinx/_integration/override-header.css integration/lxd/doc/_static/

cp .sphinx/_integration/microceph.html integration/microceph/docs/.sphinx/_templates/header.html
cp _templates/google-tag.html integration/microceph/docs/.sphinx/_templates/
cp .sphinx/_integration/override-header.css integration/microceph/docs/.sphinx/_static/
cp .sphinx/_integration/microceph_footer.html integration/microceph/docs/.sphinx/_templates/footer.html

cp .sphinx/_integration/microovn.html integration/microovn/docs/.sphinx/_templates/header.html
cp _templates/google-tag.html integration/microovn/docs/.sphinx/_templates/
cp .sphinx/_integration/header.css integration/microovn/docs/.sphinx/_static/

# Add information about where to find the tags/docs to the doc sets
Expand Down
Loading