{# This is the main template of Simrofy theme. It doesn't explicitly import other templates, but it does borrow many ideas from following themes: * basic * sphinx-doc * python-docs-theme * sphinx-rtd-theme And Simrofy direcly borrowed these marcos from Sphinx basic/layout.html to ensure its extendability for most extensions. A small number of extensions (e.g. MathJax) have been confirmed to work under Simrofy properly, yet others may or may not. * css() * script() #} {% set simrofy_url = "https://github.com/wklchris/sphinx-simrofy-theme" %} {% set simrofy_version = '0.1.0' %} {% set simrofy_toc = toctree(maxdepth=theme_toc_depth|int, includehidden=true) %} {% set url_mainsite = pathto(master_doc) %} {# --- MACROS --- #} {%- macro simrofy_sidebar() %} {%- if theme_sidebar_position in ['right', 'left'] %}
{%- endif %} {% endmacro %} {%- macro css() %} {%- for css in css_files %} {%- if css|attr("filename") %} {{ css_tag(css) }} {%- else %} {%- endif %} {%- endfor %} {%- endmacro %} {%- macro script() %} {%- for js in script_files %} {{ js_tag(js) }} {%- endfor %} {%- endmacro %} {# --- HEAD --- #} {% block head %} {%- block css %}{{ css() }}{%- endblock css %} {%- block scripts %}{{- script() }}{%- endblock scripts %} {%- block extrahead %}{# user customize #}{% endblock extrahead %} {% endblock head %} {# --- BODY --- #} {# SIDEBAR #} {%- block sidebar %}{{ simrofy_sidebar() }}{%- endblock sidebar %} {%- block content %}