Skip to content

Commit 2fd777d

Browse files
fix: enhance documentation and build configuration: update versioning, fixes, and ReadTheDocs setup (#81)
2 parents 2ea4b77 + 134010f commit 2fd777d

14 files changed

+165
-11
lines changed

.bumpversion.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ replace = release = "{new_version}"
1919
[bumpversion:file:python-deprecated.spec]
2020
search = Version: {current_version}
2121
replace = Version: {new_version}
22+
23+
[bumpversion:file:docs/source/_static/rusty-tools-background.svg]
24+
search = id="deprecated-version">v{current_version}</tspan>
25+
replace = id="deprecated-version">v{new_version}</tspan>

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,33 @@ cython_debug/
161161
# and can be added to the global gitignore or merged into this file. For a more nuclear
162162
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
163163
.idea/
164+
165+
### macOS template
166+
# General
167+
.DS_Store
168+
.AppleDouble
169+
.LSOverride
170+
171+
# Icon must end with two \r
172+
Icon?
173+
![iI]con[_a-zA-Z0-9]
174+
175+
# Thumbnails
176+
._*
177+
178+
# Files that might appear in the root of a volume
179+
.DocumentRevisions-V100
180+
.fseventsd
181+
.Spotlight-V100
182+
.TemporaryItems
183+
.Trashes
184+
.VolumeIcon.icns
185+
.com.apple.timemachine.donotpresent
186+
187+
# Directories potentially created on remote AFP share
188+
.AppleDB
189+
.AppleDesktop
190+
Network Trash Folder
191+
Temporary Items
192+
.apdisk
193+

.readthedocs.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.12"
12+
13+
# Build documentation in the "docs/" directory with Sphinx
14+
sphinx:
15+
configuration: docs/source/conf.py
16+
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
17+
# builder: "dirhtml"
18+
# Fail on all warnings to avoid broken references
19+
# fail_on_warning: true
20+
21+
# Optionally build your docs in additional formats such as PDF and ePub
22+
# formats:
23+
# - pdf
24+
# - epub
25+
26+
# Optional but recommended, declare the Python requirements required
27+
# to build your documentation
28+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
29+
python:
30+
install:
31+
- requirements: docs/requirements.txt

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0
1818
(only in comment or documentation).
1919

2020

21-
v1.2.16 (2025-01-24)
21+
v1.2.17 (2024-01-25)
2222
====================
2323

2424
Bug fix release

docs/requirements.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Project dependencies (editable mode)
2+
-e .
3+
4+
# Sphinx to build the documentation
5+
Sphinx ~= 8.1.3
6+
7+
# Pinned versions of dependencies to ensure compatibility with Sphinx
8+
alabaster >=0.7.14, <1.1.0
9+
babel >=2.13, <2.17.0
10+
docutils >=0.20, <0.22
11+
imagesize >=1.3, <1.5.0
12+
Jinja2 >=3.1, <3.2.0
13+
packaging >=23.0, <24.3
14+
Pygments >=2.17, <2.20.0
15+
requests >=2.30.0, <2.33.0
16+
snowballstemmer >=2.2, <2.3.0
17+
sphinxcontrib-applehelp >=1.0.7, <2.1.0
18+
sphinxcontrib-devhelp >=1.0.6, <2.1.0
19+
sphinxcontrib-htmlhelp >=2.0.6, <2.2.0
20+
sphinxcontrib-jsmath >=1.0.1, <1.1.0
21+
sphinxcontrib-qthelp >=1.0.6, <2.1.0
22+
sphinxcontrib-serializinghtml >=1.1.9, <2.1.0

docs/source/_static/banner.png

-275 KB
Binary file not shown.
89.1 KB
Loading

docs/source/_static/rusty-tools-background.svg

Lines changed: 72 additions & 0 deletions
Loading

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
#
7171
# This is also used if you do content translation via gettext catalogs.
7272
# Usually you set "language" from the command line for these cases.
73-
language = None
73+
language = 'en'
7474

7575
# List of patterns, relative to source directory, that match files and
7676
# directories to ignore when looking for source files.

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Welcome to Deprecated
22
=====================
33

4-
.. image:: _static/banner.png
4+
.. image:: _static/rusty-tools-background.svg
55
:alt: Deprecated: When once-stable features are removed in upcoming releases
66

77
Welcome to Deprecated’s Documentation.

docs/source/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Installation
66
Python Version
77
--------------
88

9-
We recommend using the latest version of Python 3. Deprecated Library supports Python 3.4
10-
and newer, Python 2.7 and newer, and PyPy 2.7 and 3.6.
9+
Our project supports Python 2.7 (for historical reasons), Python 3.4 and newer versions, as well as PyPy 2.7 and
10+
PyPy 3.6 and newer. We recommend using the latest version of Python 3 whenever possible.
1111

1212
Dependencies
1313
------------

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,6 @@ def function_three():
190190
"PyTest",
191191
"PyTest-Cov",
192192
"bump2version < 1",
193-
"sphinx < 2",
194-
# jinja2 3.0.3 was the last version to have contextfunction that sphinx 1.x needs
195-
"jinja2~=3.0.3",
196193
"setuptools; python_version>='3.12'",
197194
]
198195
},

tox.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ deps =
3030

3131
[testenv:docs]
3232
basepython = python
33-
# jinja2 3.0.3 was the last version to have contextfunction that sphinx 1.x needs
3433
deps =
35-
sphinx < 2
36-
jinja2 == 3.0.3
34+
-r docs/requirements.txt
3735
commands =
3836
sphinx-build -b html -d {envtmpdir}/doctrees docs/source/ {envtmpdir}/html
3937
sphinx-build -b epub -d {envtmpdir}/doctrees docs/source/ {envtmpdir}/epub

0 commit comments

Comments
 (0)