Debian Codegraph @

doc/sphinx/conf.py

raw symbols ◀ ▶ SCIP
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch 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 import sys, os
10
11 sys.path.append(os.path.abspath('_extensions'))
12
13 # -- Project information -----------------------------------------------------
14
15 project = 'FontForge'
16 copyright = '2000-2012 by George Williams, 2012-2025 by FontForge authors'
17 author = 'FontForge authors'
18
19 # The full version - read from environment (set by ReadTheDocs) or default
20 # ReadTheDocs sets READTHEDOCS_VERSION to the tag/branch name
21 release = os.environ.get('READTHEDOCS_VERSION', '20251009')
22 if release.startswith('v'):
23 release = release[1:] # Strip 'v' prefix from tags
24
25
26 # -- General configuration ---------------------------------------------------
27
28 # Add any Sphinx extension module names here, as strings. They can be
29 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
30 # ones.
31 extensions = [
32 'sphinx.ext.githubpages',
33 'sphinx.ext.mathjax',
34
35 'flex_grid',
36 'fontforge_scripting_domain'
37 ]
38
39 # interesting to see if it can be adapted: docutils.utils.math.math2html
40
41 # Add any paths that contain templates here, relative to this directory.
42 templates_path = ['_templates']
43
44 # List of patterns, relative to source directory, that match files and
45 # directories to ignore when looking for source files.
46 # This pattern also affects html_static_path and html_extra_path.
47 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
48
49
50 # -- Options for HTML output -------------------------------------------------
51
52 # The theme to use for HTML and HTML Help pages. See the documentation for
53 # a list of builtin themes.
54 #
55 html_theme = 'alabaster'
56
57 # Add any paths that contain custom static files (such as style sheets) here,
58 # relative to this directory. They are copied after the builtin static files,
59 # so a file named "default.css" will overwrite the builtin "default.css".
60 html_static_path = ['_static']
61
62 # Don't make images clickable to the original if they're scaled
63 html_scaled_image_link = False
64
65 # Set the favicon
66 html_favicon = 'images/fftype16.png'
67
68 # Include the old Japanese/German docs
69 html_extra_path = ['olddocs']
70
71 # Don't copy source rst files into the output
72 html_copy_source = False
73
74 mathjax_path = 'mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
75
76 # Set the main page
77 master_doc = 'index'
78
79 # Custom roles must be in the prolog, not the epilog!
80 rst_prolog = '''
81 .. role:: small
82 '''