10
10
11
11
# If extensions (or modules to document with autodoc) are in another directory,
12
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.
13
+ # documentation root, use os.path.abspath to make it absolute, as shown here.
14
14
#
15
15
# import os
16
16
# import sys
20
20
# -- Project information -----------------------------------------------------
21
21
22
22
project = 'oneAPI Math Kernel Library Interfaces'
23
- copyright = '2020, Intel Corporation'
23
+ copyright = '2020-2022 , Intel Corporation'
24
24
author = 'Intel Corporation'
25
25
26
26
# The short X.Y version
@@ -41,7 +41,6 @@ release = '0.1'
41
41
extensions = [
42
42
'sphinx.ext.autodoc',
43
43
'sphinx.ext.doctest',
44
- 'sphinx.ext.intersphinx',
45
44
'sphinx.ext.todo',
46
45
]
47
46
@@ -62,7 +61,7 @@ master_doc = 'index'
62
61
#
63
62
# This is also used if you do content translation via gettext catalogs.
64
63
# Usually you set "language" from the command line for these cases.
65
- language = None
64
+ language = 'en'
66
65
67
66
# List of patterns, relative to source directory, that match files and
68
67
# directories to ignore when looking for source files.
@@ -72,24 +71,38 @@ exclude_patterns = []
72
71
# The name of the Pygments (syntax highlighting) style to use.
73
72
pygments_style = None
74
73
74
+ static_dir = '@CMAKE_CURRENT_SOURCE_DIR@/_static'
75
+
75
76
76
77
# -- Options for HTML output -------------------------------------------------
77
78
78
79
# The theme to use for HTML and HTML Help pages. See the documentation for
79
80
# a list of builtin themes.
80
81
#
81
- html_theme = 'alabaster'
82
+ html_theme = 'sphinx_book_theme'
83
+ html_logo = f'{static_dir}/oneAPI-rgb-rev-100.png'
84
+ html_favicon = f'{static_dir}/favicons.png'
82
85
83
86
# Theme options are theme-specific and customize the look and feel of a theme
84
87
# further. For a list of options available for each theme, see the
85
88
# documentation.
86
89
#
87
- # html_theme_options = {}
90
+
91
+ # Theme options
92
+ html_theme_options = {
93
+ 'repository_url': 'https://github.com/oneapi-src/oneMKL',
94
+ 'path_to_docs': 'docs',
95
+ 'use_issues_button': True,
96
+ 'use_edit_page_button': True,
97
+ 'repository_branch': 'develop',
98
+ 'extra_footer': '<p align="right"><a href="https://www.intel.com/content/www/us/en/privacy/intel-cookie-notice.html">Cookies</a></p>',
99
+ 'navigation_with_keys': False,
100
+ }
88
101
89
102
# Add any paths that contain custom static files (such as style sheets) here,
90
103
# relative to this directory. They are copied after the builtin static files,
91
104
# so a file named "default.css" will overwrite the builtin "default.css".
92
- html_static_path = ['_static' ]
105
+ html_static_path = [static_dir ]
93
106
94
107
# Custom sidebar templates, must be a dictionary that maps document names
95
108
# to template names.
@@ -179,11 +192,6 @@ epub_exclude_files = ['search.html']
179
192
180
193
# -- Extension configuration -------------------------------------------------
181
194
182
- # -- Options for intersphinx extension ---------------------------------------
183
-
184
- # Example configuration for intersphinx: refer to the Python standard library.
185
- intersphinx_mapping = {'https://docs.python.org/': None}
186
-
187
195
# -- Options for todo extension ----------------------------------------------
188
196
189
197
# If true, `todo` and `todoList` produce output, else they produce nothing.
0 commit comments