Wykres commitów

528 Commity (main)

Autor SHA1 Wiadomość Data
Chiemezuo 9f464ff3e9
Add note about csp in embeds
Co-authored-by: Sage Abdullah <sage.abdullah@torchbox.com>
2025-09-11 11:39:07 +01:00
LB 0e8ee62206 Clean up whitespace formatting in documentation 2025-07-28 09:19:23 +02:00
Thibaud Colas ce36009ac7 Image settings DX tweaks 2025-07-24 19:47:55 +10:00
Stefan Hammer 958a842843 Change handling of InlinePanel's label to work with other languages
- Removed capfirst() when initializing the label from the related
  model's verbose name, so it can be used for both the add-button and
  the child panel's header. Further used capfirst in the template when
  rendering the child panel's header and removed lower filter from the
  add-button's label.
- Tests:
  - changed labels and verbose names related to the InlinePanel to
    the correct singular and lowercased form
  - removed unnecessary heading kwargs, where the default heading
    already equals that definition
- Docs: Removed unnecessary and verbose label and header definitions
  from the documentation

Fixes #13221
2025-07-24 11:07:17 +02:00
Sage Abdullah 5d5f6d55ec Tweak docs for StreamField callable `preview_value`
You cannot use lambdas in migrations
2025-07-15 06:04:19 +10:00
Ziyao Yan 0ac7c158b7 Allow `Block.preview_value` and `default` to be callables for dynamic previews
- Add callable preview & default tests
- Add example documentation
- Closes #13094
- Closes #7992
2025-07-14 08:21:53 +10:00
Sage Abdullah 8a2b0973d2 Add docs for headless user bar and accessibility checker 2025-07-12 13:48:51 +01:00
Sage Abdullah ad151fcd7a Remove outdated mention of moderation items in user bar 2025-07-12 13:48:51 +01:00
gaurav23v c3c26aac53 Add documentation for StreamField group option 2025-07-10 08:47:42 +10:00
Jake Howard 0c83ce5653 Improve documentation around securing user-uploaded files (#13098) 2025-06-24 18:35:12 +01:00
Sage Abdullah 4d29b94f91
Add django.contrib.postgres to test settings INSTALLED_APPS
Ref: 74b31cd26b
2025-06-18 13:31:11 +01:00
smark-1 405fa76288
Document `Block.is_previewable` 2025-05-23 11:17:02 +01:00
Sage Abdullah 9c4630b5aa Document WorkflowMixin._workflow_states and its difference with workflow_states 2025-05-07 14:49:20 +01:00
Sage Abdullah 69940fc94a Document RevisionMixin._revisions and its difference with revisions 2025-05-07 14:47:32 +01:00
Matt Westcott 3e7c2b079a Remove versionadded / versionchanged notes for 6.4 2025-04-25 14:26:59 +01:00
Andy Chosak b376a7b65d
Don't duplicate snippets in "Snippets" menu
This change alters the behavior of the sidebar "Snippets" menu such that
the snippet index view doesn't include snippet models that have been
configured with their own menu item.

Currently, the "Snippets" menu doesn't appear if all snippet models have
their own menu items; however, if some models do and some don't, the
snippets index view lists all of them, causing some duplication in the
UI which could be confusing for editors.

This commit changes this behavior so that "Snippets" is only used to
edit those snippet models that aren't editable elsewhere.

A new setting (WAGTAILSNIPPETS_MENU_SHOW_ALL) has been added to always
show the snippets menu and all snippets models. This setting will allow
for continuation of the current behavior for those users that desire it.

Closes issue 11340.
2025-04-17 14:31:31 +01:00
Sébastien Corbin 6a7917697c
Fix typo in preview blocks documentation 2025-03-24 10:01:52 +01:00
LB de99b8b90f Docs - Minor whitespace cleanup 2025-03-15 15:25:30 +10:00
Matt Westcott 2acd50c2db Simplify example of appending a rich text block to a streamfield 2025-02-05 20:38:19 +00:00
Sage Abdullah 251d1d188c Expand docs for StreamField block previews 2025-02-03 16:43:29 +00:00
Sage Abdullah 88bb61d32e Minor tweaks to StreamField block previews documentation 2025-02-03 16:43:29 +00:00
Matt Westcott 335817e289 Revert "Simplify example of appending a rich text block to a streamfield" (#12831)
See #12827 - `normalize` is not applied on append, so the value type must match.

This reverts commit b0cda80626.
2025-01-29 20:53:51 +00:00
LB 2ce58fed95 Refine 6.4 release notes
- Fix a few small typos & formatting issues
- Ensure the form builder changes are better documented
- Add links to other docs pages where possible
- Improve consistency with usage of `code` backticks on modules
- Add docs reference for StreamField `get_template` docs
2025-01-22 10:31:35 +00:00
Mohamed-Rabiaa f25a95deee Fix typo: Replace 'another field' with 'an author field' in writing_templates documentation (#12799) 2025-01-21 20:35:26 +00:00
Matt Westcott 7f39750de9 Clarify lack of support for filtering across relations in RelatedFields docs
Fixes #11757
2025-01-21 11:07:12 +00:00
Matt Westcott 4244943300 Fix typo in block preview example 2025-01-20 18:19:32 +00:00
Sage Abdullah ac4bd79e40
Add initial docs for StreamField block previews 2025-01-20 17:35:06 +00:00
Cynthia Kiser e6f27c95e8 Update accessibility concerns docs in light of GSOC contextual alt text project
This also documents default_alt_text, providing a stricter example that does not fall back to image title
2025-01-20 11:46:54 +00:00
Matt Westcott 581bb5ccd7 Use double quotes in code snippet
Co-authored-by: sag​e <laymonage@gmail.com>
2025-01-16 14:53:16 +00:00
Matt Westcott 54797e3826 Document Block.get_template in StreamField usage guide 2025-01-16 14:53:16 +00:00
Tom Usher 75e07498f4 Add support for specifying an operator on Fuzzy queries (#12714) 2025-01-13 17:04:35 +00:00
Unyime Emmanuel Udoh d8d75bddf0
Fix crash when loading the dashboard with only the "unlock" page permission 2025-01-07 12:03:11 +00:00
Jake Howard 076af8bec8 Automatically set CSP when serving images and documents (#12672)
Addresses #12617
2024-12-17 21:06:39 +00:00
Clifford Gama a142363a80 Add missing backticks on image tag 2024-12-02 12:10:10 +00:00
Clifford Gama a1de5bdbd7 Introduce tags and filters as they are in user-guide docs (#12647) 2024-12-02 12:07:48 +00:00
helloshiv f0d3edfad6
Fix wagtailcache and wagtailpagecache examples to not use quotes for the fragment_name 2024-11-19 14:18:17 +00:00
Sage Abdullah 857b26e5a0
Replace hardcoded Django docs links to intersphinx links 2024-11-05 10:44:39 +00:00
Ayaan 0913118da4
Replaced Twitter references in the docs with more appropriate alternatives (#12516). Fix #12483
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-11-01 11:03:54 +00:00
Sage Abdullah 3802f8bf46 Fix remaining XHTML errors in docs to remove ePub build errors
Had to remove the <details> element for the section linking example in
the "Reference links" section.

This is because Sphinx/MyST renders a <section> element for each heading
and closes it when the next heading starts. If we create a heading
inside a <details> element, the <section> element will not be closed
until the next heading starts, which generates invalid HTML.
2024-10-31 07:52:49 +10:00
Srishti-j18 fd9b1ca22b Docs - Update spelling to US customize variants
Fixes #12476
2024-10-29 18:47:43 +10:00
LB fa81e2dbbe Docs - update spelling to US 'customizations' 2024-10-25 21:14:52 +10:00
Srishti-j18 f588fcf249 Documentation - Reposition model & panel references
- Move model reference to directly under the references section, not the reference/pages section
- Move panel reference to directly under the references section, not the reference/pages section
- Merge panel API with panels reference pages
- Fix confusing heading levels in the page model recipes page
- Fix title in model reference to align with docs style guide
- Adopt US spelling for customize (panels) reference key
2024-10-25 20:30:12 +10:00
Matt Westcott 93f8600c31
ImageBlock for StreamField (rebase of #11791) (#12416)
Co-authored-by: Chiemezuo <chiemezuoakujobi@gmail.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-21 16:11:34 +01:00
Matt Westcott 0d0700207d Release note for #12384 2024-10-18 13:02:24 +01:00
Matt Westcott 92567f6203 Document HEIC image support 2024-10-17 23:12:27 +01:00
Drikus Roor 6aa4647120 docs: Clarify file location, add missing imports 2024-09-28 17:45:32 +10:00
LB Johnston 4af8ab528b Documentation - formatting clean up 2024-08-29 18:32:20 +01:00
Matt Westcott 42c566b19b Remove note about database search not ordering by relevance
This text existed since Wagtail 1.x and is referring to the original database backend that just did substring matches (which is now the fallback backend), before we supported database-backed full-text search.
2024-07-24 22:31:53 +01:00
Matt Westcott e1f9d97238 Remove versionadded/versionchanged notes for 6.1 2024-07-22 13:43:34 +01:00
Matt Westcott a7d72f9fbf Fix formatting errors 2024-07-19 00:21:39 +01:00