Wykres commitów

3652 Commity (3a9a2815c0953aa7d4d6e9b5f0fbeae677d027c7)

Autor SHA1 Wiadomość Data
Matt Westcott 5a11ce0c5c Add release note section for 2.15 2021-07-13 17:10:47 +01:00
Matt Westcott 7646a63873 Other features -> New features 2021-07-13 13:42:32 +01:00
Matt Westcott 2bec229e12 Correctly handle embeds inside inline styles/entities in richtext contentstate conversion (#7338)
Fixes #4602 as per https://github.com/wagtail/wagtail/issues/4602#issuecomment-479539444 (option 2).

Previously, given HTML input such as:

    <p>
        <i>a bunch of text before <embed alt="somepic" embedtype="image" format="fullwidth" id="1"/> after</i>
    </p>

the `<embed>` would start a new block, but the converter would keep hold of references to currently-open tags such as the `<i>`, so that when the corresponding `</i>` tag was encountered, it could match it up to the opening tag and fill in the 'length' field on the resulting InlineStyleRange object. However, since the span length is calculated based on the text content of the _current_ block (which is now "after"), it would obtain the wrong result - or, when there is no content between the embed and the closing tag (and thus no current block), would throw the exception `'NoneType' object has no attribute 'text'`.

In this new approach, when the embed is encountered, the current block is closed _along with all of its styles and entities_, causing the lengths of those spans to be filled in correctly. After inserting the embed, the current block is then set to a replica of the previous block with all those styles and entities reopened, so that when the closing tag is finally encountered, the span length is correctly set based on the new 'after' block.
2021-07-13 11:20:10 +01:00
Matt Westcott c44c0a9800 Release note for #7324 in 2.13.4 2021-07-13 11:04:34 +01:00
Matt Westcott afe7813d92 Release note for #7324 in 2.12.6 2021-07-13 11:03:57 +01:00
Nick Smith 1d03c36421 Change some word choices in the docs
This replaces several US English dialectical uses of _regular_ with
British English equivalents _normal_ or _standard_. This is the result
of a search of the docs for the string 'regular', rather than due to any
US English seen in the user interface.

This search also found one use of _regularly_ where _often_ was closer
to the intended meaning, a change which is less about dialect than about
word choice.
2021-07-13 10:51:46 +01:00
Nick Smith ab7b0d81d6 Change wording of docs and UI for page aliases
This replaces several US English dialectical uses of _regular_ with
British English equivalents, chiefly _ordinary_.
2021-07-13 10:51:46 +01:00
Thibaud Colas d6cd16f001 Add separate mention about known issues to editor guide 2021-07-12 18:20:54 +01:00
Thibaud Colas d2c27844a6 Update accessibility targets with links to known issues 2021-07-12 18:20:54 +01:00
Matt Westcott be857cc5e9 Release note / Upgrade consideration note for #7292 2021-07-12 16:55:21 +01:00
Thomas Kremmel 9b387625ca docs: add facebook and instagram oembed change docs 2021-07-12 15:31:31 +01:00
Coen van der Kamp 3f24beaae6 Add background information on multi site, multi instance and multi tenancy (#7228) 2021-07-09 17:05:28 +01:00
Karl Hobley 7d237092d1 Fix crash when user copies a page from a section they can't publish (#7313) 2021-07-09 17:01:58 +01:00
Andrew Stone ded8bacc5d Use DATETIME_FORMAT for localization in templates (#7321) 2021-07-09 16:33:02 +01:00
Matt Westcott e0ac8ae73d Support non-block validation errors on ListBlock (#7322) 2021-07-09 16:24:11 +01:00
Kevin Gutiérrez 4eb7c2c019 Change spin animation name (#7299)
The animation name `spin` is too generic, and it can be easily override by other libraries (eg. the code used in (django-json-widget)[https://github.com/jmrivas86/django-json-widget/blob/master/django_json_widget/static/dist/jsoneditor.min.css]) or by custom code, affecting the saving animation.
2021-07-08 16:29:54 +01:00
Matt Westcott 60a3365ce2 Add Daniel Fairhead to contributors 2021-07-07 16:30:36 +01:00
Petr Dlouhý 3f260f4598 add google data studo to oEmbed providers 2021-07-06 21:17:46 +01:00
Dan Braghis f1ddaa9a46 Optimize images used in documentation
Ran through ImageOptim (with 100% quality)
Saved 3.6 MB out of 10.7 MB. 38.4% per file on average (up to 94.7%)
2021-07-06 21:14:33 +01:00
Vlad Podgurschi f54e7e1e41 Add instructions on copying and aliasing pages to the editor's guide #7010 2021-07-06 20:44:10 +01:00
Daniel fee65a9345 Preserve `features` & `editor` kwargs on RichTextField.clone() (#7272) 2021-07-06 17:20:12 +01:00
Matt Westcott b8680fbaf2 Give quoted and unquoted versions of pip install commands
Fixes #7312
2021-07-05 17:53:12 +01:00
Andrew Stone d6c92f30af Add missing block.super in extra_css/extra_js blocks (#7310) 2021-07-05 17:28:13 +01:00
Matt Westcott 9850ca7acf Fill in release date for 2.13.3 2021-07-05 11:08:36 +01:00
Matt Westcott d7bd351660 Release notes for #7306 and #7298 in 2.13.3 2021-07-02 12:10:59 +01:00
Scott Cranfill 9f3e6585af
Docs: Update sphinx-wagtail-theme to 5.0.4 (#7296) 2021-06-30 11:18:07 +02:00
Matt Westcott 990e91a85a Release note for #7295 in 2.13.3 2021-06-29 13:36:15 +01:00
Matt Westcott ac00945d3b Ensure comparison view picks up request/instance-specific EditHandler customisations (#7285)
Some edit handlers, such as the 'unofficial' PerUserContentPanels recipe from #4749, vary their field list according to the current request/instance by hooking into bind_to. This was not being called on the comparison view, meaning that when these edit handlers are in use, the field list was never getting populated and so the view was wrongly reporting no changes.

Note that the bind_to method also allows binding a form, which we do still skip (since the comparison view doesn't construct one).
2021-06-29 13:15:33 +01:00
Matt Westcott 1750c01d05 Add release notes for 2.13.3 2021-06-28 14:12:56 +01:00
Matt Westcott 9fad84b768 Refactor getChooserConfig / filterEntityData into subclasses of ModalWorkflowSource
This means we're not artificially forcing four different entity types into the same code path, and makes it possible to define new entity types outside of this module.

Also relax the eslint no-unused-vars to allow unused function parameters - having multiple classes following the same interface is a legitimate use of this.
2021-06-28 12:25:29 +01:00
Thibaud Colas 55fe295346 Remove docs for WAGTAILSEARCH_RESULTS_TEMPLATE, WAGTAILSEARCH_RESULTS_TEMPLATE_AJAX
The templates they would override have been removed from our search app, and copies placed in the project template.
2021-06-28 11:23:24 +01:00
Thibaud Colas 86b84a2010 Add headings for all settings 2021-06-28 11:23:24 +01:00
Storm Heg 3ee060ffd7
Add keyboard and screen reader support to Wagtail user bar (#6994). Fix #6108
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-06-26 20:53:44 +01:00
nmorduch 368049b835 Warn if StreamField doesn't use StreamFieldPanel (#7276) 2021-06-25 16:44:04 +01:00
Petr Dlouhý 50e4f5151d fix small youtube embed - allow to override max_width/max_height in EmbedBlock 2021-06-25 16:15:09 +01:00
Gordon Pendleton a64eb1f2f3 adjusted queries to ignore expired embeds (#7279) 2021-06-25 14:10:00 +01:00
Daniel 431549c427 incorrect field name 2021-06-22 14:34:16 +01:00
Matt Westcott 701fc099a4 Fix mention of documents being served through a Django view
Since Wagtail 2.7, this is no longer true by default when using remote storage - only when `WAGTAILDOCS_SERVE_METHOD` is explicitly set to `serve_view`.
2021-06-22 09:30:33 +01:00
Matt Westcott a28376a5c9 Give 404 pages a meaningful HTML title in project template (#7262)
Improve the generation of `<title>` tags as follows:

* use `page` in preference to `self` (self has been semi-deprecated ever since we added jinja2 support)
* Retrieve current site with `{% wagtail_site %}` rather than page.get_site so that it works on non-pages such as 404s
* Fill in the 'title' block on 404.html
2021-06-21 14:53:08 +01:00
Michael Brown 30ec4631d2 Disable image/document Update button on click (#6676) 2021-06-18 16:58:19 +01:00
Chris Pollard 5f7181e05d Fix: Prevent 500 error when filtering by content_type. (#6755) 2021-06-18 16:42:42 +01:00
Matt Westcott 87057501ac Add titlesonly to reference / topics top-level TOCs
This prevents duplicated headings in places where the second-level index page has intro blurbs for each subsection (and also means we're not listing out long multi-section pages in full in the index, but given how big these indexes are that's probably not a bad thing).
2021-06-18 15:17:24 +01:00
Jake Howard d5b955b0e4 Exclude root pages from `ModelAdmin`s (#7213)
Previously, this would fail, as `user_can_copy_obj` doesn't handle root
pages. Root pages also are special in a number of ways, and handling
copying is tricky and non-obvious.

If someone needs to show root pages (for some reason), they'll have to
special case them themselves.
2021-06-18 14:10:39 +01:00
Matt Westcott 74e3c1764f Release note for CVE-2021-32681 in Wagtail 2.13.2 2021-06-17 11:32:07 +01:00
Matt Westcott f108167111 Release note for CVE-2021-32681 in Wagtail 2.12.5 2021-06-17 11:31:34 +01:00
Matt Westcott 5954921cdf Release note for CVE-2021-32681 in Wagtail 2.11.8 2021-06-17 11:31:28 +01:00
Godswill Melford 212def6aa2 docs: update custom_account_settings.rst
Modify CustomSettingsForm import in hooks.py in user model usage
2021-06-16 10:19:03 +01:00
Thibaud Colas 14b0e807d6
Update guidance on alt text for images in rich text
This shortcoming was fixed and released in Wagtail 2.13
2021-06-11 14:11:55 +01:00
Chris Pollard c9a55d8b1b Fix tagged page page copy regression in _copy_m2m_relations (#7224)
Fixes #7230
2021-06-11 14:08:55 +01:00
Matt Westcott 0ef7a4ba05
Fix syntax error in StreamBlock example (#7238)
Fixes #7237
2021-06-04 19:04:38 +01:00
Matt Westcott 4abb53275b Fill in release date for 2.13.1 2021-06-01 15:51:13 +01:00
Matt Westcott 9f4b9f36c9 Release note for #7223 in 2.13.1 2021-06-01 14:05:04 +01:00
Matt Westcott 7c6db207a8 Release note for #7216 in 2.13.1 2021-05-28 16:48:52 +01:00
Matt Westcott a56143b90b Add release note for #7212 in 2.13.1 2021-05-28 16:39:24 +01:00
Matt Westcott de9588590b Allow workflows to be disabled (#7218)
Introduce a WAGTAIL_WORKFLOW_ENABLED setting; when false, the workflow report and settings menus are hidden, permissions are not registered, moderation-related dashboard panels on the homepage are skipped, workflow actions on add/edit page are hidden, and model methods such as page.current_workflow_state return None / False immediately without any db queries.
2021-05-26 19:23:28 +01:00
Matt Westcott 4dc68550bc
Reorganise snippet admin URLs to avoid ambiguous paths (#7208)
* Reorganise snippet admin URLs to avoid ambiguous paths

Snippet admin views allow for arbitrary strings as primary keys, and the current URL patterns don't adequately namespace these from reserved words like 'add' - for example, a snippet with the primary key 'add' would have an edit URL that collides with the add view at `/admin/snippets/foo/bar/add/`.

This is unlikely to come up in practice, but it does mean that our urlconf is more sensitive to ordering than it needs to be. Rearrange so that the verb (add, edit, delete) consistently comes before the pk, and add redirects to handle the legacy URLs.

* Release notes for #7208

Co-authored-by: Storm Heg <storm@stormheg.co>
2021-05-25 17:22:07 +02:00
Bojan Mihelac 0dfc342d66 Small fix in doc for routablepage 2021-05-19 15:15:49 +01:00
Karl Hobley 13b8b1b7b8 Update JavaScript guidelines to say two space indent 2021-05-17 15:26:10 +01:00
Karl Hobley 4daeed1bf5 Add locale filter into snippet chooser (#6699) 2021-05-17 13:24:03 +01:00
Matt Westcott 08be45dbd9 Release note for #7180 2021-05-17 12:32:19 +01:00
Matt Westcott a982ebe9f2 Documentation for image rendition properties including full_url 2021-05-17 12:32:19 +01:00
Helen Chapman 868f19c95d
Prevent “Forgotten password” link from overlapping with field on mobile devices (#6748)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-05-14 22:26:44 +01:00
Karl Hobley 8e25960972
Telepath set up for new sidebar
* Add ability to register multiple hooks with register_temporarily

It's not possible to add multiple items in a ``with`` block in multiple
lines. So to register multiple hooks, you either need to put them all on
one line or add many nested ``with`` blocks.

This commit adds the ability to pass in a list of hooks into one call.
This works around the syntax error, but there's still no way to
represent this in a way that flake8 is happy with so I've added
``#noqa`` in a few places.

* Telepath set up for new sidebar

* unindent hooks.register_temporarily with blocks

Co-authored-by: Matt Westcott <matt@west.co.tt>

* Update wagtail/core/telepath.py

Co-authored-by: Matt Westcott <matt@west.co.tt>

Co-authored-by: Matt Westcott <matt@west.co.tt>
2021-05-14 16:16:55 +01:00
Matt Westcott 53ab6741b5 Fill in release date for 2.13 2021-05-12 14:58:08 +01:00
Matt Westcott 7b0b8e2eb6 Add note about incompatibility with other streamfield replacement packages 2021-05-12 12:03:02 +01:00
Matt Westcott 004bcf2650
Add documentation for custom JS on StructBlocks (#7164)
* Document the need for data-contentpath with StructBlock.form_template

* Add documentation for custom JS on StructBlocks
2021-05-12 11:52:25 +01:00
Dan Braghis df772cffea
Add feedback section in the release notes (#7183) 2021-05-12 11:22:26 +01:00
Thibaud Colas d58c90db5d
Update accessibility contribution guidance in bug report and PR templates (#7142)
Co-authored-by: Scott Cranfill <scott@scottcranfill.com>
2021-05-11 16:57:29 +01:00
Matt Westcott aa2d10c713 Release note for #6477 2021-05-11 15:05:59 +01:00
Matt Westcott c1f1c2e95c Copyediting for group view customisation docs 2021-05-11 14:56:33 +01:00
Jan Seifert 9dda314263 Allow GroupViewSet to be customised (#6477) 2021-05-10 14:43:53 +01:00
fabienheureux 6d01ced56b
Fix usage of html syntax instead of html+django (#7138) 2021-05-05 11:08:40 +01:00
Storm Heg 4d67cc8bb3
Add release notes for #7126 2021-05-04 21:16:11 +02:00
Matt Westcott 9d29ba862c Document idForLabel on the telepath widget API
Fixes #7145
2021-05-04 16:01:01 +01:00
jacobtoppm 59f63abdad Add documentation for commenting 2021-04-30 17:46:08 +01:00
Matt Westcott 85c97fe87f Drop support for Django 2.2 2021-04-30 10:33:41 +01:00
Matt Westcott 6f87665735 Remove Django 2.2 from Wagtail 2.14 compatibility list 2021-04-29 10:31:39 +01:00
Matt Westcott e316d1f424 Add note about end of Django 2.2 support 2021-04-29 10:30:52 +01:00
jacobtoppm 24899dddb8 Add WAGTAILADMIN_COMMENTS_ENABLED default to docs 2021-04-28 10:08:13 +01:00
jacobtoppm 9728fab70e Add WAGTAILADMIN_COMMENTS_ENABLED setting 2021-04-27 19:28:51 +01:00
Tibor Leupold 9ea40ed705
Docs: Covert "topics - pages" from RST to MD (#6870) 2021-04-27 16:18:34 +02:00
Karl Hobley ab485064e9 Changelog / release note for #7069 2021-04-26 16:56:39 +01:00
Matt Westcott 5885494908 Move #6962 release note to 2.14 2021-04-23 12:52:21 +01:00
Storm Heg 01d8185459
fixup! Changelog / release note for #6962 2021-04-23 12:11:14 +02:00
Storm Heg 22bb5746bd
Changelog / release note for #6962 2021-04-23 11:59:17 +02:00
Karl Hobley 06be13fda0 Changelog / release note for #7077 2021-04-22 17:29:24 +01:00
Jaap Roes aafd32b66f
Fix #7007: Add ancestor_of API filter (#7077)
* Fix #7007: Add ancestor_of API filter

* Alter descendant_of_with_type test to find at least one page
2021-04-22 17:23:26 +01:00
Karl Hobley feab09a6d6
Start 2.14 (#7081)
* Version bump to start work on 2.14

* Removed StreamValue.stream_data and StreamValue.TupleView

* Rotate deprecation warning classes

* Set up changelog and release notes for 2.14

* Changelog / release note for #7023

* Add 2.14 to the compatibility table in the upgrading guide
2021-04-22 17:10:57 +01:00
Thibaud Colas 90a98f0cf5
Add search details and contributors to theme release notes (#7062) 2021-04-21 15:23:56 +01:00
Matt Westcott e1766874eb Finalise release notes for 2.13rc1 2021-04-20 20:28:33 +01:00
Matt Westcott ebcb6f01c8 Release notes for #6702 / #7050 2021-04-20 18:59:13 +01:00
Karl Hobley ab8608a74f Docs for customising account settings 2021-04-20 18:43:22 +01:00
Karl Hobley 63c536eef3 Move CommentPanel to settings_panels
Pages often completely override content_panels since there is only one
field by default.

Moving CommentPanel to settings_panels means it's less likely to be
overriden by mistake.
2021-04-20 18:25:30 +01:00
Jacob Topp-Mugglestone 13672e702c Add initial draft of commenting update notes (#7025)
* Add initial draft of commenting update notes

* Add code example for CommentPanel upgrade consideration

* Remove unnecessary Draftail text format upgrade note
2021-04-20 18:25:30 +01:00
jacobtoppm 7907aff7ff Use CSS variables for comment highlight colours 2021-04-20 18:25:30 +01:00
Tom Dyson b48c6dab58 Replace Divio with Gitpod
The Divio demo environment no longer exists, as far as I can tell.
2021-04-20 17:19:33 +01:00
Coen van der Kamp 3b24868bf2 Add release note about reporting theme issues 2021-04-20 12:31:26 +02:00
Coen van der Kamp 3b3ae52509 Add Sphinx theme changelog and release notes 2021-04-20 11:45:19 +02:00
Coen van der Kamp ed4ed7a338
Add Sphinx Wagtail Theme (#6930)
Add Sphinx Wagtail Theme
2021-04-20 11:24:17 +02:00
Matt Westcott 8f5a2a8fe9 Formalise support for Django 3.2
Fixes #6981
2021-04-19 12:03:38 +01:00
Ihor Marhitych deeb771032 Save revision when restart workflow (#6990) 2021-04-19 11:02:49 +01:00
Dan Braghis b21557319c Release notes for #6946 2021-04-19 10:49:55 +01:00
Matt Westcott 00aea17030 Fill in release date for 2.12.4 2021-04-19 10:10:42 +01:00
Matt Westcott b3f3df2764 Release note for CVE-2021-29434 in 2.11.7 2021-04-19 10:09:57 +01:00
Matt Westcott a44312f48f Release note for CVE-2021-29434 in 2.12.4 2021-04-19 09:59:01 +01:00
Matt Westcott 177bc51cd6 Add release notes for 2.12.4 2021-04-19 09:45:19 +01:00
Scott Cranfill 42ddd8ad55
Apply chevron padding fix to all applicable `select` elements (#6980)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-04-16 21:02:36 +01:00
Thibaud Colas 88cebcd43a
Make all Collection form fields translate-able (#6739) 2021-04-16 17:31:38 +01:00
Storm Heg e7942a05ad
Choosers: refactor to use SVG icons (#6998)
* Choosers: refactor to use SVG icons

Refactored non-deprecated choosers to use SVG icons. Custom choosers can
also supply their own svg icons using the `chosen_icon` and
`unchosen_icon` blocks.

We are keeping the relevant icon font css for custom choosers around to
prevent breaking existing custom choosers.

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-04-16 15:43:13 +01:00
Matt Westcott 02ad797673 Support slicing on StreamValue (#7013)
Fixes #7012
2021-04-16 14:41:49 +01:00
Thibaud Colas ca48709e5c
Lock nav and page scroll together only when search autocomplete is open. Fix #6935 (#7015) 2021-04-16 14:18:59 +01:00
Matt Westcott cc9310220a Fix documentation build warnings 2021-04-15 17:17:11 +01:00
Martin Sandström c0a84975e7 Add ability to export redirects using reports (#6305) 2021-04-15 16:37:05 +01:00
Karl Hobley dd3caad56d Release note for #6528 2021-04-15 11:07:41 +01:00
Andy Babic 9630967e0e Use resolve_url() instead of reverse() for pageurl fallbacks (#7002) 2021-04-14 15:26:11 +01:00
Coen van der Kamp b1b69360a3
Add contrib simple translation (#6528) 2021-04-14 08:56:00 +01:00
Daniele Procida 4f8ef843d0 Update links to Diátaxis framework
Information about the documentation system is now maintained and updated
at https://diataxis.fr.
2021-04-12 14:34:04 +01:00
Karl Hobley d30856d1b9 Changelog / release note for #6974 2021-04-09 11:00:49 +01:00
Matt Westcott 255a1e8641 Include submitter in workflow submitted email notification (#6976) 2021-04-07 19:42:06 +01:00
Thibaud Colas b171cb2f5a Move the IE11 support warning to the top of all Wagtail pages (#6947) 2021-04-06 23:43:02 +01:00
Karl Hobley b6685e7d93 Pin docutils to 0.16 2021-04-06 18:32:38 +01:00
Karl Hobley ea1dd1a44d Release note for #6908 2021-04-06 13:15:16 +01:00
Storm Heg 1ff679f861
Add `wagtail.reorder` audit log action
This adds a special audit message for reordering pages.

Previously, reordering pages under the same parent would show the
slighly misleading message that the page was moved to the same parent.
A special page reordered message would be more appropiate in this case.
2021-03-31 18:48:44 +02:00
Storm Heg 520fa23ced
Include user in log entry when reordering pages
Include `request.user` so `Page.move() can include it in it's log entry.
This will prevent the log entry from having no acting user associated
with it (#6761).
2021-03-31 18:45:29 +02:00
Vlad Podgurschi b213b8cc5a Update StreamField Screenshot in Editor's Guide 2021-03-29 16:52:54 +01:00
Samir Shah 0daae4a2b8 Allow a target variable to be specified for get_settings template tag. (#6891) 2021-03-26 23:28:07 +00:00
Susan Dreher 09431f7b22 Sanitize return_url (#6909) 2021-03-25 19:09:11 +00:00
Sagar Agarwal 400bc57536 Add type="button" to 'set privacy button' (#6882) 2021-03-25 14:01:27 +00:00
Sagar Agarwal f9d1ec0bf7 Fix pagination url for 'view users in a group' (#6880) 2021-03-25 13:23:18 +00:00
Matt Westcott 571b9e1918 Add example of a widget adapter class 2021-03-23 18:57:53 +00:00
Matt Westcott 3e2c928e2f Add StreamField context to block examples 2021-03-23 18:57:53 +00:00
Matt Westcott 9f084fff6d Add StreamField to title of BoundBlocks page 2021-03-23 18:57:53 +00:00
Matt Westcott 746a95ede0 Release notes for telepath StreamField implementation 2021-03-23 18:57:53 +00:00
Matt Westcott 82002df7aa Extend streamfield customisation docs to point to the widget API 2021-03-23 18:57:53 +00:00
Matt Westcott 0f75fb14f1 Add reference page for the client-side widget API 2021-03-23 18:57:53 +00:00
Matt Westcott b3c39216f2 Create a 'streamfield' subsection within the reference docs 2021-03-23 18:57:53 +00:00
Matt Westcott 11d612e6d6 Extend explanation of StructValue 2021-03-23 18:57:53 +00:00
Matt Westcott e190afd878 Fix backticks 2021-03-23 18:57:53 +00:00
Matt Westcott c7fd13b20c Split off StreamField customisation docs into a new page 2021-03-23 18:57:53 +00:00
Matt Westcott 30f6a66107 Add section on min_num / max_num / block_counts 2021-03-23 18:57:53 +00:00
Matt Westcott 241e06e9af Fix references to block classes in release notes 2021-03-23 18:57:53 +00:00
Matt Westcott cd4e77033f Expand title
"How to use StreamField" is a pretty useless title unless you already know what StreamField is, in which case you don't need the howto... I'll go with "How to use StreamField for mixed content" so that it's at least vaguely result-focused (while still keeping "how to" and "StreamField" as keywords).
2021-03-23 18:57:53 +00:00
Matt Westcott a3b6a15b8e Add howto documentation for StructBlock / ListBlock / StreamBlock 2021-03-23 18:57:53 +00:00
Matt Westcott f3e33f849f Convert StreamField reference to proper class definition markup 2021-03-23 18:57:53 +00:00
Matt Westcott 37c2326150 Split up StreamField documentation [skip ci] 2021-03-23 18:57:53 +00:00
flocker1 9cf1ddf7e2 Fixed spelling ('Haloween' -> 'Halloween') 2021-03-23 08:58:48 +00:00
dex 019e2eab42 Duplicate block - editor docs 2021-03-17 23:32:57 +00:00
Jaap Roes 8d0eff1717
Fix typo in hooks reference example (#6926) 2021-03-16 17:14:52 +00:00
Jaap Roes 3cc4713316
Replace example YouTube url with a working one (#6923) 2021-03-16 10:41:09 +00:00
Thibaud Colas 8b07ad4cea
Add support for SVG icons to SearchArea subclasses and register_admin_search_area (#6493) 2021-03-09 11:33:06 +00:00
Thibaud Colas 5257ef6c84
Update register_admin_menu_item documentation to match SVG icons setup (#6892) 2021-03-09 12:04:09 +01:00
Thibaud Colas d88343cbb0
Switch register_setting, register_settings_menu_item to use SVG icons (#6107, #6649) 2021-03-09 10:58:53 +00:00
Thibaud Colas 23f146c7e1
Fix DocSearch widget initialisation JS error (#6884) 2021-03-08 14:18:01 +00:00
Thibaud Colas 1e1e188179
Fix the DocSearch search input appearing smaller after initialization (#6883) 2021-03-08 13:35:21 +00:00
naglis 73d41059f8
Fix typo in site settings documentation example (#6881)
Lowercase `i` is used in the model definition and in other examples.
2021-03-08 13:19:31 +00:00
Tibor Leupold 328e7012fc
Switch documentation search to Algolia DocSearch (#6833)
Co-authored-by: Scott Cranfill <scott@scottcranfill.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
Co-authored-by: Andy Chosak <andy@chosak.org>
2021-03-08 11:51:06 +00:00
Matt Westcott 73327bad54 Fill in release date for 2.12.3 2021-03-05 13:30:36 +00:00
Matt Westcott 89d20381cd Fill in release date for 2.11.6 2021-03-05 13:29:00 +00:00
Matt Westcott d61580eeac Release note for #6818 in 2.12.3 2021-03-05 12:33:40 +00:00
Matt Westcott 0b03666c5f Release note for #6818 in 2.11.6 2021-03-05 12:33:40 +00:00
Matt Westcott a02e7b28b8 Release note for #6872 in 2.12.3 2021-03-05 11:41:37 +00:00
Matt Westcott fe704905ad Release note for #6872 in 2.11.6 2021-03-05 11:41:37 +00:00
Matt Westcott cf18ee7a73 Release note for #6871 in 2.12.3 2021-03-04 14:00:55 +00:00
Matt Westcott 03d957d400 Release note for #6871 in 2.11.6 2021-03-04 14:00:55 +00:00
Matt Westcott 9ed99c2d71 Release note for #6854 in 2.12.3 2021-03-04 13:34:12 +00:00
Matt Westcott a570563be7 Release note for #6854 in 2.11.6 2021-03-04 13:33:38 +00:00
Storm Heg 4ae37572d4 Fix indentation of 0.7 release notes 2021-03-04 11:43:56 +00:00
Tibor Leupold dc9b6a31e8
Docs: Convert "getting started - tutorial" from RST to MD 2021-03-04 10:32:44 +00:00
Naomi I. Morduch Toubman 664b0489fe
Change `master` to `main` (#6830)
* Update references to `master` branch to say `main`

* Update external links

* Update links in old release notes
  Use tagged versions of code rather than current code
2021-03-03 13:33:19 -05:00
Andy Babic c5f49274c8 Release notes for #6847 2021-03-03 13:15:10 +00:00
Andy Babic cd0fd04a67 Release notes for #6846 2021-03-03 13:03:46 +00:00
Andy Babic fa8402f633 Implement PageQuerySet.defer_streamfields() 2021-03-03 13:03:46 +00:00
Tibor Leupold 48f8970344
Docs: Convert "topics - index" from RST to MD (#6852) 2021-03-03 11:41:29 +00:00
Tibor Leupold 27a64933b2
Docs: Convert "getting started - integrating into django" from RST to MD (#6840) 2021-03-03 11:40:29 +00:00
Tibor Leupold b021bb9611
Docs: Convert "getting started - zen of wagtail" from RST to MD 2021-03-03 10:05:24 +00:00
Andy Babic 54f190d4bb Release notes for #6845 2021-03-03 07:30:50 +00:00
Andy Babic 86824bb5c4 Release notes for #6849 2021-03-02 20:43:12 +00:00
Andy Babic cae9bbbea2 Release notes for #6850 2021-03-02 20:00:28 +00:00
Andy Babic 8f38aaae87 Update type(), not_type(), exact_type() and not_exact_type() to accept multiple model classes as arguments 2021-03-02 20:00:28 +00:00
Tibor Leupold 49e18d7ad8
Docs: Convert "getting started - demo site" from RST to MD (#6839) 2021-03-01 21:16:27 +00:00
Karl Hobley 3c040acc88 Fix bullet liest formatting 2021-02-26 10:04:35 +00:00
Karl Hobley c002a04576 Changelog / release notes for #6819 and #6320 2021-02-26 09:33:44 +00:00
Tibor Leupold b211c7f541 Reapply file extension change
Without the right extension, sphinx does not convert the file properly.

I wanted to keep the filename to make the diff more sensible...
2021-02-26 09:27:59 +00:00
Tibor Leupold 932e505012 Revert file extension change 2021-02-26 09:27:59 +00:00
Tibor Leupold 7ff4363c75 Fix TOC 2021-02-26 09:27:59 +00:00
Tibor Leupold 1faa292f6a Fix reference links 2021-02-26 09:27:59 +00:00
Tibor Leupold 88f0cc70fc Fix shell snippets 2021-02-26 09:27:59 +00:00
Tibor Leupold 0a2d14a65f Fix note 2021-02-26 09:27:59 +00:00
Tibor Leupold 88ae26b592 Pandoc convert rst to markdown 2021-02-26 09:27:59 +00:00
Tibor Leupold 80814d36cf Change file extension 2021-02-26 09:27:59 +00:00
Helen Chapman ca44453c2f
Move labels above the form field in the image format chooser 2021-02-26 09:19:20 +00:00
Storm Heg 24ef0e62e6 Fix documentation indentation
Fix code block indentation in tutorial.rst

Prevent it from being displayed as a quote.

Fix indentation in pages.rst

Fix indentation in indexing.rst

Fix indentation in searching.rst

Fix indentation in backends.rst

Fix indentation in renditions.rst

Fix indentation in custom_image_model.rst

Fix indentation in feature_detection.rst

Fix indentation in image_serve_view.rst

Fix indentation in custom_document_model.rst

Fix indentation in i18n.rst

Fix indentation in privacy.rst

Fix indentation in page_editing_interface.rst

Fix indentation in rich_text_internals.rst

Fix indentation in extending_hallo.rst

Fix indentation in configuration.rst

Fix indentation in usage.rst

Fix indentation in theory.rst

Fix indentation in model_reference.rst

Fix indentation in queryset_reference.rst

Configure editors to indent .rst files with 2 spaces

In order for the documentation to be styled correctly, the generator
depends on indentation. Too much indentation can result in the content
being wrapped in a quote block, which looks bad.

Fix indentation in sitemaps.rst

Fix indentation in frontendcache.rst

Fix indentation in routablepage.rst

Fix indentation in table_block.rst

Fix routablepage.rst autodocs disppearing

Fix indentation in table_block.rst

Fix indentation in redirects.rst

Fix indentation in table_documentation-modes.rst

Fix indentation in browser_issues.rst

Fix indentation in release_process.rst

Fix indentation of release notes

One more indent fix in the release notes

Fix indentation warnings

Fix warning about undefined label in docs

Error during `make html`:

  wagtail/docs/releases/1.7.rst:25: WARNING: undefined label: jpeg_image_quality
2021-02-26 09:17:00 +00:00
Karl Hobley 99542475de Changelog/release note for #6639 2021-02-25 10:12:54 +00:00
Tibor Leupold aefff4e56c
Docs: Convert "reporting security issues" from RST to MD (#6829)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-02-23 10:26:12 +00:00
Kalob Taulien 0f951d45c5
Merge pull request #6823 from kaedroho/plausible-analytics
Insert Plausible.io analytics code into docs
2021-02-18 11:26:08 -07:00
Karl Hobley 111a195f06 Insert Plausible.io analytics code into docs 2021-02-18 18:14:10 +00:00
Matt Westcott 3a057f2fd8 Release note for #6822 in 2.12.2 2021-02-18 09:21:38 +00:00
Matt Westcott 6d1a61ba7e Release note for #6822 in 2.11.5 2021-02-18 09:20:51 +00:00
Matt Westcott 391f578c8e Fill in release date for 2.12.1 2021-02-16 16:08:05 +00:00
Matt Westcott bc1458f9e3 Remove duplicates before applying unique constraint on embed hash 2021-02-16 15:49:54 +00:00
Matt Westcott 0a3d044c9f Fill in release date for 2.11.4 2021-02-16 12:37:17 +00:00
Matt Westcott 14ba9efa18 Release note for #6757 in 2.12.1 2021-02-16 12:30:57 +00:00
Matt Westcott d6ddb997c6 Release note for #6757 in 2.11.4 2021-02-16 12:30:51 +00:00
Matt Westcott b7003cebc6 fix quotes [skip ci] 2021-02-16 09:57:51 +00:00
Matt Westcott 0a8ab74d70 Make the dummy Admin model a managed model
Fixes #6810. As per https://code.djangoproject.com/ticket/13816 , unmanaged models are included in dumpdata by design and so unmanaged models without a database table are not valid.
2021-02-16 09:57:12 +00:00
Cynthia Kiser afc3349c94 Save empty thumbnail_urls as empty strings 2021-02-15 16:27:51 +00:00
Kalob Taulien 3370e7620a
Promote panel changes
Merged pull request #6780
2021-02-11 07:50:04 -07:00
Naomi I. Morduch Toubman 1bfc13952f
Add explanations to tutorial (#6797)
Add Lara Thompson to CONTRIBUTORS

Co-authored-by: Lara Thompson <65025831+larathompson@users.noreply.github.com>
2021-02-05 14:45:51 -05:00
dex a6ce839a42 Include privacy within the settings tab section
Done by Phil and abigail!
2021-02-05 10:39:18 -08:00
Matt Westcott 4c278d81a1
Move "writing documentation" page into Contributing (#6789)
While we very much want to introduce an "explanation" section in some form, I don't think this should be the inaugural item in that section, as it's 'meta' documentation about the Wagtail documentation process, rather than information directed at Wagtail site creators.
2021-02-05 09:29:03 -05:00
dex f49a6b70d5
Edit title tag and meta description
Updated title tag and meta description to reflect that it is a developer's job to ensure these are output on the frontend.
2021-02-05 11:32:10 +00:00
Matt Westcott 720cfebc22 Remove jinja2 from advanced_topics index
a bit of final cleanup from #6779
2021-02-04 20:34:20 +00:00
James Gutu 93abdabd41 moved jinja2 page from Advanced Topics to Reference 2021-02-04 12:12:11 -08:00
Andy Chosak fdf1597263 Fix broken "make livehtml" command
The documentation suggests running `make livehtml` to automatically
build the docs as you're working on them [0].

This uses the sphinx-autobuild package [1] but unfortunately seems to
have been broken since its most recent release last year [2].

Specifically, the sphinx-autobuild command line syntax no longer accepts
shorthand options -p and -H, requiring use of --port and --host instead.
Additionally the --poll option is no longer supported.

To test, run `cd docs && make livehtml`.

[0] https://docs.wagtail.io/en/stable/contributing/developing.html#compiling-the-documentation
[1] https://github.com/executablebooks/sphinx-autobuild
[2] https://github.com/executablebooks/sphinx-autobuild/blob/master/NEWS.rst#20200901---2020-09-01
2021-02-04 11:55:02 -08:00
Coen van der Kamp a4aa5c8cc9 Explain how we write documentation 2021-02-04 10:55:21 -08:00
Tom Dyson 4424cb7321
Improve demo site docs (#6787)
(mainly to test auto CI skipping in https://github.com/wagtail/wagtail/pull/6786)
2021-02-04 18:21:30 +00:00
Kalob Taulien fc61da7468 Panel text update; Documentation around developer responsibility added 2021-02-04 10:36:13 -07:00
John Esther e317e562ea
Changed the title for Wagtail AMP support (#6775) 2021-02-04 17:28:31 +00:00
Thibaud Colas 75b73b2bf6
Fix typo in inline code formatting (#6783) 2021-02-04 17:26:21 +00:00
James Gutu 7bb4fddcb3
Changed heading in image index (#6773)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-02-04 15:59:36 +00:00
Kalob Taulien 6694533751 Merging in PR 6774 docs 2021-02-04 08:56:48 -07:00
Tom Dyson b299096c16
Improve existing page docs in editor guide (#6777)
This is mainly to test [skip ci]
2021-02-04 15:41:33 +00:00
Tom Dyson 4fc528bef4
Remove excited tone (#6769)
Revert @phildexter's test PR, in the interest of maintaining our friendly but serious tone. Sorry Phil!
2021-02-04 15:37:57 +00:00
LisaBallam 29d1a8c7d1
Removed 'how to'
'How to' in included in the intro so doesn't need to be repeated
2021-02-04 14:42:18 +00:00
LisaBallam bf716dfe2a
Remove 'new'
Wagtail is no longer that new - it's established
2021-02-04 14:34:16 +00:00
Storm Heg d3285e9f1b Quote pip install command in developing docs
Prevents it from failing with zsh: no matches found: .[docs]
2021-02-04 12:36:00 +00:00
dex a4e9431cc5
Update tutorial.rst (#6766)
Just spicing it up a bit.
2021-02-04 12:19:40 +00:00
Matt Westcott 9217193513 Revert "Writing documentation in for modes"
This reverts commit 044206db0d.
2021-02-04 11:51:36 +00:00
Coen van der Kamp 044206db0d Writing documentation in for modes 2021-02-04 12:46:14 +01:00
Matt Westcott 41ff62a056 Release note for #6756 in 2.12.1 2021-02-03 11:00:18 +00:00
Matt Westcott 920aba28ba Release notes for #6713 and #6756 in 2.11.4 2021-02-03 10:59:08 +00:00
Matt Westcott 1a7a5816a5 Fill in release date for 2.12 2021-02-02 16:09:16 +00:00
Matt Westcott ab656424b7 Reinstate spidering of other documentation versions besides stable
These are now returning the correct canonical URL (thanks to a Cloudflare worker script), and letting search engines spider them again will hopefully boost visibility of that canonical URL.
2021-02-02 15:15:43 +00:00
Thibaud Colas 30b90a0f65
Improve wagtailforms accessibility guidance (#6740) 2021-01-29 19:45:48 +00:00
Matt Westcott cb29fbba65 Release note for #6713 2021-01-29 16:12:55 +00:00
Thibaud Colas 29942d2a48
Add documentation formatting reference (#6729)
Co-authored-by: Andy Chosak <andy@chosak.org>
Co-authored-by: Tom Dyson <tom@torchbox.com>
2021-01-29 10:38:47 +00:00
Thibaud Colas fce19a8059 Add release notes for #6730 2021-01-29 10:24:14 +00:00
Helen C 5682aea460 Add the option to set images as decorative
If an image is decorative, the alt text will be set to be empty. If an image is not decorative, then alt text must be supplied for screen readers.
2021-01-29 10:24:14 +00:00
Thibaud Colas bf33842f45
Fix documentation typo 2021-01-27 16:01:06 +00:00
Matt Westcott 9886cb0476 add missing : to after_create_page example 2021-01-27 09:21:42 +00:00
Thibaud Colas 0dbd69f491
Configure Sphinx for Markdown support (#6711) 2021-01-26 22:09:52 +00:00
Matt Westcott df125b1652 Release notes for #6718 2021-01-26 10:55:26 +00:00
Matt Westcott d42b9b4a74 add backticks to streamfield option docs 2021-01-26 10:55:25 +00:00
Matt Westcott 8f2c7a0011 Documentation for new min_num, max_num, block_counts options 2021-01-26 10:55:24 +00:00
Matt Westcott 23096b9f73 Show required asterisks for required descendant blocks of required streamfields (#6715)
Fixes #5983; possibly also has a bearing on #4306. A CSS rule dating from the original StreamField design was hiding the 'required' asterisk on fields within a required StreamField, presumably on the mistaken belief that they duplicate the information given by the top-level asterisk on the streamfield. (In #5983 this was reported as a regression in 2.7 when the react-streamfield CSS was introduced, so it's possible that the old design had something to mitigate this, e.g. an asterisk being inserted elsewhere.)
2021-01-21 14:36:57 +00:00
Matt Westcott 97bfaf15e9
fix version number 2021-01-21 11:14:50 +00:00
Matt Westcott 14daf4be0a Remove outdated versionadded/versionchanged notes in docs 2021-01-19 09:51:01 +00:00
Matt Westcott c3abf40ea5 Add release notes / changelog section for 2.13 2021-01-19 09:47:31 +00:00
Michael Brown cadb5456c0 Apply scss styling to collection_choice_field (#6683) 2021-01-18 17:06:29 +00:00
Matt Westcott c0c7f1bd5d Release note for #6635 2021-01-18 15:11:46 +00:00