Skip to content

Commit

Permalink
readthedocs: Add the configuration file.
Browse files Browse the repository at this point in the history
Since last month ReadTheDocs only supports building with a new
configuration file provided in the repository itself:
  https://blog.readthedocs.com/migrate-configuration-v2/

So, all our documentation builds are failing for quite some time.

Add the configuration file to unblock documentation updates.

Need to remove the upper restriction on the sphinx version.
sphinx 2.0 is very old at this point and pip fails to install
it along with other dependencies on the rtd server.

Note: Sphinx 2.0 moved from HTML4 to HTML5 renderer and tables
no longer have borders by default.  That should be addressed
via CSS file in the ovs-sphinx-theme.

Acked-by: Aaron Conole <[email protected]>
Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
igsilya committed Oct 25, 2023
1 parent a413fed commit e388bd7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# .readthedocs.yaml
# Read the Docs configuration file.
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details.

# Required.
version: 2

# Set the OS, Python version, etc.
build:
os: ubuntu-22.04
tools:
python: "3.12"

# Build documentation in the "Documentation/" directory with Sphinx.
sphinx:
configuration: Documentation/conf.py

# Build all formats: HTML, PDF, ePub.
formats: all

# Declare the Python requirements.
python:
install:
- requirements: Documentation/requirements.txt
2 changes: 1 addition & 1 deletion Documentation/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sphinx>=1.1,<2.0
sphinx>=1.1
ovs_sphinx_theme>=1.0,<1.1
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ EXTRA_DIST = \
.cirrus.yml \
.editorconfig \
.github/workflows/build-and-test.yml \
.readthedocs.yaml \
appveyor.yml \
boot.sh \
poc/builders/Vagrantfile \
Expand Down

0 comments on commit e388bd7

Please sign in to comment.