|
| 1 | +""" |
| 2 | +python-gmp documentation build configuration file. |
| 3 | +
|
| 4 | +This file is execfile()d with the current directory set to its containing dir. |
| 5 | +
|
| 6 | +The contents of this file are pickled, so don't put values in the namespace |
| 7 | +that aren't pickleable (module imports are okay, they're removed |
| 8 | +automatically). |
| 9 | +""" |
| 10 | + |
| 11 | +import packaging.version |
| 12 | + |
| 13 | +import gmp |
| 14 | + |
| 15 | +# Add any Sphinx extension module names here, as strings. They can be extensions |
| 16 | +# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
| 17 | +extensions = ['sphinx.ext.autodoc'] |
| 18 | + |
| 19 | +# The name of a reST role (builtin or Sphinx extension) to use as the |
| 20 | +# default role, that is, for text marked up `like this`. |
| 21 | +default_role = 'py:obj' |
| 22 | + |
| 23 | +# Sphinx will warn about all references where the target cannot be found. |
| 24 | +nitpicky = True |
| 25 | + |
| 26 | +# This value selects if automatically documented members are sorted |
| 27 | +# alphabetical (value 'alphabetical'), by member type (value 'groupwise') |
| 28 | +# or by source order (value 'bysource'). |
| 29 | +autodoc_member_order = 'groupwise' |
| 30 | + |
| 31 | +# The default options for autodoc directives. They are applied to all |
| 32 | +# autodoc directives automatically. |
| 33 | +autodoc_default_options = {'members': True} |
| 34 | + |
| 35 | +# General information about the project. |
| 36 | +project = gmp.__package__ |
| 37 | +copyright = '2024, Sergey B Kirpichev' |
| 38 | + |
| 39 | +gmp_version = packaging.version.parse(gmp.__version__) |
| 40 | + |
| 41 | +# The version info for the project you're documenting, acts as replacement for |
| 42 | +# |version| and |release|, also used in various other places throughout the |
| 43 | +# built documents. |
| 44 | +# |
| 45 | +# The short X.Y version. |
| 46 | +version = f"{gmp_version.major}.{gmp_version.minor}" |
| 47 | +# The full version, including alpha/beta/rc tags. |
| 48 | +release = gmp.__version__ |
| 49 | + |
| 50 | +# Grouping the document tree into LaTeX files. List of tuples |
| 51 | +# (source start file, target name, title, author, documentclass [howto/manual]). |
| 52 | +latex_documents = [('index', 'python-gmp.tex', 'python-gmp Documentation', |
| 53 | + 'Sergey B Kirpichev', 'manual')] |
0 commit comments