forked from niklasf/python-chess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.py
52 lines (42 loc) · 1.21 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import sys
import os
# Import the chess module.
sys.path.insert(0, os.path.abspath(".."))
import chess
# Do not resolve these.
autodoc_type_aliases = {
"Square": "chess.Square",
"Color": "chess.Color",
"PieceType": "chess.PieceType",
"Bitboard": "chess.Bitboard",
"IntoSquareSet": "chess.IntoSquareSet",
}
# Autodoc.
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.viewcode",
"sphinx.ext.intersphinx",
"sphinxcontrib.jquery"
]
autodoc_member_order = "bysource"
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
}
# The suffix of source filenames.
source_suffix = ".rst"
# The master toctree document.
master_doc = "index"
# General information about the project.
project = "python-chess"
copyright = "2014–2023, Niklas Fiekas"
# The version.
version = chess.__version__
release = chess.__version__
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ["_build"]
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = "sphinx"
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of built-in themes.
html_theme = "default"