1# Project information
2
3project = "Lilv"
4copyright = "2020, David Robillard"
5author = "David Robillard"
6release = "@LILV_VERSION@"
7
8# General configuration
9
10exclude_patterns = ["xml"]
11language = "en"
12nitpicky = True
13pygments_style = "friendly"
14
15# Ignore everything opaque or external for nitpicky mode
16_opaque = [
17    "FILE",
18    "LV2_Descriptor",
19    "LV2_Feature",
20    "LV2_Handle",
21    "LV2_URID_Map",
22    "LV2_URID_Unmap",
23    "LilvInstanceImpl",
24    "LilvNodeImpl",
25    "LilvPluginClassImpl",
26    "LilvPluginImpl",
27    "LilvPortImpl",
28    "LilvScalePointImpl",
29    "LilvStateImpl",
30    "LilvUIImpl",
31    "LilvWorldImpl",
32    "size_t",
33    "uint32_t",
34    "va_list",
35]
36
37nitpick_ignore = list(map(lambda x: ("c:identifier", x), _opaque))
38
39# HTML output
40
41html_theme = "sphinx_lv2_theme"
42html_copy_source = False
43html_short_title = "Lilv"
44
45if tags.has('singlehtml'):
46    html_sidebars = {
47        "**": [
48        "globaltoc.html",
49        ]
50    }
51
52    html_theme_options = {
53        "body_max_width": "65em",
54        "body_min_width": "50em",
55        "description": "A library for loading LV2 plugins",
56        "show_footer_version": True,
57        "show_logo_version": False,
58        "logo_name": True,
59        "nosidebar": False,
60        "page_width": "80em",
61        "sidebar_width": "11em",
62        "globaltoc_maxdepth": 3,
63        "globaltoc_collapse": False,
64    }
65
66else:
67    html_theme_options = {
68        "body_max_width": "60em",
69        "body_min_width": "40em",
70        "description": "A library for loading LV2 plugins",
71        "show_footer_version": True,
72        "show_logo_version": False,
73        "logo_name": True,
74        "nosidebar": True,
75        "page_width": "60em",
76        "sidebar_width": "14em",
77        "globaltoc_maxdepth": 1,
78        "globaltoc_collapse": True,
79    }
80