-
Notifications
You must be signed in to change notification settings - Fork 17
/
conf.py
106 lines (87 loc) · 3.84 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
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
# Copyright 2008-2024, MicroEJ Corp. Content in this space is free for read and redistribute. Except if otherwise stated, modification is subject to MicroEJ Corp prior approval.
# MicroEJ is a trademark of MicroEJ Corp. All other trademarks and copyrights are the property of their respective owners.
import os
import sys
sys.path.insert(0, os.path.dirname(__file__))
import microej
project = 'MicroEJ Documentation'
copyright = '2008-2024, MicroEJ Corp. Content in this space is free for read and redistribute. Except if otherwise stated, modification is subject to MicroEJ Corp prior approval. MicroEJ is a trademark of MicroEJ Corp. All other trademarks and copyrights are the property of their respective owners'
author = 'MicroEJ'
release = '1.0'
# This isn't executed on normal builds, but can be used to build multiple doc
# sets from this common source. See the ``microej.py`` extension for more
# information.
if microej.can_build_independent_docs():
project_name = microej.get_project_name()
if project_name:
project = project_name
extensions = [
'microej',
'sphinx.ext.graphviz',
'sphinx_copybutton',
'sphinx_tabs.tabs',
]
sphinx_tabs_valid_builders = ['linkcheck']
sphinx_tabs_disable_tab_closing = True
templates_path = ['_templates']
html_theme_path = ['_themes']
master_doc = 'index'
sphinx_tabs_valid_builders = ['linkcheck']
html_context = {}
if 'READTHEDOCS' in os.environ:
html_context['READTHEDOCS'] = True
# Generic options
exclude_patterns = [
'_build',
'_tools',
'README.rst',
'section*.rst',
'**/section*.rst',
]
# HTML theme options
html_theme = 'microej'
html_logo = '_themes/microej/static/logo-microej-white.png'
html_favicon = '_themes/microej/static/favicon-16x16.png'
html_theme_options = {
'logo_only': True,
'collapse_navigation': False,
'sticky_navigation': False
}
html_show_sphinx = False
html_static_path = ['_themes/microej/static', '_static']
# # remove headers permalinks
# html_add_permalinks = ''
# The default Sphinx HTML title includes the release number and some other
# unwanted bits.
html_title = project
# LaTeX customizations
latex_elements = {
'preamble': r'\usepackage{microej}',
'figure_align': 'H',
'extraclassoptions': 'oneside',
#'sphinxsetup': 'inlineliteralwraps=true, verbatimwithframe=true',
}
latex_additional_files = ['microej.sty']
latex_logo = '_themes/microej/static/mascot.pdf'
latex_engine = 'lualatex'
# This is defined in the theme, but the LaTeX builder does not honor the theme
# setting for pygments. This is the same style class used by the HTML builder.
pygments_style = 'microej.MicroEJStyle'
# Have linkcheck ignore all links except those :
# - starting with a "#" (inner references)
# - containing "microej.com" (main website, docs, developer, repository, forge...)
# - containing "github.com/MicroEJ"
# - containing "nxp.com"
# - containing "facer.io"
linkcheck_ignore = [r'^(?!#|.*microej\.com|.*nxp\.com|.*facer\.io|.*github\.com\/MicroEJ)']
# Keep these legacy linkcheck_ignore patterns for occasional monitoring of external links
# Ignore some links:
# - local index links flagged as broken by linkcheck. Hopefully temporary solution
# until https://github.com/sphinx-doc/sphinx/issues/9383 is resolved.
# - unstable URLs which make the link check fail, such as www.gnu.org or www.oracle.com
# - https://forum.segger.com does not provide its CA certificates
# - https://site.mockito.org DNS failure (2024/02/12)
#linkcheck_ignore = [r'^((?!:\/\/|#|@).)*$|^https://www\.gnu\.org/software/gettext/manual/.*$|^http://localhost.*$|^http://172.17.0.1.*$|^https://www.oracle.com/.*$|^https://forum.segger.com/.*$|^https://site.mockito.org.*$|^https://helpx.adobe.com/illustrator/using/simplify_paths.html$']
# ignoring Github links with anchors at linkcheck
#linkcheck_ignore = [r'https?:\/\/github\.com\/.+#.+']
linkcheck_timeout = 20