0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
Commit Graph

21 Commits

Author SHA1 Message Date
Tom Dyson
703c9984c6 Make /admin a link in the Getting Started tutorial 2016-07-20 09:41:03 +01:00
Matt Westcott
b39ff4a134 add note about Wagtail <=1.4 syntax for search_fields 2016-05-02 18:42:21 +01:00
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
Tim Heap
6bd168580e Change Indexed.search_fields to be a listish thing
Indexed.search_fields used to be a tuple. This is incorrect, and it
should have been a list.  Changing it to be a list now would be a
backwards incompatible change, as people do

    search_fields = Page.search_fields + (
        SearchField('body')
    )

Adding a tuple to the end of a list causes an error, so this would
cause all old code that used tuples to throw an error. This is not
great.

A new ThisShouldBeAList class, which subclasses list, has been added.
It additionally allows tuples to be added to it, as in the above
behaviour, but will raise a deprecation warning if someone does this.
Old code that uses tuples will continue to work, but raise a deprecation
warning.

See #2310
2016-03-24 21:05:09 +00:00
Loïc Teixeira
33aad3957f Fix internal links with anchors
Generating links with `link text <./path/to/doc#anchor>`__ does not work for html.
It produces a link to `./path/to/doc#anchor` instead of `./path/to/doc.html#anchor`.

It would be tempting to add `.html` before `#` but would likely cause some more issues
when generating the documentation as pdf or epub.

References on the other hand will work regardless of the output format.
2016-03-06 21:05:05 +00:00
Karl Hobley
95ff74feeb Moved advanced image topics into advanced topics 2016-01-27 11:27:16 +00:00
Matt Westcott
19f370c20a Add pointers to the new integrating-with-Django docs 2015-11-10 21:45:21 +00:00
John Heasly
d87d737f52 Need to flip order of class creation
Need to flip order of creating `BlogIndexRelatedLink` and `BlogIndexPage`, otherwise `BlogIndexRelatedLink` references `BlogIndexPage` before it's been created and you get:
```bash
ERRORS:
blog.BlogIndexRelatedLink.page: (fields.E300) Field defines a relation with model 'BlogIndexPage', which is either not installed, or is abstract.
```
2015-10-14 17:29:19 -07:00
Matt Westcott
30d5b62eed Fix broken link to topics/pages 2015-10-14 17:28:49 +01:00
Karl Hobley
6eae465e64 Renamed "self" template variable to "page" in docs 2015-10-13 09:52:16 +01:00
Josh Barr
53773424ff added clarification about template tags to tutorial 2015-10-05 22:01:03 +13:00
Benedikt Breinbauer
ea77a0f7b9 Fix typo templage > template 2015-08-03 15:35:32 +02:00
Matt Westcott
3c8bcbd3be de-capitalise 'Body field' 2015-07-07 16:12:43 +01:00
Matt Westcott
fbb153fbe4 Code fixes and clarifications for tutorial - fixes #1473 2015-07-07 16:12:37 +01:00
ryneeverett
bfe6fb45cc Add basic blog template to tutorial.
Seems like an oversight since they soon tell you to "adjust" it.
2015-06-21 18:39:47 -04:00
Matt Westcott
4a84560a95 Add requirements.txt to project template.
While the project template is intended to be as generic as possible, and not everyone will want to use requirements.txt (some would prefer to use setup.py to define requirements, for example), we need some way to formally indicate that the project template is specific to Django 1.8.
2015-06-17 17:00:29 +01:00
Matt Westcott
6b3ddde533 Use correct template tags for {{ self.intro }}
Fixes #1404
2015-06-15 18:42:34 +01:00
Dan Braghis
d830e07eca Replace missed slugify example 2015-06-02 16:06:03 +01:00
Dan Braghis
8d3b79f8fc Further tweaks and cleanup 2015-06-02 16:03:57 +01:00
Dan Braghis
8c0acb9f6c Tweaks based on feedback 2015-06-01 16:23:13 +01:00
Dan Braghis
39ca18263a Add the Wagtail tutorial to docs 2015-06-01 15:30:07 +01:00