Skip to content

Commit dfbbf0b

Browse files
authored
Fix Read the Docs Build (#582)
Fixes #581.
1 parent 0e48627 commit dfbbf0b

File tree

3 files changed

+37
-5
lines changed

3 files changed

+37
-5
lines changed

.readthedocs.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: 2
2+
3+
# Set the OS, Python version and other tools you might need
4+
build:
5+
os: ubuntu-22.04
6+
tools:
7+
python: "3.12"
8+
# You can also specify other tool versions:
9+
# nodejs: "20"
10+
# rust: "1.70"
11+
# golang: "1.20"
12+
13+
# Build documentation in the "docs/" directory with Sphinx
14+
sphinx:
15+
configuration: docs/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

AUTHORS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ HZDG_.
66
Maintainers
77
-----------
88

9+
* `Venelin Stoykov`_
910
* `Matthew Tretter`_
1011
* `Bryan Veloso`_
1112
* `Chris Drackett`_
@@ -28,7 +29,6 @@ Contributors
2829
* `Jannis Leidel`_
2930
* `Sean Bell`_
3031
* `Saul Shanabrook`_
31-
* `Venelin Stoykov`_
3232
* `Jaap Roes`_
3333

3434
.. _Justin Driscoll: http://github.com/jdriscoll
@@ -52,4 +52,4 @@ Contributors
5252
.. _Sean Bell: https://github.com/seanbell
5353
.. _Saul Shanabrook: https://github.com/saulshanabrook
5454
.. _Venelin Stoykov: https://github.com/vstoykov
55-
.. Jaap Roes: https://github.com/jaap3
55+
.. _Jaap Roes: https://github.com/jaap3

docs/conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@
4444

4545
# General information about the project.
4646
project = 'ImageKit'
47-
copyright = '2011, Justin Driscoll, Bryan Veloso, Greg Newman, Chris Drackett & Matthew Tretter'
47+
copyright = '2011, Justin Driscoll, Bryan Veloso, Greg Newman, Chris Drackett, Matthew Tretter, Venelin Stoykov & contributors'
4848

4949
pkgmeta = {}
50-
execfile(os.path.join(os.path.dirname(__file__), '..', 'imagekit',
51-
'pkgmeta.py'), pkgmeta)
50+
pkgmeta_file = os.path.join(os.path.dirname(__file__), '..', 'imagekit', 'pkgmeta.py')
51+
with open(pkgmeta_file, 'r') as f:
52+
exec(f.read(), pkgmeta)
5253

5354
# The version info for the project you're documenting, acts as replacement for
5455
# |version| and |release|, also used in various other places throughout the

0 commit comments

Comments
 (0)