Skip to content

Commit

Permalink
docs: support sphinx v3
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Oct 5, 2020
1 parent e9c647d commit 7152de3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
sudo apt-get update -q
sudo apt-get install -y libcairo2-dev
python -m pip install --upgrade setuptools
python -m pip install --upgrade pytest flake8 "sphinx<3" sphinx_rtd_theme coverage hypothesis attrs wheel
python -m pip install --upgrade pytest flake8 sphinx sphinx_rtd_theme coverage hypothesis attrs wheel
if [[ "${{ matrix.python-version }}" != "pypy3" ]]; then
python -m pip install --upgrade mypy
fi
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install --upgrade wheel
python -m pip install --upgrade setuptools
python -m pip install --upgrade pytest flake8 "sphinx<3" sphinx_rtd_theme coverage hypothesis attrs
python -m pip install --upgrade pytest flake8 sphinx sphinx_rtd_theme coverage hypothesis attrs
python -m pip install --upgrade mypy || true
python -m pip install --upgrade pygame
python -m coverage run --branch setup.py test
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install --upgrade wheel
python -m pip install --upgrade setuptools
python -m pip install --upgrade pytest flake8 "sphinx<3" sphinx_rtd_theme coverage hypothesis attrs
python -m pip install --upgrade pytest flake8 sphinx sphinx_rtd_theme coverage hypothesis attrs
python -m pip install --upgrade mypy || true
python -m pip install --upgrade pygame
python -m coverage run --branch setup.py test
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
python3 -m venv ../venv
source ../venv/bin/activate
python -m pip install --upgrade setuptools
python -m pip install --upgrade pytest flake8 "sphinx<3" sphinx_rtd_theme coverage hypothesis attrs wheel
python -m pip install --upgrade pytest flake8 sphinx sphinx_rtd_theme coverage hypothesis attrs wheel
python -m pip install --upgrade mypy || true
# run tests
python -m coverage run --branch setup.py test
Expand Down
12 changes: 10 additions & 2 deletions docs/pycairo_c_api.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. highlightlang:: c
.. highlight:: c


***************
Expand Down Expand Up @@ -106,7 +106,7 @@ Cairo Context
.. c:type:: PyTypeObject *PycairoContext_Type
.. c:macro:: cairo_t * PycairoContext_GET(PycairoContext *obj)
.. c:macro:: PycairoContext_GET(obj)
:param PycairoContext obj:
:returns: :any:`cairo_t` [transfer none]
Expand Down Expand Up @@ -419,3 +419,11 @@ See https://www.cairographics.org/manual/ for details.
cairo_font_options_t
cairo_path_t
cairo_font_face_t
CPython Types
=============
.. c:type:: PyObject
.. c:type:: PyTypeObject

0 comments on commit 7152de3

Please sign in to comment.