summaryrefslogtreecommitdiffstats
path: root/doc/conf.py.in
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-21 18:14:10 +0100
committerDavid Robillard <d@drobilla.net>2020-12-21 18:14:10 +0100
commitd361ce65d3841c9f97d27ac477c2e55c3802b381 (patch)
treec710d7deab629c6179ccf663f0421750b801a667 /doc/conf.py.in
parentb3067e5a5dd1d92551d166a5095821e9033c0b7c (diff)
downloadsratom-d361ce65d3841c9f97d27ac477c2e55c3802b381.tar.gz
sratom-d361ce65d3841c9f97d27ac477c2e55c3802b381.tar.bz2
sratom-d361ce65d3841c9f97d27ac477c2e55c3802b381.zip
Generate documentation with Sphinx
Diffstat (limited to 'doc/conf.py.in')
-rw-r--r--doc/conf.py.in80
1 files changed, 80 insertions, 0 deletions
diff --git a/doc/conf.py.in b/doc/conf.py.in
new file mode 100644
index 0000000..2b1c485
--- /dev/null
+++ b/doc/conf.py.in
@@ -0,0 +1,80 @@
+# Project information
+
+project = "Sratom"
+copyright = "2020, David Robillard"
+author = "David Robillard"
+release = "@SRATOM_VERSION@"
+
+# General configuration
+
+language = "en"
+
+extensions = [
+ # 'sphinx_rtd_theme',
+]
+
+# Enable nitpicky mode to get warnings about broken links
+# Unfortunately this means we need to explicitly ignore everything external
+nitpicky = True
+_opaque = [
+ "LV2_Atom",
+ "LV2_Atom_Forge",
+ "LV2_Atom_Forge_Ref",
+ "LV2_Atom_Forge_Sink_Handle",
+ "LV2_URID_Map",
+ "LV2_URID_Unmap",
+ "SerdEndSink",
+ "SerdEnv",
+ "SerdNode",
+ "SerdStatementSink",
+ "SordModel",
+ "SordNode",
+ "SordWorld",
+ "SratomImpl",
+ "uint32_t",
+]
+
+nitpick_ignore = list(map(lambda x: ("c:identifier", x), _opaque))
+
+templates_path = ["_templates"]
+
+pygments_style = "friendly"
+
+# HTML output
+
+exclude_patterns = ["xml"]
+html_static_path = ["_static"]
+
+html_theme = "alabaster"
+# html_theme = "sphinx_rtd_theme"
+
+if html_theme == "alabaster":
+
+ html_theme_options = {
+ "description": "A small library for serialising LV2 atoms to and from RDF",
+ "donate_url": "http://drobilla.net/pages/donate.html",
+ # "github_repo": "sratom",
+ # "github_user": "lv2",
+ # "logo": "sratom.svg",
+ "logo_name": True,
+ "logo_text_align": "center",
+ "page_width": "80em - 20em",
+ "sidebar_width": "20em",
+ }
+
+ html_sidebars = {
+ "**": [
+ "about.html",
+ "localtoc.html",
+ "donate.html",
+ ]
+ }
+
+elif html_theme == "sphinx_rtd_theme":
+
+ html_theme_options = {
+ "sticky_navigation": False,
+ "collapse_navigation": False,
+ "navigation_depth": 4,
+ "display_version": True,
+ }