Debian Codegraph @

docs/source/conf.py

raw symbols ◀ ▶ SCIP
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 # 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 import platform
16
17 system = platform.system().lower()
18 machine = platform.machine()
19 pymajor, pyminor, _ = platform.python_version_tuple()
•20 libpath = f'../../debian/python3-pynauty/usr/lib/python{pymajor}.{pyminor}' + \
21 '/dist-packages'
22 sys.path.insert(0, os.path.abspath(libpath))
23
24 import pynauty
25
26 # -- Project information -----------------------------------------------------
27
28 project = 'Pynauty'
29 copyright = '2011-2024, Peter Dobsan'
30 author = 'Peter Dobsan'
31
32 version = pynauty.__version__
33 release = pynauty.__version__
34
35 html_title = project
36
37
38 # -- General configuration ---------------------------------------------------
39
40 # Add any Sphinx extension module names here, as strings. They can be
41 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
42 # ones.
43 extensions = [
44 'sphinx.ext.viewcode',
45 'sphinx.ext.autodoc',
46 'sphinx.ext.intersphinx',
47 'sphinx.ext.mathjax',
48 ]
49
50 # Add any paths that contain templates here, relative to this directory.
51 #templates_path = ['_templates']
52
53 # List of patterns, relative to source directory, that match files and
54 # directories to ignore when looking for source files.
55 # This pattern also affects html_static_path and html_extra_path.
56 exclude_patterns = []
57
58
59 # -- Options for HTML output -------------------------------------------------
60
61 # The theme to use for HTML and HTML Help pages. See the documentation for
62 # a list of builtin themes.
63 #
64 html_theme = 'classic'
65
66 html_theme_options = {
67 #'rightsidebar': 'true',
68 'stickysidebar': 'true',
69 }
70
71
72 # Add any paths that contain custom static files (such as style sheets) here,
73 # relative to this directory. They are copied after the builtin static files,
74 # so a file named "default.css" will overwrite the builtin "default.css".
75 #html_static_path = ['_static']