From ebd98fa4d36bb8003c2f46dbd16e9888af13720f Mon Sep 17 00:00:00 2001 From: Omer Katz Date: Mon, 11 Dec 2017 11:21:56 +0200 Subject: [PATCH] Parallel doc lints (#4435) * 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. --- celery/contrib/sphinx.py | 4 ++++ docs/_ext/celerydocs.py | 4 ++++ docs/conf.py | 2 +- requirements/docs.txt | 4 ++-- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/celery/contrib/sphinx.py b/celery/contrib/sphinx.py index d6573f4f5f5..fd5e2c64662 100644 --- a/celery/contrib/sphinx.py +++ b/celery/contrib/sphinx.py @@ -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 + } diff --git a/docs/_ext/celerydocs.py b/docs/_ext/celerydocs.py index 2afdf464686..c81c2df6f23 100644 --- a/docs/_ext/celerydocs.py +++ b/docs/_ext/celerydocs.py @@ -185,3 +185,7 @@ def setup(app): rolename=bytes_if_py2('event'), indextemplate=bytes_if_py2('pair: %s; event'), ) + + return { + 'parallel_read_safe': True + } diff --git a/docs/conf.py b/docs/conf.py index aee10ba5ace..d7e121c9bd4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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', diff --git a/requirements/docs.txt b/requirements/docs.txt index 77f0f08a79f..4a1990005f3 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -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