conf   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 210
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 46
dl 0
loc 210
rs 10
c 0
b 0
f 0
1
# -*- coding: utf-8 -*-
2
#
3
# Configuration file for the Sphinx documentation builder.
4
#
5
# This file does only contain a selection of the most common options. For a
6
# full list see the documentation:
7
# http://www.sphinx-doc.org/en/master/config
8
9
# -- Path setup --------------------------------------------------------------
10
11
# If extensions (or modules to document with autodoc) are in another directory,
12
# add these directories to sys.path here. If the directory is relative to the
13
# documentation root, use os.path.abspath to make it absolute, like shown here.
14
#
15
# import os
16
# import sys
17
# sys.path.insert(0, os.path.abspath('.'))
18
19
import os
20
21
import subprocess
22
23
# Doxygen
24
subprocess.call('doxygen Doxyfile', shell=True)
25
26
# -- Project information -----------------------------------------------------
27
28
project = 'PHP Sorted Collections'
29
copyright = '2024, Ch. Demko'
30
author = 'Ch. Demko'
31
32
# The short X.Y version
33
version = '1.0'
34
# The full version, including alpha/beta/rc tags
35
release = '1.0.8'
36
37
38
# -- General configuration ---------------------------------------------------
39
40
# If your documentation needs a minimal Sphinx version, state it here.
41
#
42
# needs_sphinx = '1.0'
43
needs_sphinx = '6.0'
44
45
# Add any Sphinx extension module names here, as strings. They can be
46
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
47
# ones.
48
49
extensions = [
50
    'sphinx.ext.autodoc',
51
    'sphinxcontrib.phpdomain',
52
    'breathe',
53
    'myst_parser'
54
]
55
56
# Add any paths that contain templates here, relative to this directory.
57
templates_path = ['_templates']
58
59
# List of patterns, relative to source directory, that match files and
60
# directories to ignore when looking for source files.
61
# This pattern also affects html_static_path and html_extra_path.
62
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
63
64
highlight_language = 'php'
65
66
from sphinx.highlighting import lexers
67
from pygments.lexers.web import PhpLexer
68
lexers['php'] = PhpLexer(startinline=True, linenos=1)
69
lexers['php-annotations'] = PhpLexer(startinline=True, linenos=1)
70
primary_domain = 'php'
71
72
# Add any paths that contain templates here, relative to this directory.
73
#templates_path = ['_templates']
74
75
# The suffix(es) of source filenames.
76
# You can specify multiple suffix as a list of string:
77
#
78
# source_suffix = ['.rst', '.md']
79
source_suffix = {
80
    '.rst': 'restructuredtext',
81
    '.md': 'markdown',
82
}
83
84
# The master toctree document.
85
master_doc = 'index'
86
87
# The language for content autogenerated by Sphinx. Refer to documentation
88
# for a list of supported languages.
89
#
90
# This is also used if you do content translation via gettext catalogs.
91
# Usually you set "language" from the command line for these cases.
92
language = 'en'
93
94
# List of patterns, relative to source directory, that match files and
95
# directories to ignore when looking for source files.
96
# This pattern also affects html_static_path and html_extra_path.
97
exclude_patterns = []
98
99
# The name of the Pygments (syntax highlighting) style to use.
100
pygments_style = None
101
102
103
# -- Options for HTML output -------------------------------------------------
104
105
# The theme to use for HTML and HTML Help pages.  See the documentation for
106
# a list of builtin themes.
107
#
108
#html_theme = 'alabaster'
109
html_theme = 'sphinx_rtd_theme'
110
111
from sphinx.highlighting import lexers
112
from pygments.lexers.web import PhpLexer
113
lexers['php'] = PhpLexer(startinline=True, linenos=1)
114
lexers['php-annotations'] = PhpLexer(startinline=True, linenos=1)
115
116
# Set domain
117
primary_domain = 'php'
118
119
120
# -- Breathe configuration -------------------------------------------------
121
122
breathe_projects = {
123
    'SortedCollection': '_build/xml/'
124
}
125
breathe_default_project = 'SortedCollection'
126
breathe_default_members = ('members', 'undoc-members')
127
breathe_domain_by_extension = {
128
    'php' : 'php',
129
}
130
131
# Theme options are theme-specific and customize the look and feel of a theme
132
# further.  For a list of options available for each theme, see the
133
# documentation.
134
#
135
# html_theme_options = {}
136
137
# Add any paths that contain custom static files (such as style sheets) here,
138
# relative to this directory. They are copied after the builtin static files,
139
# so a file named "default.css" will overwrite the builtin "default.css".
140
#html_static_path = ['_static']
141
142
# Custom sidebar templates, must be a dictionary that maps document names
143
# to template names.
144
#
145
# The default sidebars (for documents that don't match any pattern) are
146
# defined by theme itself.  Builtin themes are using these templates by
147
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
148
# 'searchbox.html']``.
149
#
150
# html_sidebars = {}
151
152
153
# -- Options for HTMLHelp output ---------------------------------------------
154
155
# Output file base name for HTML help builder.
156
htmlhelp_basename = 'PHPSortedCollectionsdoc'
157
158
159
# -- Options for LaTeX output ------------------------------------------------
160
161
latex_elements = {
162
    # The paper size ('letterpaper' or 'a4paper').
163
    #
164
    # 'papersize': 'letterpaper',
165
166
    # The font size ('10pt', '11pt' or '12pt').
167
    #
168
    # 'pointsize': '10pt',
169
170
    # Additional stuff for the LaTeX preamble.
171
    #
172
    # 'preamble': '',
173
174
    # Latex figure (float) alignment
175
    #
176
    # 'figure_align': 'htbp',
177
}
178
179
# Grouping the document tree into LaTeX files. List of tuples
180
# (source start file, target name, title,
181
#  author, documentclass [howto, manual, or own class]).
182
183
# -- Options for manual page output ------------------------------------------
184
185
# One entry per manual page. List of tuples
186
# (source start file, name, description, authors, manual section).
187
188
# -- Options for Texinfo output ----------------------------------------------
189
190
# Grouping the document tree into Texinfo files. List of tuples
191
# (source start file, target name, title, author,
192
#  dir menu entry, description, category)
193
194
# -- Options for Epub output -------------------------------------------------
195
196
# Bibliographic Dublin Core info.
197
epub_title = project
198
199
# The unique identifier of the text. This can be a ISBN number
200
# or the project homepage.
201
#
202
# epub_identifier = ''
203
204
# A unique identification for the text.
205
#
206
# epub_uid = ''
207
208
# A list of files that should not be packed into the epub file.
209
epub_exclude_files = ['search.html']
210