GNUnet 0.22.2
conf.py
Go to the documentation of this file.
1# Configuration file for the Sphinx documentation builder.
2#
3# This file only contains a selection of the most common options. For a full
4# list see the documentation:
5# https://www.sphinx-doc.org/en/master/usage/configuration.html
6
7# -- Path setup --------------------------------------------------------------
8
9# If extensions (or modules to document with autodoc) are in another directory,
10# add these directories to sys.path here. If the directory is relative to the
11# documentation root, use os.path.abspath to make it absolute, like shown here.
12#
13# import os
14# import sys
15# sys.path.insert(0, os.path.abspath('.'))
16
17
18# -- Project information -----------------------------------------------------
19import sys
20import os
21
22project = 'GNUnet'
23copyright = '2024, GNUnet Project'
24author = 'GNUnet Project'
25
26sys.path.append(os.path.abspath("_exts"))
27
28# -- General configuration ---------------------------------------------------
29
30# Add any Sphinx extension module names here, as strings. They can be
31# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
32# ones.
33extensions = [
34 'httpdomain.httpdomain',
35 'typescriptdomain',
36 'sphinx.ext.todo',
37]
38
39if os.environ.get("SPHINX_MULTIVERSION"):
40 extensions.append('sphinx_multiversion')
41
42#breathe_projects = {
43# "gnunet": "../gnunet/doc/doxygen/xml/",
44#}
45
46#breathe_default_project = "gnunet"
47
48# Add any paths that contain templates here, relative to this directory.
49templates_path = ['_templates']
50
51# List of patterns, relative to source directory, that match files and
52# directories to ignore when looking for source files.
53# This pattern also affects html_static_path and html_extra_path.
54exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
55
56
57# -- Options for HTML output -------------------------------------------------
58
59# The theme to use for HTML and HTML Help pages. See the documentation for
60# a list of builtin themes.
61#
62html_theme = 'sphinx_rtd_theme'
63
64html_sidebars = {
65 "**": ["globaltoc.html", "versioning.html"]
66}
67
68html_theme_options = {
69 #'logo_only': True,
70 'display_version': True,
71 'collapse_navigation': True,
72}
73
74man_make_section_directory = False
75man_pages = [
76 ('about', 'gnunet', 'About GNUnet', '', '1'),
77 ('installing', 'gnunet', 'Installing GNUnet', '', '2'),
78 ('users/start', 'gnunet', 'Starting and stopping', '', '3'),
79 ('users/gns', 'gnunet', 'The GNU Name System', '', '4'),
80 ('users/reclaim', 'gnunet', 're:claimID', '', '5'),
81 ('users/fs', 'gnunet', 'GNUnet File-Sharing', '', '6'),
82 ('users/vpn', 'gnunet', 'GNUnet VPN', '', '7'),
83 ('users/messenger', 'gnunet', 'GNUnet Messenger', '', '8'),
84 ('users/configuration', 'gnunet', 'GNUnet advanced configuration', '', '9'),
85 ('developers/contributing', 'gnunet-dev', 'Contributing', '', '1'),
86 ('developers/style', 'gnunet-dev', 'Style and workflow', '', '2'),
87 ('developers/util', 'gnunet-dev', 'libgnunetutil', '', '3'),
88 ('developers/rest/rest', 'gnunet-dev', 'REST API', '', '5'),
89 ('developers/tutorial', 'gnunet-dev', 'GNUnet Developer Tutorial', '', '6'),
90 ('livingstandards', 'lsd', 'Living Standards', '', '1'),
91]
92
93# Add any paths that contain custom static files (such as style sheets) here,
94# relative to this directory. They are copied after the builtin static files,
95# so a file named "default.css" will overwrite the builtin "default.css".
96html_static_path = ['_static']
97
98# These paths are either relative to html_static_path
99# or fully qualified paths (eg. https://...)
100html_css_files = [
101 'css/custom.css',
102]
103
104html_logo = "images/gnunet-blue.png"
105
106# Display to-do items in docs
107todo_include_todos = True
108
109primary_domain = "c"
110
111highlight_language = "c"
112
113rst_prolog = f"""
114.. role:: c(code)
115 :language: c
116
117.. role:: bolditalic
118 :class: bolditalic
119"""
120
121if os.environ.get("GNUNET_VERSION"):
122 rst_prolog = ".. |gnunet_version| replace:: " + os.environ["GNUNET_VERSION"]
123else:
124 rst_prolog = ".. |gnunet_version| replace:: latest"
125
126# Whitelist pattern for tags (set to None to ignore all tags)
127smv_tag_whitelist = r'^.*$'
128
129# Whitelist pattern for branches (set to None to ignore all branches)
130#smv_branch_whitelist = r'^.*$'
131smv_branch_whitelist = 'master'
132
133# Whitelist pattern for remotes (set to None to use local branches only)
134smv_remote_whitelist = None
135
136# Pattern for released versions
137smv_released_pattern = r'^tags/.*$'
138
139# Format for versioned output directories inside the build directory
140smv_outputdir_format = '{ref.name}'
141
142# Determines whether remote or local git branches/tags are preferred if their output dirs conflict
143smv_prefer_remote_refs = False