Skip to content

Commit

Permalink
Merge pull request #466 from Onoyiza/docs/newer_sphinx
Browse files Browse the repository at this point in the history
Docs/newer sphinx
  • Loading branch information
pgleeson authored Jul 5, 2023
2 parents feb499d + 534d69a commit 782130a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ jobs:
dot -V
python -m pytest -v -m "tensorflow" tests/
- name: Build Documentation
run: |
cd docs
python generate.py
cd sphinx
make clean
make html
- name: Final version info for optional installed packages
run: |
pip list
Expand Down
4 changes: 2 additions & 2 deletions docs/sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ def setup(app):
"pytest": ("https://docs.pytest.org/en/stable", None),
}

from sphinx.ext.autodoc import ClassLevelDocumenter, InstanceAttributeDocumenter
from sphinx.ext.autodoc import ClassLevelDocumenter, AttributeDocumenter


def add_directive_header(self, sig):
ClassLevelDocumenter.add_directive_header(self, sig)


InstanceAttributeDocumenter.add_directive_header = add_directive_header
AttributeDocumenter.add_directive_header = add_directive_header


import os
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ test =
typing_extensions;python_version<'3.8'

optional =
Sphinx~=3.0
Sphinx
recommonmark>=0.5.0
nbsphinx
sphinx_copybutton
Expand Down

0 comments on commit 782130a

Please sign in to comment.