-
Notifications
You must be signed in to change notification settings - Fork 55
/
conf.py
73 lines (65 loc) · 2.64 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
"""Configuration file for the Sphinx documentation builder."""
import os
project = "Sphinx Design"
copyright = "2021, Executable Book Project"
author = "Executable Book Project"
extensions = ["myst_parser", "sphinx_design"]
suppress_warnings = ["design.fa-build"]
sd_fontawesome_latex = True
html_theme = os.environ.get("SPHINX_THEME", "alabaster")
html_title = f"Sphinx Design ({html_theme.replace('_', '-')})"
html_static_path = ["_static"]
html_logo = "_static/logo_wide.svg"
html_favicon = "_static/logo_square.svg"
if html_theme not in ("sphinx_book_theme", "pydata_sphinx_theme"):
html_css_files = [
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
]
if html_theme == "alabaster":
html_logo = ""
html_theme_options = {
"logo": "logo_wide.svg",
"logo_name": False,
"description": "(alabaster theme)",
"github_button": False,
"github_type": "star",
"github_banner": False,
"github_user": "executablebooks",
"github_repo": "sphinx-design",
}
if html_theme == "sphinx_book_theme":
html_theme_options = {
"repository_url": "https://github.com/executablebooks/sphinx-design",
"use_repository_button": True,
"use_edit_page_button": True,
"use_issues_button": True,
"repository_branch": "main",
"path_to_docs": "docs",
"home_page_in_toc": False,
}
if html_theme == "furo":
html_css_files = [
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/fontawesome.min.css"
]
html_theme_options = {
"sidebar_hide_name": True,
}
if html_theme == "sphinx_rtd_theme":
html_theme_options = {
"logo_only": True,
}
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
myst_enable_extensions = ["colon_fence", "deflist", "substitution", "html_image"]
myst_substitutions = {
"loremipsum": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. "
"Sed iaculis arcu vitae odio gravida congue. Donec porttitor ac risus et condimentum. "
"Phasellus bibendum ac risus a sollicitudin. "
"Proin pulvinar risus ac mauris aliquet fermentum et varius nisi. "
"Etiam sit amet metus ac ipsum placerat congue semper non diam. "
"Nunc luctus tincidunt ipsum id eleifend. Ut sed faucibus ipsum. "
"Aliquam maximus dictum posuere. Nunc vitae libero nec enim tempus euismod. "
"Aliquam sed lectus ac nisl sollicitudin ultricies id at neque. "
"Aliquam fringilla odio vitae lorem ornare, sit amet scelerisque orci fringilla. "
"Nam sed arcu dignissim, ultrices quam sit amet, commodo ipsum. "
"Etiam quis nunc at ligula tincidunt eleifend."
}