aboutsummaryrefslogtreecommitdiffstats
path: root/docs/conf.py
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-03-03 03:15:40 +0100
committerNao Pross <np@0hm.ch>2024-03-03 03:15:40 +0100
commit584c527bfb647ec16609bf79864292399cef54e3 (patch)
treee399a86812445dd115bc7e25d8f6330636c9f48a /docs/conf.py
parentImprove docstrings (diff)
downloadmdpoly-584c527bfb647ec16609bf79864292399cef54e3.tar.gz
mdpoly-584c527bfb647ec16609bf79864292399cef54e3.zip
Setup Sphinx documentation generator
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
new file mode 100644
index 0000000..1cc81ba
--- /dev/null
+++ b/docs/conf.py
@@ -0,0 +1,31 @@
+# Configuration file for the Sphinx documentation builder.
+#
+# For the full list of built-in configuration values, see the documentation:
+# https://www.sphinx-doc.org/en/master/usage/configuration.html
+
+# -- Project information -----------------------------------------------------
+# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
+
+import os
+import sys
+sys.path.insert(0, os.path.abspath('..'))
+
+project = 'mdpoly'
+copyright = '2024, Naoki Sean Pross <np@0hm.ch>'
+author = 'Naoki Sean Pross <npross@ethz.ch>'
+release = '0.1.0'
+
+# -- General configuration ---------------------------------------------------
+# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
+
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary']
+autosummary_generate = True
+
+templates_path = ['_templates']
+exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
+
+# -- Options for HTML output -------------------------------------------------
+# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
+
+html_theme = 'alabaster'
+html_static_path = ['_static']