Skip to content

Commit ffdfe8d

Browse files
authored
doc: improve the docs (#316)
1 parent fd70c1b commit ffdfe8d

File tree

5 files changed

+33
-5
lines changed

5 files changed

+33
-5
lines changed

docs/conf.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@
3030

3131
# Add any Sphinx extension module names here, as strings. They can be extensions
3232
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
33-
extensions = ["sphinx.ext.autodoc", "sphinx.ext.todo", "sphinx.ext.viewcode"]
33+
extensions = [
34+
"sphinx.ext.autodoc",
35+
"sphinx.ext.todo",
36+
"sphinx.ext.viewcode",
37+
"sphinx_copybutton",
38+
]
3439

3540
# Add any paths that contain templates here, relative to this directory.
3641
templates_path = ["_templates"]
@@ -86,7 +91,7 @@
8691
# show_authors = False
8792

8893
# The name of the Pygments (syntax highlighting) style to use.
89-
pygments_style = "sphinx"
94+
# pygments_style = "sphinx"
9095

9196
# A list of ignored prefixes for module index sorting.
9297
# modindex_common_prefix = []
@@ -96,7 +101,7 @@
96101

97102
# The theme to use for HTML and HTML Help pages. See the documentation for
98103
# a list of builtin themes.
99-
html_theme = "default"
104+
html_theme = "furo"
100105

101106
# Theme options are theme-specific and customize the look and feel of a theme
102107
# further. For a list of options available for each theme, see the

docs/index.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ If you give it a try, please let me know of any issues.
7979
.. _pip: http://www.pip-installer.org/
8080

8181

82-
Contents:
82+
Contents
83+
========
8384

8485
.. toctree::
8586
:maxdepth: 2
@@ -89,8 +90,15 @@ Contents:
8990
etags
9091
custom_heuristics
9192
tips
92-
release_notes
9393

94+
.. toctree::
95+
:hidden:
96+
:caption: Development
97+
:maxdepth: 2
98+
99+
release_notes
100+
GitHub <https://github.com/psf/cachecontrol>
101+
PyPI <https://pypi.org/project/cachecontrol>
94102

95103

96104
Indices and tables

docs/release_notes.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ The project has been moved to the `PSF <https://github.com/psf>`_ organization.
2929
* Add type annotations.
3030
* Exclude the ``tests`` directory from the wheel.
3131

32+
0.12.14
33+
=======
34+
35+
* Revert the change "switch lockfile to filelock" to fix the compatibility issue.
36+
37+
0.12.13
38+
=======
39+
40+
* Discard the ``strict`` attribute when serializing and deserializing responses.
41+
* Fix the IncompleteRead error thrown by ``urllib3`` 2.0.
42+
* Exclude the tests directory from the wheel.
43+
3244
0.12.11
3345
=======
3446

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.[dev]

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ dev = [
5656
"pytest",
5757
"cherrypy",
5858
"sphinx",
59+
"furo",
60+
"sphinx-copybutton",
5961
"black",
6062
"types-redis",
6163
"types-requests",

0 commit comments

Comments
 (0)