File: conf.py

package info (click to toggle)
rudof 0.2.5%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 9,968 kB
  • sloc: python: 1,404; makefile: 32; sh: 1
file content (122 lines) | stat: -rw-r--r-- 3,643 bytes parent folder | download | duplicates (2)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import datetime
import sys
from pathlib import Path

import pyrudof

sys.path.insert(0, str(Path(__file__).parent.parent.absolute()))

# -- Project information -----------------------------------------------------

project = "pyrudof"
copyright = f"{datetime.date.today().year}, pyrudof contributors"
author = pyrudof.__author__
version = pyrudof.__version__
release = pyrudof.__version__

# -- General configuration ---------------------------------------------------

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.autosummary',
    'sphinx.ext.doctest',
    'sphinx.ext.intersphinx',
    'sphinx.ext.napoleon',
    'sphinx.ext.viewcode',
    'sphinx.ext.todo',
    'sphinx.ext.coverage',
    #'sphinx_copybutton',
]

templates_path = ['_templates']
exclude_patterns = ["build", "Thumbs.db", ".DS_Store", "_build", "**.ipynb_checkpoints"]

# -- Autodoc configuration --------------------------------------------------

autodoc_member_order = 'bysource'
autodoc_typehints = 'both'
autodoc_typehints_description_target = 'documented'
autodoc_class_signature = 'separated'
autodoc_default_options = {
    'members': True,
    'member-order': 'bysource',
    'special-members': '__init__',
    'undoc-members': True,
    'exclude-members': '__weakref__'
}

# -- Napoleon configuration (Google/NumPy docstring support) -----------------

napoleon_google_docstring = True
napoleon_numpy_docstring = True
napoleon_include_init_with_doc = True
napoleon_include_private_with_doc = False
napoleon_include_special_with_doc = True
napoleon_use_admonition_for_examples = True
napoleon_use_admonition_for_notes = True
napoleon_use_admonition_for_references = False
napoleon_use_ivar = False
napoleon_use_param = True
napoleon_use_rtype = True
napoleon_preprocess_types = True
napoleon_type_aliases = None
napoleon_attr_annotations = True

# -- Autosummary configuration -----------------------------------------------

autosummary_generate = True
autosummary_imported_members = False

# -- Options for HTML output -------------------------------------------------

html_permalinks_icon = '<span>#</span>'
html_theme = "sphinxawesome_theme"
html_static_path = ['_static']
html_logo = "https://raw.githubusercontent.com/rudof-project/rudof/refs/heads/master/docs/src/assets/corp/logo.svg"
html_favicon = "https://raw.githubusercontent.com/rudof-project/rudof/refs/heads/master/docs/src/assets/corp/logo.svg"
html_theme_options = {
    "body_max_width": None,
    "show_prev_next": True,
    "show_scrolltop": True,
}
html_baseurl = "https://pyrudof.readthedocs.io/en/stable/"
html_context = {
    "display_github": True,
    "github_user": "rudof-project",
    "github_repo": "rudof",
    "github_version": "master",
    "conf_py_path": "/python/docs/",
}

html_show_sourcelink = True
html_copy_source = False

# -- Options for intersphinx -------------------------------------------------

intersphinx_mapping = {
    "python": ("https://docs.python.org/3", None),
    "rdflib": ("https://rdflib.readthedocs.io/en/stable/", None),
    "requests": ("https://requests.readthedocs.io/en/latest/", None),
}

# -- Options for todo extension ----------------------------------------------

todo_include_todos = True

# -- Options for linkcheck ---------------------------------------------------

linkcheck_ignore = [
    r'http://localhost.*',
    r'https://example\.org/.*',
]

# -- Additional configuration ------------------------------------------------

# Syntax highlighting
pygments_style = 'sphinx'
pygments_dark_style = 'monokai'

# -- Custom CSS (_static/custom.css) ----------------------------------
html_css_files = [
    'custom.css',
]