Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lock docs dependencies; build docs with recent Sphinx version #938

Merged
merged 1 commit into from
Jun 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ __pycache__
*~
.venv
venv
/docsenv
.vscode
.coverage
/.tox
Expand Down
13 changes: 10 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
version: 2 # required
formats: [] # i.e. no extra formats (for now)
version: 2

python:
version: "3.8"
install:
- requirements: docs/requirements.txt

build:
os: ubuntu-22.04
tools:
python: "3.11"

sphinx:
configuration: docs/conf.py
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# -- Project information -----------------------------------------------------

project = 'The Operator Framework'
copyright = '2019-2020, Canonical Ltd.'
copyright = '2019-2023, Canonical Ltd.'
author = 'Canonical Ltd'


Expand Down Expand Up @@ -88,7 +88,7 @@
# 'signature' – Show typehints as its signature (default)
# 'description' – Show typehints as content of function or method
# 'none' – Do not show typehints
autodoc_typehints = 'description'
autodoc_typehints = 'signature'

# This value selects what content will be inserted into the main body of an
# autoclass directive. The possible values are:
Expand Down
3 changes: 3 additions & 0 deletions docs/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-r ../requirements.txt
sphinx==6.2.1 # Latest sphinx_rtd_theme doesn't yet support sphinx 7.x
sphinx_rtd_theme==1.2.1
30 changes: 25 additions & 5 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
-r ../requirements.txt

sphinx
sphinx_rtd_theme

alabaster==0.7.13
Babel==2.12.1
certifi==2023.5.7
charset-normalizer==3.1.0
docutils==0.18.1
idna==3.4
imagesize==1.4.1
Jinja2==3.1.2
MarkupSafe==2.1.2
packaging==23.1
Pygments==2.15.1
PyYAML==6.0
requests==2.31.0
snowballstemmer==2.2.0
Sphinx==6.2.1
sphinx-rtd-theme==1.2.1
sphinxcontrib-applehelp==1.0.4
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.1
sphinxcontrib-jquery==4.1
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
urllib3==2.0.2
websocket-client==1.5.2
12 changes: 12 additions & 0 deletions docs/update_requirements.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# Update and freeze docs/requirements.txt from docs/requirements.in

set -ex

python3 -m venv docsenv
source docsenv/bin/activate
pip install -r docs/requirements.in
pip freeze >docs/requirements.txt
deactivate
rm -rf docsenv