0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

436 Commits

Author SHA1 Message Date
Sage Abdullah
cd222898fd
Move SnippetViewSet.list_diplay definition to ModelViewSet 2023-08-22 16:34:51 +01:00
Sage Abdullah
fad37fd232
Add docs for migrating from modeladmin to snippets 2023-07-26 16:04:35 +01:00
Jake Howard
69724e4e3a Create preview-aware & page-enhanced cache template tags
This can be used in other places, but ensures caches are invalidated
whenever something about a page changes.

- Add a util to get wagtail-specific fragment cache keys
- Don't pollute context when injecting site variable
- Add documentation on wagtail fragment caching
- Define an intelligent cache key for pages
- Allow the components of the cache key to be easily modified
- Note that some manual changes may not create a new cache key

Co-authored-by: Andy Babic <andyjbabic@gmail.com>

Closes #5074
2023-07-20 08:24:09 +10:00
Sage Abdullah
64f496a2e1 Remove old versionadded / versionchanged notes 2023-07-19 17:53:26 +10:00
sgfost
61594a2616
Add docs for managing stored queries in searchpromotions
and update docs about the search -> searchpromotions migration.
2023-07-18 15:00:56 +01:00
Sage Abdullah
0bebe532e8 Add docs and tests for snippets inspect view 2023-07-17 17:19:11 +01:00
Matt Westcott
d05c0c1bc1 Update docs to cover Elasticsearch 8 support 2023-07-17 16:18:37 +01:00
LB Johnston
3d471edbcf Clean whitespace formatting in docs
- Update formatting with prettier in the documentation
2023-07-17 22:24:54 +10:00
LB Johnston
0f97838381 Documentation - revise usage of e.g.
- Replace one usage of 'eg' with more suitable alternatives
- As per guidelines https://docs.wagtail.org/en/stable/contributing/general_guidelines.html#latin-phrases-and-abbreviations
2023-07-17 15:13:30 +10:00
zerolab
96c3d719c2 Change the default WebP quality to 80
This is the value most used, and is the default in Willow too

Co-Authored-By: Aman Pandey <74553951+salty-ivy@users.noreply.github.com>
2023-07-14 16:17:53 +01:00
zerolab
ce4afcd578 Update documentation for AVIF support
Co-Authored-By: Aman Pandey <74553951+salty-ivy@users.noreply.github.com>
2023-07-14 16:17:53 +01:00
Sage Abdullah
0550b03dad
Allow customising the spreadsheet file name via SnippetViewSet.export_filename 2023-07-12 09:18:11 +01:00
Sage Abdullah
428b7914e2
Add docs and tests for exporting snippets listing 2023-07-12 09:18:09 +01:00
Vitaly Babiy
1042568e5c
Documentation - Fix mMissing Menu Prefix in example (#10599) 2023-06-27 07:53:52 +10:00
LB Johnston
96a494581c Documentation - clean up last two internal refs to use underscore
- As per https://docs.wagtail.org/en/latest/contributing/documentation_guidelines.html#reference-links - refs should be `lower_snake_case`
2023-06-19 15:18:02 +01:00
Matt Westcott
c8064466d4 Reword note telling people not to use autocomplete for ordinary search
Prompted by https://stackoverflow.com/q/76324437/1853523 - while we want to encourage people to use the most appropriate search method, telling them outright not to use autocomplete is a bit extreme. Remove the note in favour of some gentler advice.
2023-06-05 09:21:21 +01:00
LB Johnston
d5bd828b8e Docs - update Django urls to shorthand method 2023-06-01 16:50:03 +01:00
LB Johnston
5292f7dc1f Docs - fix whitespace formatting (Prettier) 2023-05-30 07:25:21 +10:00
Sage Abdullah
f005990b4a Apply suggestions from code review 2023-05-24 11:06:00 +01:00
Sage Abdullah
9107fdd8aa Add documentation for using inline models with snippets 2023-05-24 11:06:00 +01:00
Sage Abdullah
4d49ebe061 Clarify that TaggableManager should only be used if RevisionMixin is not applied 2023-05-24 11:06:00 +01:00
Sage Abdullah
f2accc89e3 Add link to snippets icon customisation from icons documentation 2023-05-24 11:06:00 +01:00
Sage Abdullah
6ec734f836 Add separate headings for each snippets view customisation 2023-05-24 11:06:00 +01:00
Sage Abdullah
88c6cfcba6 Restructure snippets customisation example to show the viewset before explaining the attributes 2023-05-24 11:06:00 +01:00
Sage Abdullah
d2c33b7513 Add intro paragraphs for rendering snippets and optional features 2023-05-24 11:06:00 +01:00
Sage Abdullah
8f9c908af7 Explicitly recommend using register_snippet as a function 2023-05-24 11:06:00 +01:00
Sage Abdullah
fb734e9184 Split snippets documentation into separate pages 2023-05-24 11:06:00 +01:00
Sage Abdullah
939b14b33c Move snippets.md docs to its own directory 2023-05-24 11:06:00 +01:00
4the4ryushin
ecce6bc1c0 added support for parsing multiple queries (#10342) 2023-04-26 11:31:31 +01:00
Ramon Wenger
2ca09bdc37 Add documentation for using a StructBlock inside of a StreamField
Fixes #10231
2023-04-24 14:52:45 +01:00
Matt Westcott
4a47bc611b Remove old versionadded / versionchanged notes 2023-04-21 13:47:10 +01:00
sag᠎e
ed36b5b9b6
Improve customisability of the accessibility checker configuration. Fix #10137 (#10333)
* Extract userbar BaseItem.get_context_data()
* Extract Axe config into smaller attributes and methods for easier overrides
* Add TypeScript interface for WagtailAxeConfiguration
* Improve typings for userbar.ts
* Separate Axe `runOnly` and `rules` options
* Pass request object to all axe configuration methods
* Remove Axe runOnly option if it's falsy
* Add docs for customising the accessibility checker
* Use lists for Axe include and exclude selectors
* Parse JSON script when testing accessibility checker config
* Add tests for customising accessibility checker configuration

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-04-20 07:46:56 +01:00
Sage Abdullah
c027e0bce4 Hide Snippets menu item if all snippet models have their own menu items 2023-04-19 15:13:42 +01:00
Sage Abdullah
7ba2098d1a Add docs and tests for grouped snippets registration 2023-04-19 15:13:42 +01:00
Sage Abdullah
dde58c718d Add docs and tests for separate menu item registrations for Snippets 2023-04-19 15:13:42 +01:00
Sage Abdullah
66c0ef48e9 Add docs for setting panels/edit_handler on SnippetViewSet 2023-04-19 13:24:17 +01:00
Sage Abdullah
88b742b979 Clarify docs of Snippets features to better reflect current state 2023-04-19 13:24:17 +01:00
Matt Westcott
8ceede175f Deprecate the partial_match argument 2023-04-19 10:53:25 +01:00
Matt Westcott
db691b5f1b Remove use of partial_match on search 2023-04-19 10:53:25 +01:00
Sage Abdullah
3965ceedfa Allow default ordering of Snippets IndexView to be specified via SnippetViewSet (#10276) 2023-04-17 23:58:20 +01:00
Sage Abdullah
87cbf01894 Add docs and tests for overriding SnippetViewSet.get_queryset() 2023-04-14 12:34:11 +01:00
Sage Abdullah
dc6c0b0949 Allow overriding SnippetViewSet template prefix 2023-04-13 17:53:58 +01:00
Sage Abdullah
f2ab3ae774 Add docs and tests for Snippets template overrides 2023-04-13 17:53:58 +01:00
Sage Abdullah
bcbaafd116 Add docs and tests for snippets listing filters via list_filter 2023-04-03 10:24:30 +02:00
Joshua Munn
2424df3d68 Remove WAGTAILIMAGES_ALLOW_SVG setting for WAGTAILIMAGES_EXTENSIONS
PR #9860 introduced the WAGTAILIMAGES_EXTENSIONS setting, which
conflicts with the use of
WAGTAILIMAGES_ALLOW_SVG. WAGTAILIMAGES_EXTENSIONS can be used to
opt-in for SVG use instead.
2023-03-30 10:19:43 +01:00
Joshua Munn
657afde30a Add more detail to SVG security notes, update settings reference 2023-03-30 10:19:43 +01:00
Joshua Munn
196ed4162d Add SVG docs 2023-03-30 10:19:43 +01:00
Thibaud Colas
d856e702e1 Update documentation on icons management, with available icons 2023-03-28 16:13:35 +01:00
Sage Abdullah
094bb83848 Allow customising the number of snippets per page on the chooser view 2023-03-23 14:15:47 +00:00
Sage Abdullah
f533ab219d Allow customising the number of snippets per page on the listing view 2023-03-23 14:15:42 +00:00