summaryrefslogtreecommitdiffstats
path: root/doc/conf.py.in
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-07 15:25:36 +0100
committerDavid Robillard <d@drobilla.net>2021-01-07 17:29:33 +0100
commiteb0f335d49ac3b501626d9e1ec140978fe795df6 (patch)
treed5f6c8c9874555abdb42f1b901cc47d8f6597fec /doc/conf.py.in
parentefa8abca4b80b2388e828fce069821a20dc68a68 (diff)
downloadlilv-eb0f335d49ac3b501626d9e1ec140978fe795df6.tar.gz
lilv-eb0f335d49ac3b501626d9e1ec140978fe795df6.tar.bz2
lilv-eb0f335d49ac3b501626d9e1ec140978fe795df6.zip
Generate documentation with Sphinx and add an overview
Diffstat (limited to 'doc/conf.py.in')
-rw-r--r--doc/conf.py.in79
1 files changed, 79 insertions, 0 deletions
diff --git a/doc/conf.py.in b/doc/conf.py.in
new file mode 100644
index 0000000..e62eaff
--- /dev/null
+++ b/doc/conf.py.in
@@ -0,0 +1,79 @@
+# Project information
+
+project = "Lilv"
+copyright = "2020, David Robillard"
+author = "David Robillard"
+release = "@LILV_VERSION@"
+
+# General configuration
+
+exclude_patterns = ["xml"]
+language = "en"
+nitpicky = True
+pygments_style = "friendly"
+
+# Ignore everything opaque or external for nitpicky mode
+_opaque = [
+ "FILE",
+ "LV2_Descriptor",
+ "LV2_Feature",
+ "LV2_Handle",
+ "LV2_URID_Map",
+ "LV2_URID_Unmap",
+ "LilvInstanceImpl",
+ "LilvNodeImpl",
+ "LilvPluginClassImpl",
+ "LilvPluginImpl",
+ "LilvPortImpl",
+ "LilvScalePointImpl",
+ "LilvStateImpl",
+ "LilvUIImpl",
+ "LilvWorldImpl",
+ "size_t",
+ "uint32_t",
+ "va_list",
+]
+
+nitpick_ignore = list(map(lambda x: ("c:identifier", x), _opaque))
+
+# HTML output
+
+html_theme = "sphinx_lv2_theme"
+html_copy_source = False
+html_short_title = "Lilv"
+
+if tags.has('singlehtml'):
+ html_sidebars = {
+ "**": [
+ "globaltoc.html",
+ ]
+ }
+
+ html_theme_options = {
+ "body_max_width": "65em",
+ "body_min_width": "50em",
+ "description": "A library for loading LV2 plugins",
+ "show_footer_version": True,
+ "show_logo_version": False,
+ "logo_name": True,
+ "nosidebar": False,
+ "page_width": "80em",
+ "sidebar_width": "11em",
+ "globaltoc_maxdepth": 3,
+ "globaltoc_collapse": False,
+ }
+
+else:
+ html_theme_options = {
+ "body_max_width": "60em",
+ "body_min_width": "40em",
+ "description": "A library for loading LV2 plugins",
+ "show_footer_version": True,
+ "show_logo_version": False,
+ "logo_name": True,
+ "nosidebar": True,
+ "page_width": "60em",
+ "sidebar_width": "14em",
+ "globaltoc_maxdepth": 1,
+ "globaltoc_collapse": True,
+ }