diff options
| author | M Nasimul Haque <nasim.haque@gmail.com> | 2013-09-23 23:23:47 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-14 13:00:57 -0400 |
| commit | d07d6ae1167f93f2e88b3743c070003a66a31b35 (patch) | |
| tree | 7e492b8bed053b01f728a10702276895cf47c8a2 /docs/intro/tutorial06.txt | |
| parent | e077224f4ad69a68ae58a373ef69941272d3656c (diff) | |
Fixed #20910 -- Added a "snippet" sphinx directive to allow prefixing a filename.
Thanks Marc Tamlyn for the suggestion.
Diffstat (limited to 'docs/intro/tutorial06.txt')
| -rw-r--r-- | docs/intro/tutorial06.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/intro/tutorial06.txt b/docs/intro/tutorial06.txt index 2a1567915d..a88c33026a 100644 --- a/docs/intro/tutorial06.txt +++ b/docs/intro/tutorial06.txt @@ -56,7 +56,8 @@ reference the path for templates. Put the following code in that stylesheet (``polls/static/polls/style.css``): -.. code-block:: css +.. snippet:: css + :filename: polls/static/polls/style.css li a { color: green; @@ -64,7 +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``: -.. code-block:: html+django +.. snippet:: html+django + :filename: polls/templates/polls/index.html {% load staticfiles %} @@ -88,7 +90,8 @@ called ``background.gif``. In other words, put your image in Then, add to your stylesheet (``polls/static/polls/style.css``): -.. code-block:: css +.. snippet:: css + :filename: polls/static/polls/style.css body { background: white url("images/background.gif") no-repeat right bottom; |
