diff --git a/_config.yml b/_config.yml index 2223f72..119f821 100644 --- a/_config.yml +++ b/_config.yml @@ -98,7 +98,9 @@ sphinx: badges: . committers: . bibliography: . + prem_theme: . config: + html_theme: prem_theme myst_heading_anchors: 4 html_js_files: - [https://analytics.prem.ninja/js/script.js, {defer: defer, data-domain: book.premai.io}] diff --git a/prem_theme/__init__.py b/prem_theme/__init__.py new file mode 100644 index 0000000..b0312e7 --- /dev/null +++ b/prem_theme/__init__.py @@ -0,0 +1,4 @@ +from os import path + +def setup(app): + app.add_html_theme('prem_theme', path.abspath(path.dirname(__file__))) diff --git a/prem_theme/layout.html b/prem_theme/layout.html new file mode 100644 index 0000000..4ed819c --- /dev/null +++ b/prem_theme/layout.html @@ -0,0 +1,21 @@ +{% extends "sphinx_book_theme/layout.html" %} +{% block extrahead %} + + + + + + + + +{%- if last_updated %} + +{%- endif %} + + + + + + +{{ super() }} +{% endblock extrahead %} diff --git a/prem_theme/theme.conf b/prem_theme/theme.conf new file mode 100644 index 0000000..098da17 --- /dev/null +++ b/prem_theme/theme.conf @@ -0,0 +1,2 @@ +[theme] +inherit = sphinx_book_theme