Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[djangoproject.com] Correctly display the doc version in the sidebar …

…breadcrumbs.

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@10072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a7c1ccc2936012c255abbbbfca9bcd209b179ae9 1 parent afb08aa
jacob authored
Showing with 13 additions and 1 deletion.
  1. +1 −1  djangodocs/templates/docs/doc.html
  2. +12 −0 fabfile.py
View
2  djangodocs/templates/docs/doc.html
@@ -118,7 +118,7 @@ <h2 id="comments">Questions/Feedback</h2>
<ul>
{% block breadcrumbs %}
<li>
- <a href="{% url document-index lang=lang, version=version %}">{{ env.docstitle }}</a>
+ <a href="{% url document-index lang=lang, version=version %}">Django {{ version }} documentation</a>
{% for p in doc.parents %}
<ul><li><a href="{{ p.link }}">{{ p.title|safe }}</a>
{% endfor %}
View
12 fabfile.py
@@ -0,0 +1,12 @@
+config.fab_hosts = ['djangoproject.com']
+
+def deploy():
+ sudo("cd /home/djangoproject.com && svn up")
+ reload()
+
+def reload():
+ sudo("invoke-rc.d apache2 reload")
+
+def flush_cache():
+ sudo("invoke-rc.d memcached restart")
+
Please sign in to comment.
Something went wrong with that request. Please try again.