0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-21 18:09:02 +01:00
Commit Graph

18189 Commits

Author SHA1 Message Date
Jake Howard
24726b3797 Optimise resetting comment position from revision 2024-11-05 22:35:35 +00:00
Jake Howard
59ac877063 Don't evaluate expired objects 2024-11-05 22:35:35 +00:00
Jake Howard
37567dfe18 Check workflow cancel before getting workflow 2024-11-05 22:35:35 +00:00
ayaan-qadri
b0c90d4be2 Removed preventDefault from openPreviewInNewTab in PreviewController
Relates to #10356
2024-11-06 07:47:10 +10:00
LB
825a77d6c2 Remove all eslint-disable no-undef & use global comments (#12527)
Recommendation is to either declare globals in config or in a `/* global ` comment
See https://eslint.org/docs/latest/rules/no-undef#rule-details
2024-11-05 20:11:09 +00:00
LB
cae3229716 Remove unnecessary DOM Range polyfill (#12496)
- Remove DOM Range polyfill provided by https://developer.mozilla.org/en-US/docs/Web/API/Range
- All Wagtail supported browsers, as of a few years ago, have built in support for `document.createRange`, see https://developer.mozilla.org/en-US/docs/Web/API/Range
2024-11-05 20:01:31 +00:00
Matt Westcott
3013673c55 Release notes for #12480 2024-11-05 19:48:24 +00:00
LB
281efdbc88 Fix - Ensure WagtailAdminFormPageForm.clean works for any related name
Dynamically detect the `related_name` of any form fields attached to the page so that validation is actually run for custom related_names.

This also will apply validation even if there are multiple `AbstractFormField` subclasses related to the page.

Add unit test to ensure that duplicate clean name validation correctly runs on FormPage models with a custom related name.

Originally from #10375
2024-11-05 19:22:33 +00:00
John-Scott Atlakson
9d31fd3fa5 Fix - Ensure WagtailAdminFormPageForm.clean returns cleaned_data
Return `cleaned_data` for more consistent subclassing.

Updated documentation with an example of adding custom page validation for form fields.

Add unit test to ensure that the documented usage of extending `WagtailAdminFormPageForm` works as expected.

Originally from #10375
2024-11-05 19:22:33 +00:00
minusf
f600a356e6
Add missing apostrophe in settings documentation (#12542) 2024-11-05 16:09:55 +00:00
Sage Abdullah
f21f6dd884
Release note for #12525 2024-11-05 12:56:59 +00:00
Sage Abdullah
794fa3bcaf
Improve documentation guidelines on writing docstrings and API reference 2024-11-05 12:52:57 +00:00
Sage Abdullah
a81cc7345d
Remove e.g. in documentation guidelines 2024-11-05 12:45:26 +00:00
Sage Abdullah
17ce66ad45
Update outdated Pillow links 2024-11-05 10:44:41 +00:00
Sage Abdullah
f54b03d595
Use intersphinx to link to treebeard docs 2024-11-05 10:44:41 +00:00
Sage Abdullah
da3e0ade37
Use intersphinx to link to MyST-Parser docs 2024-11-05 10:44:41 +00:00
Sage Abdullah
ddf8423f3c
Use stable link to Wand docs
There's only one link to Wand's docs, not worth adding an
intersphinx_mapping entry.
2024-11-05 10:44:40 +00:00
Sage Abdullah
b7cf847d69
Replace outdated Wagtail editor manual link with link to the editor guide 2024-11-05 10:44:40 +00:00
Sage Abdullah
503d1a743a
Replace hardcoded Python docs links with intersphinx 2024-11-05 10:44:40 +00:00
Sage Abdullah
5615deb5b1
Add Django's custom Sphinx roles and use them to link to settings
This is necessary for rST docs, i.e. in docstrings and in eval-rst
blocks. Without this, Sphinx cannot seem to understand the role. See:
https://stackoverflow.com/questions/13387125

MyST-Parser seems to be smarter, it can figure out these custom
roles without having to register the types ourselves. This is evident in
the previous commits where I already use the :setting: role in markdown
docs.
2024-11-05 10:44:40 +00:00
Sage Abdullah
9a5be8f180
Replace more hardcoded Django links with intersphinx in rST docs
Some link labels are changed to just the code part, because using Sphinx
roles for code objects (e.g. methods, attributes) would always format the
text as inline code.

It's currently impossible to customize the formatting of a link's text in
rST. See https://stackoverflow.com/questions/4743845
2024-11-05 10:44:39 +00:00
Sage Abdullah
857b26e5a0
Replace hardcoded Django docs links to intersphinx links 2024-11-05 10:44:39 +00:00
Sage Abdullah
9d69863f3c
Use intersphinx to link to Sphinx docs 2024-11-05 10:44:39 +00:00
Sage Abdullah
795ca50dc8
Improve clarity between Markdown/MyST, rST, and Sphinx in docs guidelines
Add more emphasis on the divide between when to use Markdown and when to
use rST.

Also improve examples for versionadded and versionchanged directives.
2024-11-05 10:44:39 +00:00
Sage Abdullah
0dc1698857
Do not index autodoc examples 2024-11-05 10:44:39 +00:00
Sage Abdullah
443ccb23a8
Update docs for writing admonitions
It's MyST syntax, not rST, so it's OK to use it (sparingly).

Custom admonitions are possible with the `admonition` directive.
2024-11-05 10:44:38 +00:00
Sage Abdullah
81e6d79c5e
Improve guidelines for writing links in docs 2024-11-05 10:44:38 +00:00
Sage Abdullah
dddf9bfd81
Highlight Markdown vs reStructuredText differences for inline styles 2024-11-05 10:24:51 +00:00
Sage Abdullah
121624d5b1
Add syntax highlighting to code block examples 2024-11-05 10:24:51 +00:00
Jake Howard
71c93cb39c Remove non-unsert support for Postgres indexing (#12509)
PostgreSQL 9.4 support was dropped with the release of Django 3.0.
2024-11-04 18:19:29 +00:00
rahulsamant37
5e4c3f12c3 Remove defunct oEmbed providers (#12537)
Fixes #12054
2024-11-04 18:04:33 +00:00
Matt Westcott
0cab6641cc Release note for #12539 2024-11-04 15:40:44 +00:00
LB
f1597b61ed NPM package updates - minor updates & security fixes 2024-11-04 15:40:27 +00:00
LB
2e87f4ddec Update to Node 22 (active LTS)
- See https://nodejs.org/en/blog/release/v22.11.0
- Fixes #12531
2024-11-04 15:40:27 +00:00
LB
21206dc3e7 Clean up JS comments to be aligned to JSDoc where suitable 2024-11-04 21:14:04 +10:00
LB
6f34d3c299 Add changelog for #12503
Fixes #12498
2024-11-02 10:29:19 +10:00
Aayushman Singh
71a735476c Docs - images/documents title generation - update for CSP compliant examples
- Add helpful intro content, insure formatting of Python/JS is consistent
- Avoid inline scripts, instead ensure the example shows external script usage
2024-11-02 10:29:19 +10:00
Aayushman Singh
7f6e7d4062 Docs - Improve hooks & extending pages with CSP compliant examples
- Avoid `mark_safe` and use `format_html` where possible
- Avoid inline scripts, instead ensure the example shows external script usage
2024-11-02 10:29:19 +10:00
Aayushman Singh
b0479592ff Docs - Update extending/admin_views to have CSP compliant examples
- Changed style tag, to an external style file
- Also fixed minor spelling mistake "calender" -> "calendar" in line 190
- Avoid inline styles, instead ensure the example shows external style usage
2024-11-02 10:29:19 +10:00
Aayushman Singh
e28beb5b45 Docs - Writing guidelines - Add code example considerations
Start a small section to offer some guidance to ensure that code examples are secure, accessible and easier to use.
2024-11-02 10:29:19 +10:00
manu
b2cd95bf3b Fix sidebar page explorer transitions - avoid overflow 2024-11-02 09:59:21 +10:00
LB
114998fa21 Fix changelog for #12495 add changelog for #12510 2024-11-02 09:04:55 +10:00
LB
940ac10a9c Remove unused uuid module 2024-11-02 09:02:09 +10:00
Matt Westcott
54e1dc875a Update latest.txt for v6.3 2024-11-01 14:13:23 +00:00
Matt Westcott
793539d208 Fill in release date for 6.3 final 2024-11-01 13:21:07 +00:00
Matt Westcott
f110ddd934 Fill in release date for 6.2.3 2024-11-01 13:20:09 +00:00
Matt Westcott
e8ca33b023 Fill in release date for 5.2.7 2024-11-01 13:20:08 +00:00
Matt Westcott
a8e243d36b Release note for #12521 in 6.2.3 2024-11-01 13:14:05 +00:00
Matt Westcott
e931a40451 Release note for #12427 in 6.2.3 2024-11-01 12:50:09 +00:00
Matt Westcott
9ef8c834d2 Release note for #12367 in 6.2.3 2024-11-01 12:33:45 +00:00