loom

Форк
0
67 строк · 2.2 Кб
1
import subprocess, os
2

3
def configureDoxyfile(input_dir, output_dir):
4
    with open('Doxyfile.in', 'r') as file :
5
        filedata = file.read()
6

7
    filedata = filedata.replace('@DOXYGEN_INPUT_DIR_JOINED@', input_dir)
8
    filedata = filedata.replace('@DOXYGEN_OUTPUT_DIR@', output_dir)
9

10
    with open('Doxyfile', 'w') as file:
11
        file.write(filedata)
12

13
# Check if we're running on Read the Docs' servers
14
read_the_docs_build = (os.environ.get('READTHEDOCS', None) == 'True')
15

16
breathe_projects = {}
17

18
if read_the_docs_build:
19
    input_dir = "../src ../include ../include/QtNodes/internal"
20
    output_dir = '_build'
21
    configureDoxyfile(input_dir, output_dir)
22
    subprocess.call('doxygen', shell=True)
23
    breathe_projects['QtNodes'] = output_dir + '/xml/'
24

25

26
# -- Project information -----------------------------------------------------
27

28
project = 'QtNodes'
29
copyright = '2022, Dmitry Pinaev'
30
author = 'Dmitry Pinaev'
31

32
# The full version, including alpha/beta/rc tags
33
release = '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.
41
extensions = [ "breathe", "sphinx_rtd_theme" ]
42

43

44
#Breathe configuration
45
breathe_default_project = "QtNodes"
46
breathe_default_members = ('members', 'undoc-members')
47

48
# Add any paths that contain templates here, relative to this directory.
49
templates_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.
54
exclude_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
#
62
html_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".
67
html_static_path = ['_static', 'css']
68

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.