Browse Source

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.
Omer Katz 7 years ago
parent
commit
ebd98fa4d3
4 changed files with 11 additions and 3 deletions
  1. 4 0
      celery/contrib/sphinx.py
  2. 4 0
      docs/_ext/celerydocs.py
  3. 1 1
      docs/conf.py
  4. 2 2
      requirements/docs.txt

+ 4 - 0
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
+    }

+ 4 - 0
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
+    }

+ 1 - 1
docs/conf.py

@@ -13,7 +13,7 @@ globals().update(conf.build_config(
     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',

+ 2 - 2
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