summaryrefslogtreecommitdiff
path: root/source/conf.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2023-06-14 09:32:28 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2023-06-14 12:52:13 +0200
commitdebfb9118dece693025c0fc50ad8cbde84ab565b (patch)
tree7da80ca4fe00c5bf2ae164b31b6fb953999cee7f /source/conf.py
Project structure
Diffstat (limited to 'source/conf.py')
-rw-r--r--source/conf.py59
1 files changed, 59 insertions, 0 deletions
diff --git a/source/conf.py b/source/conf.py
new file mode 100644
index 0000000..96ccd7d
--- /dev/null
+++ b/source/conf.py
@@ -0,0 +1,59 @@
+# 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
+
+project = "Valhalla's craft patterns"
+copyright = '2023, Elena “of Valhalla”'
+author = 'Elena “of Valhalla”'
+
+# -- General configuration ---------------------------------------------------
+# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
+
+extensions = [
+ 'sphinxcontrib.inkscapeconverter',
+ 'sphinxcontrib.bibtex',
+]
+
+templates_path = ['_templates']
+exclude_patterns = []
+
+
+
+# -- 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']
+
+# -- Options for latex output -------------------------------------------------
+
+latex_engine = 'xelatex'
+latex_show_urls = 'footnote'
+latex_toplevel_sectioning = 'part'
+
+latex_elements = {
+ 'papersize': 'a5paper',
+ 'fontpkg': r'''
+ \setmainfont{Gentium}
+ \setsansfont{Gentium}
+ \setmonofont{FreeMono}[Scale=0.8]
+ ''',
+ 'sphinxsetup': r'''
+ TitleColor={named}{black},
+ InnerLinkColor={named}{gray},
+ OuterLinkColor={named}{gray},
+ hmargin={2cm,2cm},
+ vmargin={2.5cm,2.5cm},
+ ''',
+ 'fncychap': r'\usepackage[Rejne]{fncychap}',
+ }
+
+# Options for extensions
+
+bibtex_bibfiles = [
+ "bibliography/misc.bib",
+]