Skip to content

Commit

Permalink
Parallel doc lints (celery#4435)
Browse files Browse the repository at this point in the history
* Bump sphinx.

* Update copyright year. Mark the celerydocs & the celery.contrib.sphinx extensions as read_parallel_safe.

* Install from git for now :(

* Fix flake8 errors.
  • Loading branch information
Omer Katz authored Dec 11, 2017
1 parent 83cecb8 commit ebd98fa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions celery/contrib/sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,7 @@ def setup(app):
app.add_autodocumenter(TaskDocumenter)
app.add_directive_to_domain('py', 'task', TaskDirective)
app.add_config_value('celery_task_prefix', '(task)', True)

return {
'parallel_read_safe': True
}
4 changes: 4 additions & 0 deletions docs/_ext/celerydocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,7 @@ def setup(app):
rolename=bytes_if_py2('event'),
indextemplate=bytes_if_py2('pair: %s; event'),
)

return {
'parallel_read_safe': True
}
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
github_project='celery/celery',
author='Ask Solem & contributors',
author_name='Ask Solem',
copyright='2009-2016',
copyright='2009-2017',
publisher='Celery Project',
html_logo='images/celery_512.png',
html_favicon='images/favicon.ico',
Expand Down
4 changes: 2 additions & 2 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sphinx_celery>=1.3
Sphinx==1.5.1
git+https://github.com/celery/sphinx_celery.git
Sphinx==1.6.5
typing
-r extras/sqlalchemy.txt

0 comments on commit ebd98fa

Please sign in to comment.