Ver Fonte

Use intersphinx

Ask Solem há 13 anos atrás
pai
commit
c17600e450

+ 1 - 1
celery/utils/encoding.py

@@ -1,6 +1,6 @@
 """
 celery.utils.encoding
-====================
+=====================
 
 Utilities to encode text, and to safely emit text from running
 applications without crashing with the infamous :exc:`UnicodeDecodeError`

+ 9 - 0
docs/conf.py

@@ -33,9 +33,12 @@ app.conf.update(BROKER_TRANSPORT="memory",
 extensions = ['sphinx.ext.autodoc',
               'sphinx.ext.coverage',
               'sphinx.ext.pngmath',
+              'sphinx.ext.intersphinx',
               'sphinxcontrib.issuetracker',
               'celerydocs']
 
+html_show_sphinx = False
+
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['.templates']
 
@@ -63,6 +66,12 @@ exclude_trees = ['.build']
 # If true, '()' will be appended to :func: etc. cross-reference text.
 add_function_parentheses = True
 
+intersphinx_mapping = {
+        "http://docs.python.org/dev": None,
+        "http://kombu.readthedocs.org/en/latest/": None,
+        "http://django-celery.readthedocs.org/en/latest": None,
+}
+
 # The name of the Pygments (syntax highlighting) style to use.
 pygments_style = 'trac'
 

+ 0 - 5
docs/internals/reference/celery.datastructures.rst

@@ -54,8 +54,3 @@
     .. autoclass:: LRUCache
         :members:
         :undoc-members:
-
-    Functions
-    ---------
-
-    .. autofunction:: consume_queue

+ 1 - 1
docs/userguide/remote-tasks.rst

@@ -109,7 +109,7 @@ task being executed::
             [f2cc8efc-2a14-40cd-85ad-f1c77c94beeb] processed: 100
 
 Since applying tasks can be done via HTTP using the
-`djcelery.views.apply` view, executing tasks from other languages is easy.
+:func:`djcelery.views.apply` view, executing tasks from other languages is easy.
 For an example service exposing tasks via HTTP you should have a look at
 `examples/celery_http_gateway` in the Celery distribution:
 http://github.com/ask/celery/tree/master/examples/celery_http_gateway/