loom
67 строк · 2.2 Кб
1import subprocess, os2
3def configureDoxyfile(input_dir, output_dir):4with open('Doxyfile.in', 'r') as file :5filedata = file.read()6
7filedata = filedata.replace('@DOXYGEN_INPUT_DIR_JOINED@', input_dir)8filedata = filedata.replace('@DOXYGEN_OUTPUT_DIR@', output_dir)9
10with open('Doxyfile', 'w') as file:11file.write(filedata)12
13# Check if we're running on Read the Docs' servers
14read_the_docs_build = (os.environ.get('READTHEDOCS', None) == 'True')15
16breathe_projects = {}17
18if read_the_docs_build:19input_dir = "../src ../include ../include/QtNodes/internal"20output_dir = '_build'21configureDoxyfile(input_dir, output_dir)22subprocess.call('doxygen', shell=True)23breathe_projects['QtNodes'] = output_dir + '/xml/'24
25
26# -- Project information -----------------------------------------------------
27
28project = 'QtNodes'29copyright = '2022, Dmitry Pinaev'30author = 'Dmitry Pinaev'31
32# The full version, including alpha/beta/rc tags
33release = '3.0'34
35
36# -- General configuration ---------------------------------------------------
37
38# Add any Sphinx extension module names here, as strings. They can be
39# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
40# ones.
41extensions = [ "breathe", "sphinx_rtd_theme" ]42
43
44#Breathe configuration
45breathe_default_project = "QtNodes"46breathe_default_members = ('members', 'undoc-members')47
48# Add any paths that contain templates here, relative to this directory.
49templates_path = ['_templates']50
51# List of patterns, relative to source directory, that match files and
52# directories to ignore when looking for source files.
53# This pattern also affects html_static_path and html_extra_path.
54exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']55
56
57# -- Options for HTML output -------------------------------------------------
58
59# The theme to use for HTML and HTML Help pages. See the documentation for
60# a list of builtin themes.
61#
62html_theme = 'sphinx_rtd_theme'63
64# Add any paths that contain custom static files (such as style sheets) here,
65# relative to this directory. They are copied after the builtin static files,
66# so a file named "default.css" will overwrite the builtin "default.css".
67html_static_path = ['_static', 'css']68