Skip to content

Commit

Permalink
Enable spec templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrecker authored and mav-intel committed Dec 19, 2023
1 parent 3744894 commit 4aec3ec
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/spec/element_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# needs_sphinx = '1.0'

# Add any paths that contain templates here, relative to this directory.
templates_path = ['../../../_templates']
templates_path = ['_templates']

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
Expand Down
25 changes: 25 additions & 0 deletions doc/spec/source/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!--
SPDX-FileCopyrightText: 2019-2023 Intel Corporation
SPDX-License-Identifier: MIT
-->

{% extends "!layout.html" %}

{% block sidebartitle %}

{% if theme_display_version %}
{%- set nav_version = version %}
{% if READTHEDOCS and current_version %}
{%- set nav_version = current_version %}
{% endif %}
{% if nav_version %}
<div class="version">
{{ nav_version }}
</div>
{% endif %}
{% endif %}

{% include "searchbox.html" %}

{% endblock %}

0 comments on commit 4aec3ec

Please sign in to comment.