Initial commit
diff --git a/README.md b/README.md
new file mode 100755
index 0000000..5cea37b
--- /dev/null
+++ b/README.md
@@ -0,0 +1,20 @@
+
+# Sphinx
+
+Sphinx is a tool that makes it easy to create intelligent and beautiful documentation, written by Georg Brandl and licensed under the BSD license.
+
+It was originally created for the new Python documentation, and it has excellent facilities for the documentation of Python projects, but C/C++ is already supported as well, and it is planned to add special support for other languages as well.
+
+## Sample pillar
+
+    sphinx:
+      server:
+        enabled: true
+        docs:
+        - name: 'board'
+          builder: 'html'
+          source: '/path/to/sphinx/documentation'
+
+## Read more
+
+# http://sphinx-doc.org/tutorial.html
\ No newline at end of file
diff --git a/init.sls b/init.sls
new file mode 100755
index 0000000..1620cee
--- /dev/null
+++ b/init.sls
@@ -0,0 +1,5 @@
+
+include:
+{% if pillar.sphinx.server is defined %}
+- sphinx.server
+{% endif %}
diff --git a/server.sls b/server.sls
new file mode 100755
index 0000000..1323b57
--- /dev/null
+++ b/server.sls
@@ -0,0 +1,32 @@
+{%- if pillar.sphinx.server.enabled %}
+
+sphinx_packages:
+  pkg.installed:
+  - names:
+    - python-sphinx
+
+/srv/sphinx/sites:
+  file:
+  - directory
+  - mode: 755
+  - makedirs: true
+
+{%- for doc in pillar.sphinx.server.docs %}
+
+/srv/sphinx/sites/{{ doc.name }}:
+  file:
+  - directory
+  - mode: 755
+  - makedirs: true
+  - require:
+    - file: /srv/sphinx/sites
+
+generate_sphinx_doc_{{ doc.name }}:
+  cmd.run:
+  - name: sphinx-build -b {{ doc.builder }} {{ doc.source }} /srv/sphinx/sites/{{ doc.name }}
+  - require:
+    - file: /srv/sphinx/sites/{{ doc.name }}
+
+{%- endfor %}
+
+{%- endif %}
\ No newline at end of file