Skip to content

Commit

Permalink
Merge pull request #19 from bmcfee/doc-modernize
Browse files Browse the repository at this point in the history
modernizing sphinx config
  • Loading branch information
bmcfee authored Feb 5, 2025
2 parents 70cdc15 + 166272f commit 382ecdf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
9 changes: 6 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ sphinx:
# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
# python:
# install:
# - requirements: docs/requirements.txt
python:
install:
- method: pip
path: .
extra_requirements:
- docs
2 changes: 1 addition & 1 deletion docs/changes.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Changes
=======

v0.2.0
v1.0.0
------
- Removed support for python < 3.8
- Modernized to support python 3.13
Expand Down
11 changes: 4 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('../'))
from presets import __version__ as release
version = release

# -- General configuration ------------------------------------------------

Expand Down Expand Up @@ -54,20 +56,15 @@

# General information about the project.
project = u'presets'
copyright = u'2015, Brian McFee'
copyright = u'2015--2025, Brian McFee'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
import imp
PRESETS = imp.load_source('presets.version', '../presets/version.py')

version = PRESETS.version

# The full version, including alpha/beta/rc tags.
release = version

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -112,7 +109,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
#html_theme = 'default'

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

0 comments on commit 382ecdf

Please sign in to comment.