Skip to content

Commit e916a2d

Browse files
authored
Changing Documentation Theme to Improve Readability (#1135)
1 parent 998b33b commit e916a2d

File tree

7 files changed

+626
-587
lines changed

7 files changed

+626
-587
lines changed

docs/api-guide.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
***************************************
2+
API Guide
3+
***************************************
4+
5+
:mod:`arrow.arrow`
6+
=====================
7+
8+
.. automodule:: arrow.arrow
9+
:members:
10+
11+
:mod:`arrow.factory`
12+
=====================
13+
14+
.. automodule:: arrow.factory
15+
:members:
16+
17+
:mod:`arrow.api`
18+
=====================
19+
20+
.. automodule:: arrow.api
21+
:members:
22+
23+
:mod:`arrow.locale`
24+
=====================
25+
26+
.. automodule:: arrow.locales
27+
:members:
28+
:undoc-members:

docs/conf.py

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020

2121
# -- General configuration ---------------------------------------------------
2222

23-
extensions = ["sphinx.ext.autodoc", "sphinx_autodoc_typehints"]
23+
extensions = [
24+
"sphinx.ext.autodoc",
25+
"sphinx_autodoc_typehints",
26+
"sphinx_rtd_theme",
27+
]
2428

2529
templates_path = []
2630

@@ -34,29 +38,29 @@
3438

3539
# -- Options for HTML output -------------------------------------------------
3640

37-
html_theme = "alabaster"
41+
html_theme = "sphinx_rtd_theme"
3842
html_theme_path = []
3943
html_static_path = []
4044

4145
html_show_sourcelink = False
4246
html_show_sphinx = False
4347
html_show_copyright = True
4448

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,
4851
"github_user": "arrow-py",
4952
"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/",
5654
}
5755

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,
6064
}
6165

6266
# Generate PDFs with unicode characters

docs/getting-started.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
***************************************
2+
Getting started
3+
***************************************
4+
5+
Assuming you have Python already, follow the guidelines below to get started with Arrow.
6+
7+
.. include:: ../README.rst
8+
:start-after: Quick Start
9+
:end-before: end-inclusion-marker-do-not-remove

0 commit comments

Comments
 (0)