dangerzone/docs/conf.py
2025-03-25 16:10:23 +01:00

89 lines
2.2 KiB
Python

# -*- coding: utf-8 -*-
#
# Dangerzone documentation build configuration file.
import sphinx_rtd_theme
import os
extensions = ["sphinx_rtd_theme", "myst_parser"]
myst_enable_extensions = [
"colon_fence",
]
myst_enable_checkboxes = True
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
source_suffix = {".md": "markdown"}
master_doc = "index"
project = "Dangerzone"
copyright = "2025, Freedom of the Press Foundation"
author = "Dangerzone Team and Contributors"
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = "en"
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ["_build"]
pygments_style = "sphinx"
html_theme = "sphinx_rtd_theme"
html_context = {
"display_github": True,
"github_user": "freedomofpress",
"github_repo": "dangerzone",
"github_version": "main",
"conf_py_path": "/docs/",
"source_suffix": source_suffix,
}
html_theme_options = {
"style_external_links": True,
"flyout_display": "hidden",
"version_selector": True,
# Toc options
"collapse_navigation": True,
"sticky_navigation": True,
"navigation_depth": 4,
"includehidden": True,
"titles_only": False,
}
# Output file base name for HTML help builder.
htmlhelp_basename = "Dangerzonedoc"
man_pages = [(master_doc, "dangerzone", "Dangerzone Documentation", [author], 1)]
# -- Options for Texinfo output -------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(
master_doc,
"Dangerzone",
"Dangerzone Documentation",
author,
"Dangerzone",
"One line description of project.",
"Miscellaneous",
),
]
linkcheck_retries = 3
linkcheck_workers = 32
linkcheck_ignore = [
r"http://127\.0\.0\.1(:\d+)?/?",
r"http://localhost(:\d+)?/?",
]