|
| 1 | +# flake8: NOQA E5 |
1 | 2 | import inspect |
2 | 3 | import os |
3 | 4 | import sys |
4 | 5 | from os.path import dirname, relpath |
5 | 6 |
|
6 | | -import alagitpull |
7 | | - |
8 | 7 | import tmuxp |
9 | 8 |
|
10 | 9 | # Get the project root dir, which is the parent dir of this |
|
28 | 27 | "sphinx.ext.napoleon", |
29 | 28 | "sphinx.ext.linkcode", |
30 | 29 | "aafig", |
31 | | - "alagitpull", |
32 | 30 | "sphinx_issues", |
33 | 31 | "myst_parser", |
| 32 | + "sphinx_click.ext", # sphinx-click |
| 33 | + "sphinx_inline_tabs", |
| 34 | + "sphinx_copybutton", |
| 35 | + "sphinxext.opengraph", |
| 36 | + "myst_parser", |
34 | 37 | ] |
35 | 38 |
|
36 | 39 | myst_enable_extensions = ["colon_fence"] |
|
51 | 54 |
|
52 | 55 | exclude_patterns = ["_build"] |
53 | 56 |
|
54 | | -pygments_style = "sphinx" |
| 57 | +pygments_style = "monokai" |
| 58 | +pygments_dark_style = "monokai" |
55 | 59 |
|
56 | | -html_theme_path = [alagitpull.get_path()] |
57 | | -html_theme = "alagitpull" |
| 60 | +html_css_files = ["css/custom.css"] |
58 | 61 | html_extra_path = ["manifest.json"] |
59 | 62 | html_static_path = ["_static"] |
| 63 | +html_theme = "furo" |
| 64 | +html_theme_path = [] |
| 65 | +html_theme_options = { |
| 66 | + "light_logo": "img/tmuxp.svg", |
| 67 | + "dark_logo": "img/tmuxp.svg", |
| 68 | + "footer_icons": [ |
| 69 | + { |
| 70 | + "name": "GitHub", |
| 71 | + "url": about["__github__"], |
| 72 | + "html": """ |
| 73 | + <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16"> |
| 74 | + <path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path> |
| 75 | + </svg> |
| 76 | + """, |
| 77 | + "class": "", |
| 78 | + }, |
| 79 | + ], |
| 80 | +} |
60 | 81 | html_sidebars = { |
61 | 82 | "**": [ |
62 | | - "about.html", |
63 | | - "navigation.html", |
64 | | - "relations.html", |
65 | | - "more.html", |
66 | | - "book.html", |
67 | | - "searchbox.html", |
| 83 | + "sidebar/scroll-start.html", |
| 84 | + "sidebar/brand.html", |
| 85 | + "sidebar/search.html", |
| 86 | + "sidebar/navigation.html", |
| 87 | + "sidebar/projects.html", |
| 88 | + "sidebar/scroll-end.html", |
68 | 89 | ] |
69 | 90 | } |
70 | 91 |
|
71 | | -html_theme_options = { |
72 | | - "logo": "img/tmuxp.svg", |
73 | | - "github_user": "tmux-python", |
74 | | - "github_repo": "tmuxp", |
75 | | - "github_type": "star", |
76 | | - "github_banner": True, |
77 | | - "projects": alagitpull.projects, |
78 | | - "project_name": about["__title__"], |
79 | | - "project_title": about["__title__"], |
80 | | - "project_description": about["__description__"], |
81 | | - "project_url": about["__docs__"], |
82 | | - "show_meta_manifest_tag": True, |
83 | | - "show_meta_og_tags": True, |
84 | | - "show_meta_app_icon_tags": True, |
85 | | -} |
86 | | - |
87 | | -alagitpull_internal_hosts = ["tmuxp.git-pull.com", "0.0.0.0"] |
88 | | -alagitpull_external_hosts_new_window = True |
| 92 | +# sphinxext.opengraph |
| 93 | +ogp_site_url = about["__docs__"] |
| 94 | +ogp_image = "_static/img/icons/icon-192x192.png" |
| 95 | +ogp_desscription_length = about["__description__"] |
| 96 | +ogp_site_name = about["__title__"] |
89 | 97 |
|
90 | 98 | htmlhelp_basename = "%sdoc" % about["__title__"] |
91 | 99 |
|
|
0 commit comments