diff options
Diffstat (limited to 'docs/_templates/layout.html')
-rw-r--r-- | docs/_templates/layout.html | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html new file mode 100644 index 0000000..843122f --- /dev/null +++ b/docs/_templates/layout.html @@ -0,0 +1,55 @@ +{%- extends "!layout.html" %} + +{#- + +This template exists as a way to implement a version menu without changing what +the theme normally renders the menu on local builds and on builds on Read the +Docs. This is for local testing purposes only. + +#} + +{%- block footer %} + {%- if not READTHEDOCS %} + <div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="{{ _('Versions') }}"> + <span class="rst-current-version" data-toggle="rst-current-version"> + <span class="fa fa-book"> Read the Docs</span> + v: latest + <span class="fa fa-caret-down"></span> + </span> + <div class="rst-other-versions"> + <dl> + <dt>{{ _('Versions') }}</dt> + {%- if test_versions %} + {%- for version in test_versions %} + <dd><a href="#">{{ version }}</a></dd> + {%- endfor %} + {%- else %} + <dd><a href="#">latest</a></dd> + <dd><a href="#">1.0</a></dd> + <dd><a href="#">1.1</a></dd> + {%- endif %} + </dl> + <dl> + <dt>{{ _('Downloads') }}</dt> + <dd><a href="#">PDF</a></dd> + <dd><a href="#">ePub</a></dd> + <dd><a href="#">HTML</a></dd> + </dl> + <dl> + {#- Translators: The phrase "Read the Docs" is not translated #} + <dt>{{ _('On Read the Docs') }}</dt> + <dd> + <a href="#">{{ _('Project Home') }}</a> + </dd> + <dd> + <a href="#">{{ _('Builds') }}</a> + </dd> + </dl> + <dl> + <dt>Debug</dt> + <dd><a href="#" data-toggle="rst-debug-badge">Swap badge position</a></dd> + </dl> + </div> + </div> + {%- endif %} +{%- endblock %} |