[3.0] 3558ace Format all code examples
Tollef Fog Heen
tfheen at varnish-cache.org
Thu Oct 6 11:25:22 CEST 2011
commit 3558ace01d671a2bc4dea063c1a041329c28974f
Author: Andreas Plesner Jacobsen <apj at mutt.dk>
Date: Thu Sep 22 11:10:12 2011 +0200
Format all code examples
diff --git a/doc/sphinx/installation/upgrade.rst b/doc/sphinx/installation/upgrade.rst
index eda1515..0ed4f9f 100644
--- a/doc/sphinx/installation/upgrade.rst
+++ b/doc/sphinx/installation/upgrade.rst
@@ -20,11 +20,11 @@ To simplify strings, the %-encoding has been removed. If you need non-printable
``log`` moved to the std vmod
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-``log`` has moved to the std vmod:
+``log`` has moved to the std vmod::
log "log something";
-becomes
+becomes::
import std;
std.log("log something");
@@ -34,11 +34,11 @@ You only need to import std once.
purges are now called bans
~~~~~~~~~~~~~~~~~~~~~~~~~~
-``purge()`` and ``purge_url()`` are now respectively ``ban()`` and ``ban_url()``, so you should replace all occurences:
+``purge()`` and ``purge_url()`` are now respectively ``ban()`` and ``ban_url()``, so you should replace all occurences::
purge("req.url = " req.url);
-becomes
+becomes::
ban("req.url = " + req.url);
@@ -84,22 +84,22 @@ becomes::
``req.hash`` is replaced with ``hash_data()``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-You no longer append to the hash with ``+=``, so
+You no longer append to the hash with ``+=``, so::
set req.hash += req.url;
-becomes
+becomes::
hash_data(req.url);
``esi`` is replaced with ``beresp.do_esi``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-You no longer enable ESI with ``esi``, so
+You no longer enable ESI with ``esi``, so::
esi;
-in ``vcl_fetch`` becomes
+in ``vcl_fetch`` becomes::
set beresp.do_esi = true;
More information about the varnish-commit
mailing list