Support theme
diff --git a/sphinx/_salt.sls b/sphinx/_salt.sls
index f61cc8b..ae677fb 100644
--- a/sphinx/_salt.sls
+++ b/sphinx/_salt.sls
@@ -20,9 +20,12 @@
/srv/static/extern/salt/source/conf.py:
file.managed:
- source: salt://sphinx/files/salt/source/conf.py
+ - template: jinja
- mode: 644
- require:
- file: salt_mine_doc_dirs
+ - defaults:
+ doc: {{ doc|yaml }}
/srv/static/extern/salt/source/index.rst:
file.managed:
diff --git a/sphinx/files/salt/source/conf.py b/sphinx/files/salt/source/conf.py
index 1dd3088..4bd91d6 100644
--- a/sphinx/files/salt/source/conf.py
+++ b/sphinx/files/salt/source/conf.py
@@ -15,6 +15,41 @@
import sys
import os
+{%- if doc.theme is defined %}
+try:
+ from {{ doc.theme }}.theme_conf import *
+except:
+ pass
+
+settings_path = os.path.dirname(os.path.realpath(__file__))
+
+source_suffix = '.rst'
+
+master_doc = 'index'
+
+project = u'reclass-doc'
+
+pygments_style = 'sphinx'
+
+htmlhelp_basename = 'reclass-docdoc'
+
+latex_documents = [
+ ('index', 'reclass-doc.tex', u'reclass-doc Documentation',
+ u'reclass', 'howto'),
+]
+
+man_pages = [
+ ('index', 'reclass-doc', u'reclass-doc Documentation',
+ [u'reclass'], 1)
+]
+
+texinfo_documents = [
+ ('index', 'reclass-doc', u'reclass-doc Documentation',
+ u'reclass', 'reclass-doc', 'One line description of project.',
+ 'Miscellaneous'),
+]
+{%- else %}
+
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -255,4 +290,5 @@
#texinfo_show_urls = 'footnote'
# If true, do not generate a @detailmenu in the "Top" node's menu.
-#texinfo_no_detailmenu = False
\ No newline at end of file
+#texinfo_no_detailmenu = False
+{%- endif %}