From 4aec3ec9682745addc65c079023252a984c0abe7 Mon Sep 17 00:00:00 2001 From: Jon Recker Date: Thu, 14 Dec 2023 11:34:00 -0800 Subject: [PATCH] Enable spec templates --- doc/spec/element_conf.py | 2 +- doc/spec/source/_templates/layout.html | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 doc/spec/source/_templates/layout.html diff --git a/doc/spec/element_conf.py b/doc/spec/element_conf.py index 21516a9d..746ecc2d 100644 --- a/doc/spec/element_conf.py +++ b/doc/spec/element_conf.py @@ -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: diff --git a/doc/spec/source/_templates/layout.html b/doc/spec/source/_templates/layout.html new file mode 100644 index 00000000..ad65ed75 --- /dev/null +++ b/doc/spec/source/_templates/layout.html @@ -0,0 +1,25 @@ + + +{% 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 %} +
+ {{ nav_version }} +
+ {% endif %} + {% endif %} + + {% include "searchbox.html" %} + + {% endblock %}