|
20 | 20 |
|
21 | 21 | # -- General configuration ---------------------------------------------------
|
22 | 22 |
|
23 |
| -extensions = ["sphinx.ext.autodoc", "sphinx_autodoc_typehints"] |
| 23 | +extensions = [ |
| 24 | + "sphinx.ext.autodoc", |
| 25 | + "sphinx_autodoc_typehints", |
| 26 | + "sphinx_rtd_theme", |
| 27 | +] |
24 | 28 |
|
25 | 29 | templates_path = []
|
26 | 30 |
|
|
34 | 38 |
|
35 | 39 | # -- Options for HTML output -------------------------------------------------
|
36 | 40 |
|
37 |
| -html_theme = "alabaster" |
| 41 | +html_theme = "sphinx_rtd_theme" |
38 | 42 | html_theme_path = []
|
39 | 43 | html_static_path = []
|
40 | 44 |
|
41 | 45 | html_show_sourcelink = False
|
42 | 46 | html_show_sphinx = False
|
43 | 47 | html_show_copyright = True
|
44 | 48 |
|
45 |
| -# https://alabaster.readthedocs.io/en/latest/customization.html |
46 |
| -html_theme_options = { |
47 |
| - "description": "Arrow is a sensible and human-friendly approach to dates, times and timestamps.", |
| 49 | +html_context = { |
| 50 | + "display_github": True, |
48 | 51 | "github_user": "arrow-py",
|
49 | 52 | "github_repo": "arrow",
|
50 |
| - "github_banner": True, |
51 |
| - "show_related": False, |
52 |
| - "show_powered_by": False, |
53 |
| - "github_button": True, |
54 |
| - "github_type": "star", |
55 |
| - "github_count": "true", # must be a string |
| 53 | + "github_version": "master/docs/", |
56 | 54 | }
|
57 | 55 |
|
58 |
| -html_sidebars = { |
59 |
| - "**": ["about.html", "localtoc.html", "relations.html", "searchbox.html"] |
| 56 | +# https://sphinx-rtd-theme.readthedocs.io/en/stable/index.html |
| 57 | +html_theme_options = { |
| 58 | + "logo_only": False, |
| 59 | + "prev_next_buttons_location": "both", |
| 60 | + "style_nav_header_background": "grey", |
| 61 | + # TOC options |
| 62 | + "collapse_navigation": False, |
| 63 | + "navigation_depth": 3, |
60 | 64 | }
|
61 | 65 |
|
62 | 66 | # Generate PDFs with unicode characters
|
|
0 commit comments