|
10 | 10 | html_theme = os.environ.get("SPHINX_THEME", "alabaster") |
11 | 11 | html_title = f"Sphinx Design ({html_theme.replace('_', '-')})" |
12 | 12 |
|
| 13 | +html_static_path = ["_static"] |
13 | 14 | html_logo = "_static/logo_wide.svg" |
14 | 15 | html_favicon = "_static/logo_square.svg" |
15 | 16 |
|
16 | 17 | if html_theme == "alabaster": |
17 | 18 | html_css_files = [ |
18 | 19 | "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/fontawesome.min.css" |
19 | 20 | ] |
| 21 | + html_logo = "" |
| 22 | + html_theme_options = { |
| 23 | + "logo": "logo_wide.svg", |
| 24 | + "logo_name": False, |
| 25 | + "description": "(alabaster theme)", |
| 26 | + "github_button": False, |
| 27 | + "github_type": "star", |
| 28 | + "github_banner": False, |
| 29 | + "github_user": "executablebooks", |
| 30 | + "github_repo": "sphinx-design", |
| 31 | + } |
| 32 | +if html_theme == "sphinx_book_theme": |
| 33 | + html_theme_options = { |
| 34 | + "repository_url": "https://github.com/executablebooks/sphinx-design", |
| 35 | + "use_repository_button": True, |
| 36 | + "use_edit_page_button": True, |
| 37 | + "use_issues_button": True, |
| 38 | + "repository_branch": "main", |
| 39 | + "path_to_docs": "docs", |
| 40 | + "home_page_in_toc": True, |
| 41 | + "logo_only": True, |
| 42 | + } |
| 43 | +if html_theme == "furo": |
| 44 | + html_theme_options = { |
| 45 | + "sidebar_hide_name": True, |
| 46 | + } |
| 47 | +if html_theme == "sphinx_rtd_theme": |
| 48 | + html_theme_options = { |
| 49 | + "logo_only": True, |
| 50 | + } |
20 | 51 |
|
21 | 52 | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
22 | 53 | myst_enable_extensions = ["colon_fence", "deflist", "substitution", "html_image"] |
|
0 commit comments