Skip to content

Commit

Permalink
Merge pull request #321 from tovrstra/fix-rtd
Browse files Browse the repository at this point in the history
Fix documentation build issues
  • Loading branch information
tovrstra authored Jun 4, 2024
2 parents 6435bc3 + 034164e commit 35fd980
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 11 deletions.
28 changes: 28 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"


# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
# builder: "dirhtml"
# Fail on all warnings to avoid broken references
# fail_on_warning: true


# 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
6 changes: 1 addition & 5 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down Expand Up @@ -207,10 +207,6 @@
# A list of files that should not be packed into the epub file.
epub_exclude_files = ["search.html"]

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {"https://docs.python.org/": None}


# -- Configuration for autodoc extensions ---------------------------------

autodoc_default_options = {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [
dynamic = ["version"]

[project.optional-dependencies]
dev = ["pytest", "pytest-xdist"]
dev = ["pytest", "pytest-xdist", "sphinx", "sphinx_autodoc_typehints", "sphinx-rtd-theme"]

[project.urls]
Documentation = "https://iodata.readthedocs.io/en/latest/"
Expand Down
5 changes: 0 additions & 5 deletions readthedocs.yml

This file was deleted.

0 comments on commit 35fd980

Please sign in to comment.