Skip to content

Commit

Permalink
Add readthedocs config with docs requirements (#1391)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeSneyders authored Jul 8, 2021
1 parent 3810da7 commit e30971c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2

sphinx:
configuration: docs/conf.py

python:
version: 3.7
install:
- method: pip
path: .
extra_requirements:
- docs
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def read_version(package):
tests_require.append('pytest-aiohttp')
tests_require.append('aiohttp-remotes')

docs_require = [
'sphinx-autoapi==1.8.1'
]


class PyTest(TestCommand):

Expand Down Expand Up @@ -98,7 +102,8 @@ def readme():
'tests': tests_require,
'flask': flask_require,
'swagger-ui': swagger_ui_require,
'aiohttp': aiohttp_require
'aiohttp': aiohttp_require,
'docs': docs_require
},
cmdclass={'test': PyTest},
test_suite='tests',
Expand Down

0 comments on commit e30971c

Please sign in to comment.