Wykres commitów

166 Commity (main)

Autor SHA1 Wiadomość Data
Neeraj P Yetheendran f341f6bee5 Fixed issues preventing build
- html+django snippets are not parsing correctly due to script usage, replace with simple text snippets
- Fix up incorrect link added in extending_client_side
2024-01-24 10:42:51 +10:00
LB Johnston a17f7c3e1c Documentation - client-side Stimulus - add detailed integration example 2024-01-23 16:49:47 +00:00
Cynthia Kiser e4c80fd2c3 Allow ordering from IndexView to work but still be overridden by ordering set in ModelViewSet (#11367)
Fixes #11165
2024-01-23 14:14:32 +00:00
Neeraj P Yetheendran 7fa335c20d Update Django intersphinx references to new format 2024-01-21 10:09:21 +10:00
Cynthia Kiser 1b76b8154f Fix additional ambiguous reference warnings during sphinx build 2024-01-02 06:14:24 +00:00
Cynthia Kiser a69586f61c Renamed rich_text reference to eliminate ambiguous reference warnings 2024-01-02 06:14:24 +00:00
Andy Chosak c109c661c1 Docs: Clarify appropriate use of MultipleChooserPanel
This documentation change clarifies that MultipleChooserPanel can only
be used when the inline model has a ForeignKey to a model that
implements Wagtail's chooser interface. Currently the docs mention
"a chooser for a ForeignKey relation" but it's not obvious how that
restricts which models can be pointed to or how to implement this for a
non-(image, document, snippet, page) model.

Relates to #10646.
2023-12-13 07:32:00 +10:00
Sage Abdullah 336ec6ea10
Render form using top-level panel if available in generic CreateView/EditView templates 2023-11-28 09:26:33 +00:00
LB Johnston 2e2e8f4452 Minor documentation formatting (Prettier) 2023-11-13 09:53:38 +11:00
Matt Westcott 574c218c2b Remove reference to icon fonts in 'extending Draftail' docs 2023-11-09 08:57:56 +00:00
Matt Westcott c363f6dd27 Remove ModelAdmin 2023-11-01 16:52:20 +00:00
Matt Westcott aae3ce1c84 Remove docs mentioning legacy moderation 2023-11-01 16:51:25 +00:00
Thibaud Colas 567e84b4ea
Update image documentation to have more details for picture and srcset_image tags (#11167) 2023-11-01 12:11:46 +00:00
Sage Abdullah 31334f212f Refer to ModelViewSet docs for similar SnippetViewSet customisations 2023-10-31 17:25:21 +00:00
Sage Abdullah f034d02bac Add docs for ModelViewSet customisation in generic views extending guide 2023-10-31 17:25:21 +00:00
Sage Abdullah c9514345d9 Move viewset intro in generic views docs to the base `ViewSet` usage docs 2023-10-31 17:25:21 +00:00
Sage Abdullah b258b99c86 Improve linking between viewset reference and extending docs 2023-10-31 17:25:21 +00:00
Sage Abdullah b60763d8c8 Document how to use the base `ViewSet` and `ViewSetGroup` classes 2023-10-31 17:25:21 +00:00
Sage Abdullah 622b71654c Document `register_admin_viewset` hook 2023-10-31 17:25:21 +00:00
Sage Abdullah 07e41db2d5 Move chooser-related headings to under ChooserViewSet 2023-10-31 17:25:21 +00:00
Temidayo 69d30e2749
Helpful addition to Developer Docs on Extending Draftail (#11057)
Ensure hooks imports are added to the code snippets
2023-10-26 09:42:14 +10:00
LB Johnston 4a0ab8bf0a Add cross ref to `InlinePanel` DOM events in client-side docs
- See #10590 & #10948
2023-10-24 18:36:37 +11:00
LB Johnston 145e33de9d
5.2 release notes - add supporting links and fix typos 2023-10-20 10:13:27 +01:00
LB Johnston 8002e75775 Documentation - Add initial Stimulus docs
- Move extending React to new extending client-side page within advanced topics
- Add general extending JavaScript / client-side overview
- Prepare initial Stimulus usage documentation
- Resolves #10197
- Apply suggestions from code review - Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-10-19 07:28:27 +01:00
Susheel Thapa 2307eb5681 Chore: Typo fixed in multiple files 2023-10-17 21:07:37 +11:00
LB Johnston 1c4e69dbce Add better docs & cross-linking for how PanelGroup permission kwarg works
Adds more details on how to use the feature added in #8846
2023-10-09 22:50:11 +11:00
Charlie Sue 86ed0ab9f7 Docs - Add note about including the feature in text editor settings 2023-10-02 09:12:33 +11:00
Matt Westcott 6009903c55 Support passing extra context variables via the {% component %} tag 2023-09-20 07:46:39 +10:00
Matt Westcott b6bd047598 Add documentation for non-model choosers using queryish (#10863) 2023-09-07 11:27:10 +01:00
Matt Westcott 8223162c93 Add documentation for linked_fields 2023-09-06 15:58:36 +01:00
Thibaud Colas f4ea0156a2 Implement new Draftail customisation APIs
- Fixes #5580
- Remove TSLA/TWTR/BTC references and replace with clean energy FSLR / NEE stocks
2023-07-06 13:14:54 +10:00
LB Johnston 6491ae49ce Docs - Align on client-side & fix Draftail typos
- Prep for #10197
- Fix a few cases where Draftail was spelt incorrectly
- Align with `client-side` not `clientside` as this is used most commonly
- fix javascript code snippet
2023-07-03 19:18:44 +10:00
Daniel Kirkham 17230d183a Add ordering for group editor object permissions
- Ensure the sorting will preserve Django's Permission model ordering as per ordering = ["content_type__app_label", "content_type__model", "codename"]
- `ordering = ["content_type__app_label", "content_type__model", "codename"]`
- Closes #10468
2023-06-22 08:11:04 +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
LB Johnston fd83bedd72 Docs - fix typo in Django forms reference 2023-06-15 07:52:52 +10:00
LB Johnston d5bd828b8e Docs - update Django urls to shorthand method 2023-06-01 16:50:03 +01:00
Sage Abdullah 0c075fb8de Replace mentions of ModelAdmin with their snippets equivalent 2023-05-24 11:06:00 +01:00
Matt Westcott 4a47bc611b Remove old versionadded / versionchanged notes 2023-04-21 13:47:10 +01:00
Thibaud Colas c2c37ab143 Update documentation referring to icon class names 2023-04-12 11:51:00 +01:00
sheepman4267 04cca97f09
Fix typo in "Extending Draftail" docs (#10185)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-03-07 10:11:45 +00:00
Coen van der Kamp 619f395980 Add new "Icons" page for icons customisation and reuse across the admin interface (#6028)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-02-10 07:22:45 +00:00
Matt Westcott 18a574b520 Remove old versionadded / versionchanged directives from docs 2023-02-08 14:25:09 +00:00
LB Johnston 8908c38dcd Documentation - fix up ModelAdmin items
- Link to ModelAdmin showed incorrectly as `Index app` not `ModelAdmin app`
- Many code snippets were nested, causing double nesting to appear in published docs
2023-02-06 10:26:46 +00:00
Sage Abdullah ad3ef5875d
Update docs and changelog to reflect changes for #9817 2023-01-19 14:52:34 +00:00
Rishabh Jain 959a802c76 Updated documentation for adding reports to cover permission restrictions (#9859) 2023-01-09 14:14:53 +00:00
Loic Teixeira 5c1c2c8f53 Enforce the use of a single string formatting mechanism for translation source strings
Close #9377
2022-11-26 11:00:05 +01:00
Coen van der Kamp 26f5a4fcb1 Move custom image filter to extendig Wagtail section 2022-11-20 08:03:33 +10:00
ChickenF622 4ee7a633b6
Add clarification on where to register entity plugins (#9487)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-11-18 11:24:08 +00:00
Marvis Chukwudi b9a5f9e333
Documentation - Minor punctuation and capitalisation fixes (#9508) 2022-11-01 20:42:54 +10:00
LB Johnston 28013470a7 Documentation - clean up white space 2022-10-27 07:18:22 +10:00
Precious Arinda 3b6acf036d
Documentation - update hooks.py to wagtail_hooks.py (#9462)
- Fixes #9453
2022-10-25 21:40:51 +10:00
Albina 4f478a514b
Improve grammar, spelling, and punctuation in Extending Wagtail section (#9373) 2022-10-19 21:41:50 +01:00
Oliver Parker 19fd2ceb98 Add ability to check permission on parent `PanelGroup` class
- Used by TabbedInterface, ObjectList, FieldRowPanel, MultiFieldPanel
2022-10-18 09:53:13 +10:00
zobbs 5ea291da1a Documentation - fix some escaped content that does not need escaping 2022-10-13 17:34:46 +10:00
LB Johnston 2e8709e0d6 Documentation - update dead/redirected links 2022-10-11 20:44:08 +10:00
Sage Abdullah 48761ef5a9 Update docs for renaming publish_scheduled_pages command to publish_scheduled 2022-09-29 10:28:36 +01:00
LB Johnston 0e036d228f Add changelog entry for 4.0 - bulk actions for snippets #8574
- also add Shohan to contributors list
- resolves #8183
2022-09-19 19:40:46 +10:00
Nicholas Johnson 9e810ce5b0 Make report titles sentence case consistently
Fix a few more "Locked Pages" references
2022-09-16 07:04:46 +10:00
Matt Westcott 7eefd98dc2 Revert chooser button labels to "Choose another X"
Fixes #9113
2022-09-14 07:40:38 +10:00
Thibaud Colas a1bff1bcbd Update all documentation images except editor manual 2022-09-12 21:57:43 +10:00
ariadi 4a6e744d34 Update admin_views.md
typo method from `format_month(current_year, current_month)` to `formatmonth(current_year, current_month)`
2022-08-22 12:52:04 +10:00
Matt Westcott b4bc681865 Fix DocumentChooserBlock deconstruction for custom document models
Fixes #8989. The previous fix #9004 failed for custom document models because ChooserViewset assigns an internal name for the ChooserBlock class based on the model name, and if this is anything other than Document it won't match the name DocumentChooserBlock that it's exposed under in wagtail.documents.blocks. Fix this by replacing the `block_class` property with a `get_block_class` method that lets us specify the class name. As a bonus, user code that defines chooser blocks no longer has to directly hack the `__module__` attribute.
2022-08-16 20:50:04 +01:00
LB Johnston 666cc5e8e5 fix up legacy release note refs & use consistent format
- fix some broken refs that were lost in the migration to markdown files
- use lower_snake_case for all internal refs (most follow this convention)
- release process sub-section in docs should be named release schedule instead
2022-08-16 12:42:42 +01:00
Matt Westcott a6a94a9a04 Ensure DocumentChooserBlock can be deconstructed for migrations
Fixes #8989. Now that DocumentChooserBlock is constructed dynamically via wagtail.documents.viewsets.chooser, we need to explicitly set its `__module__` attribute so that the result of calling `deconstruct()` for migrations points back to the wagtail.documents.blocks module.

Also update the documentation for defining custom choosers, and add tests for deconstructing the other chooser blocks.
2022-08-15 15:38:54 -04:00
LB Johnston 9321cd9404 documentation - extending generic views - fix typo
- closing ``` (backticks) were missing
2022-08-12 17:20:24 +10:00
Thibaud Colas 21b5ad5ce9 Update chooser styles across all types 2022-08-10 15:08:57 +10:00
Matt Westcott f9fe6d0ca8 Documentation for generating chooser blocks via ChooserViewSet 2022-08-10 14:53:41 +10:00
Thibaud Colas eac5e0bc2c Finish re-implementing form styles based on design feedback & code review
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00
Matt Westcott c4d6c7d6c5 Add docs for DRF-based choosers 2022-08-05 08:34:14 +10:00
LB Johnston 2bb18d7703 remove duplicate custom bulk actions docs
- introduced in #8574
- move snippets bulk actions docs to existing markdown docs variant
2022-07-20 17:10:45 +10:00
Dolidodzik b131b4813e replace latin abbreviations with english phrases & updated docs guidelines
- added sub-section to language part of general_guidelines.md
- fixes #8860
2022-07-20 16:11:38 +10:00
Shohan 7286c530e9
Snippets bulk actions (#8574) 2022-07-10 11:42:38 +01:00
Matt Westcott 4dd3483617 Add a (non-functional) 'create' form to generic chooser modal 2022-07-04 13:48:35 +01:00
SilvestriStefano f535a0cc43 Documentation - migrate reference/** files to markdown content
- relates to #8383
2022-06-30 09:57:26 +10:00
Matt Westcott b8a9a2d319 Deprecate wagtail.contrib.modeladmin.menus.SubMenu in favour of wagtail.admin.menu.Menu
The Menu class was not originally designed to accept menu items at constructor time (instead requiring them to be passed via hooks); ModelAdmin's SubMenu class patched this functionality in, and the documentation for extending admin views piggybacked on this. Add this functionality to the base Menu class so that we don't have this unnecessary dependency on ModelAdmin.
2022-06-28 16:32:15 +10:00
LB Johnston 58095cde30 documentation minor fixes 2022-06-23 08:12:07 +10:00
Matt Westcott 911f17bf8f
Typo in generic views docs - People -> Person (#8720) 2022-06-21 17:11:56 +01:00
Noble Mittal 0be024e024 documentation - migrate docs/extending/ to md 2022-06-20 16:36:25 +10:00
Nick Moreton eec8c0088d
Update example code - Adding a group of menu items (#8683) 2022-06-16 12:01:06 +02:00
Matt Westcott 865df1153b Documentation for ChooserViewSet 2022-06-12 15:47:24 +10:00
Matt Westcott b00d19b3a0 Documentation for ModelViewSet 2022-06-12 15:47:24 +10:00
Matt Westcott b4d3cf1c30 Docs for base ViewSet class 2022-06-12 15:47:24 +10:00
LB Johnston d9981e0ec7 fix up spelling in documentation & docstrings (should be en-GB not en-US)
- customize -> customise
- color -> colour
- customizing -> customising
- organize -> organise
2022-05-13 08:13:06 +10:00
Cynthia Kiser 399a34bc93
Make nested list render as a nested list (#8516) 2022-05-11 09:05:02 +01:00
Matt Westcott 37784643e9 API docs for Panel 2022-04-22 17:25:30 +01:00
Matt Westcott 06abc49712 Add documentation for the panel rendering mechanism 2022-04-22 17:25:30 +01:00
Harris Bard Lapiroff 1adc82c044
Add trimmed to blocktrans tags. Fix #8217 (#8226) 2022-04-01 23:16:51 +01:00
Karl Hobley 75cc7da38a Move wagtail.core to wagtail 2022-03-17 17:19:59 +00:00
LB (Ben Johnston) 6ed65f14c6
Move Markdown docs to MyST parser. Fix #8074 (#8084) 2022-03-09 11:48:19 +00:00
Matt Westcott 92cc026694 Rename docs page to 'Using forms in admin views' 2022-03-02 15:55:25 +00:00
Matt Westcott 786a4a3384 Provide a documented register_form_field_override method for apps to register their own form fields with WagtailAdminModelForm 2022-03-02 15:55:25 +00:00
LB Johnston 6ecdc16bd4 remove Hallo references in the documentation 2022-03-02 20:15:33 +10:00
Thibaud Colas c5d2f98205 Remove redundant noopener from noreferrer rel attributes 2022-02-15 16:31:57 +00:00
Thibaud Colas ae14fa6e76 Remove JS compatibility code for IE11 2022-02-15 16:31:57 +00:00
Jannis Vajen 7e6755ec62 Add missing import statement in code example 2022-02-13 16:33:46 +00:00
Jake Howard 4718fae68b Update email addresses for new .org domain (#7845) 2022-01-28 12:16:24 +00:00
Sævar Öfjörð Magnússon bab1f44aed Adding documentation for grouped custom menu items (#7872) 2022-01-21 10:03:35 +00:00
Jake Howard 0a9b23979b Update links to wagtail.io website to point to wagtail.org
This covers only links to the website, not other sites
2022-01-15 20:23:44 +10:00
Tibor Leupold 783f0d4a16 Update the mentioning of `default_app_config` in the docs 2021-12-20 18:09:32 +00:00
LB (Ben Johnston) c9aa26e887
Documentation - remove all jQuery usage (#7658) 2021-12-07 15:37:33 +00:00