Robert Rollins
11793f88c5
Changed indentation on all code samples to 4 spaces.
...
Most of the samples were already 4-space indented, but a few were using 2-space,
which is both inconsistent and, when it happened with Python code samples,
incompatible with PEP8.
2016-04-28 10:57:22 +01:00
Robert Rollins
6446c42132
Various typo fixes and grammar/clarity improvements.
2016-03-10 15:11:41 +00:00
Matt Westcott
04fdd5f352
Remove Django 1.7 support from documentation, requirements and CI definitions
2016-01-05 17:38:29 +00:00
Matt Westcott
9e124cb9b6
Remove use of value.bound_blocks from basic StructBlock template example.
...
This hasn't been necessary since #1360 was merged, and the new 'BoundBlocks and values' section covers it much better.
2015-12-11 12:48:37 +00:00
Matt Westcott
0e34282646
Add section about BoundBlocks and values
2015-12-11 12:48:37 +00:00
Rich Brennan
2ad3985d67
Move content_panels inside BlogPage definition.
2015-11-19 17:16:02 +00:00
Matt Westcott
f668922893
Add a can_choose_root flag to PageChooserBlock
2015-11-02 15:12:42 +00:00
Matt Westcott
2eb4b4c2c1
Release notes for #1810 , #1835 , #1812
2015-10-20 11:16:09 +01:00
Karl Hobley
26889ba128
Merge pull request #1812 from gasman/feature/block-template-context
...
Allow block subclasses to pass extra context variables to templates
2015-10-19 09:29:59 +01:00
Karl Hobley
6eae465e64
Renamed "self" template variable to "page" in docs
2015-10-13 09:52:16 +01:00
Matt Westcott
46845112e2
Allow block subclasses to pass extra context variables to templates
...
Block now defines a get_context method, which subclasses can override
in the same way as we can for pages.
2015-10-12 13:25:56 +01:00
Tim Heap
bc6b5a8a6c
Normalise all code blocks in the docs
...
All `.. code::` instances have been changed to use `.. code-block::`,
and have been properly formatted. The syntax names have been normalised,
so all django templates use the `html+django` syntax, shell commands use
`sh`, and plain text uses `text`.
2015-10-05 16:55:58 +01:00
Matt Westcott
8bd6d65a20
Support overriding form classname and template within StructBlock
2015-06-16 13:09:33 +01:00
Matt Westcott
fddeb4308b
Documentation for migrating a RichTextField to StreamField
2015-06-12 20:33:19 +01:00
Karl Hobley
2e0dcc88d5
Moved some of the reference docs into topics
2015-05-28 12:57:00 +01:00