mirror of https://github.com/scrapy/scrapy.git
Added notice to documentation, pointing dev to stable versions and viceversa
This commit is contained in:
parent
544308d6d0
commit
db07a9a938
|
|
@ -638,6 +638,19 @@ img.logo {
|
|||
border: 0;
|
||||
}
|
||||
|
||||
.docversion {
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.devdoc {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.stabledoc {
|
||||
color: #777;
|
||||
}
|
||||
|
||||
/* :::: PRINT :::: */
|
||||
@media print {
|
||||
div.document,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,25 @@
|
|||
{% extends "layout.html" %}
|
||||
{% block body %}
|
||||
<div class="deck">
|
||||
|
||||
<div class="docversion">
|
||||
{% if version == "0.11" %}
|
||||
<p class="devdoc">
|
||||
This document is for Scrapy's development version, which can be
|
||||
significantly different from previous releases. Get old docs here:
|
||||
<a href="http://doc.scrapy.org/0.10/{{ pagename }}{{ file_suffix }}">0.10</a>,
|
||||
<a href="http://doc.scrapy.org/0.9/{{ pagename }}{{ file_suffix }}">0.9</a>.
|
||||
<a href="http://doc.scrapy.org/0.8/{{ pagename }}{{ file_suffix }}">0.8</a>.
|
||||
<a href="http://doc.scrapy.org/0.7/{{ pagename }}{{ file_suffix }}">0.7</a>.
|
||||
</p>
|
||||
{% else %}
|
||||
<p class="stabledoc">
|
||||
This document describes Scrapy {{ version }}. For development docs,
|
||||
<a href="http://doc.scrapy.org/dev/{{ pagename }}{{ file_suffix }}">go here</a>.
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{ body }}
|
||||
{% endblock %}
|
||||
|
|
@ -42,7 +42,7 @@ master_doc = 'index'
|
|||
|
||||
# General information about the project.
|
||||
project = u'Scrapy'
|
||||
copyright = u'2008-2010, Insophia'
|
||||
copyright = u'2008-2011, Insophia'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
|
|
@ -51,12 +51,11 @@ copyright = u'2008-2010, Insophia'
|
|||
# The short X.Y version.
|
||||
try:
|
||||
import scrapy
|
||||
version = scrapy.__version__
|
||||
version = '.'.join(map(str, scrapy.version_info[:2]))
|
||||
release = scrapy.__version__
|
||||
except ImportError:
|
||||
version = ''
|
||||
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = version
|
||||
release = ''
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
|
|
|||
Loading…
Reference in New Issue