| 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 |
import os |
| 13 |
import sys |
| 14 |
sys.path.insert(0, os.path.abspath('_extensions')) |
| 15 |
|
| 16 |
|
| 17 |
# -- Project information ----------------------------------------------------- |
| 18 |
|
| 19 |
project = 'Development guide for librsvg' |
| 20 |
copyright = '2022, Federico Mena Quintero' |
| 21 |
author = 'Federico Mena Quintero' |
| 22 |
|
| 23 |
|
| 24 |
# -- General configuration --------------------------------------------------- |
| 25 |
|
| 26 |
# Add any Sphinx extension module names here, as strings. They can be |
| 27 |
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 28 |
# ones. |
| 29 |
extensions = [ |
| 30 |
# Used to shorten external links. |
| 31 |
# https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html |
| 32 |
"sphinx.ext.extlinks", |
| 33 |
# Used to link issues, merge requests, CVEs, etc. |
| 34 |
# https://github.com/sloria/sphinx-issues |
| 35 |
"sphinx_issues", |
| 36 |
# Used to reference entities in the internals documentation. |
| 37 |
# ./_extensions/internals.py |
| 38 |
"internals", |
| 39 |
# Used to reference entries in the source tree. |
| 40 |
# ./_extensions/source.py |
| 41 |
"source", |
| 42 |
] |
| 43 |
|
| 44 |
# Add any paths that contain templates here, relative to this directory. |
| 45 |
templates_path = ['_templates'] |
| 46 |
|
| 47 |
# List of patterns, relative to source directory, that match files and |
| 48 |
# directories to ignore when looking for source files. |
| 49 |
# This pattern also affects html_static_path and html_extra_path. |
| 50 |
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 51 |
|
| 52 |
|
| 53 |
# -- Options for HTML output ------------------------------------------------- |
| 54 |
|
| 55 |
# The theme to use for HTML and HTML Help pages. See the documentation for |
| 56 |
# a list of builtin themes. |
| 57 |
# |
| 58 |
html_theme = 'furo' |
| 59 |
|
| 60 |
# Add any paths that contain custom static files (such as style sheets) here, |
| 61 |
# relative to this directory. They are copied after the builtin static files, |
| 62 |
# so a file named "default.css" will overwrite the builtin "default.css". |
| 63 |
html_static_path = ['_static'] |
| 64 |
|
| 65 |
|
| 66 |
# Options for the linkcheck builder. This is used by the ci/check_docs_links.sh script. |
| 67 |
# |
| 68 |
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-the-linkcheck-builder |
| 69 |
|
| 70 |
linkcheck_ignore = [ |
| 71 |
# These URLs fail for some reason, but work in the browser. |
| 72 |
r'https://crates.io/crates/.*', |
| 73 |
|
| 74 |
# Links with anchors for section names or line numbers fail. But since we usually |
| 75 |
# use specific commit ids, they should be correct anyway. |
| 76 |
r'https://github.com/.*#.*', |
| 77 |
r'https://gitlab.gnome.org/.*#.*', |
| 78 |
r'https://gitlab.freedesktop.org/.*#.*', |
| 79 |
] |
| 80 |
|
| 81 |
|
| 82 |
# Options for the `sphinx.ext.extlinks` extension. See `extensions` above. |
| 83 |
|
| 84 |
extlinks = { |
| 85 |
"rustsec": ("https://rustsec.org/advisories/RUSTSEC-%s", "RUSTSEC-%s"), |
| 86 |
} |
| 87 |
extlinks_detect_hardcoded_links = True |
| 88 |
|
| 89 |
|
| 90 |
# Options for the `sphinx-issues` extension. See `extensions` above. |
| 91 |
|
| 92 |
issues_default_group_project = "GNOME/librsvg" |
| 93 |
issues_uri = "https://gitlab.gnome.org/{group}/{project}/-/issues/{issue}" |
| 94 |
issues_prefix = "#" |
| 95 |
issues_pr_uri = "https://gitlab.gnome.org/{group}/{project}/-/merge_requests/{pr}" |
| 96 |
issues_pr_prefix = "!" |
| 97 |
issues_commit_uri = "https://gitlab.gnome.org/{group}/{project}/-/commit/{commit}" |
| 98 |
issues_commit_prefix = "@" |
| 99 |
issues_user_uri = "https://gitlab.gnome.org/{user}" |
| 100 |
issues_user_prefix = "@" |