Przeglądaj źródła

[3.0] Make sure docs can be built

Ask Solem 11 lat temu
rodzic
commit
cbb9cfc764
2 zmienionych plików z 4 dodań i 12 usunięć
  1. 3 12
      docs/.templates/page.html
  2. 1 0
      docs/conf.py

+ 3 - 12
docs/.templates/page.html

@@ -2,20 +2,11 @@
 {% block body %}
 <div class="deck">
 
-    {% if version == "3.1" or version == "4.0" %}
-        <p class="developmentversion">
-        This document is for Celery's development version, which can be
-        significantly different from previous releases. Get old docs here:
-
-        <a href="http://docs.celeryproject.org/en/latest/{{ pagename }}{{ file_suffix }}">3.0</a>.
-        </p>
-        {% else %}
         <p>
-        This document describes Celery {{ version }}. For development docs,
-        <a href="http://docs.celeryproject.org/en/master/{{ pagename }}{{ file_suffix }}">go here</a>.
+        This document describes an older version of Celery ({{ version }}).
+        For the latest stable version please
+        <a href="http://docs.celeryproject.org/en/latest/{{ pagename }}{{ file_suffix }}">go here</a>.
         </p>
-    {% endif %}
-
 </div>
     {{ body }}
 {% endblock %}

+ 1 - 0
docs/conf.py

@@ -13,6 +13,7 @@ this = os.path.dirname(os.path.abspath(__file__))
 # If your extensions are in another directory, add it here. If the directory
 # is relative to the documentation root, use os.path.abspath to make it
 # absolute, like shown here.
+sys.path.insert(0, os.pardir)
 sys.path.append(os.path.join(os.pardir, "tests"))
 sys.path.append(os.path.join(this, "_ext"))
 import celery