diff options
| author | Curtis Maloney <curtis@tinbrain.net> | 2018-09-11 03:00:34 +1000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-09-10 13:00:34 -0400 |
| commit | c49ea6f5911296dcb40190c905e38b43cdc7c7a3 (patch) | |
| tree | 56d6341ed09e5d77cd3361bcc5275eab5733db4a /docs/intro/tutorial06.txt | |
| parent | f8ff529ee32c79b270176f5e8d7a3f6ef048ac31 (diff) | |
Refs #20910 -- Replaced snippet directive with code-block.
Diffstat (limited to 'docs/intro/tutorial06.txt')
| -rw-r--r-- | docs/intro/tutorial06.txt | 12 |
1 files changed, 6 insertions, 6 deletions
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; |
