From 1853e2dbf2e290ec04e3389d523bbe4bad94a42e Mon Sep 17 00:00:00 2001 From: Curtis Maloney Date: Tue, 11 Sep 2018 03:00:34 +1000 Subject: [2.1.x] Refs #20910 -- Replaced snippet directive with code-block. Backport of c49ea6f5911296dcb40190c905e38b43cdc7c7a3 from master --- docs/intro/tutorial06.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/intro/tutorial06.txt') diff --git a/docs/intro/tutorial06.txt b/docs/intro/tutorial06.txt index dff3bc1e2c..db1f1f47fd 100644 --- a/docs/intro/tutorial06.txt +++ b/docs/intro/tutorial06.txt @@ -56,8 +56,8 @@ reference the path for templates. Put the following code in that stylesheet (``polls/static/polls/style.css``): -.. snippet:: css - :filename: polls/static/polls/style.css +.. code-block:: css + :caption: polls/static/polls/style.css li a { color: green; @@ -65,8 +65,8 @@ Put the following code in that stylesheet (``polls/static/polls/style.css``): Next, add the following at the top of ``polls/templates/polls/index.html``: -.. snippet:: html+django - :filename: polls/templates/polls/index.html +.. code-block:: html+django + :caption: polls/templates/polls/index.html {% load static %} @@ -88,8 +88,8 @@ called ``background.gif``. In other words, put your image in Then, add to your stylesheet (``polls/static/polls/style.css``): -.. snippet:: css - :filename: polls/static/polls/style.css +.. code-block:: css + :caption: polls/static/polls/style.css body { background: white url("images/background.gif") no-repeat; -- cgit v1.3