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

565 Commits

Author SHA1 Message Date
Satvik Vashisht
4ee60b5d47 Adopt the pageurl template tag over page.url where possible
- Fixes #10125
- So that determining page URL is more performant - see https://docs.wagtail.org/en/stable/advanced_topics/performance.html#page-urls
2023-03-18 07:35:27 +10:00
Lovelyfin00
2519dc84e8 adding the introduction to stimulus webinar video link to docs 2023-03-08 06:35:59 +10:00
Matt Westcott
a07fe20ceb Add documentation for customising StreamField validation 2023-03-01 12:07:13 +01:00
Matt Westcott
dc2afe89b9 Specify that h1, h5, h6 are disabled in rich text by default
Fixes #10124
2023-02-22 08:48:02 +00:00
Kenny Wolf
f50f04e129
Docs - Remove deprecated Settings Tab from documentation (#9813)
Since Wagtail 4.1 the Settings Tab and the corresponding scheduling of pages has been moved to the Status side panels. As mentioned in the release notes of Wagtail 4.1: [See here](https://docs.wagtail.org/en/stable/releases/4.1.html#new-ui-for-scheduled-publishing).

In the documentation section for customising the edit interface, this snippet is still available. When implemented, there is no effect and no error is shown.

Therefore this line is obsolete and only the two tabs 'Content' and 'Promote' should be available.

Co-authored-by: Julian Bigler <disperate@users.noreply.github.com>
2023-02-19 14:32:13 +10:00
Thibaud Colas
e3d0cc8099
Iterate on accessibility checker docs (#10064) 2023-02-13 14:27:25 +00:00
Albina
546a552ac2
Add more Axe rules to the accessibility checker (#10011)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-02-13 13:01:34 +00:00
LB (Ben Johnston)
8aa892bf0f
Add recent third party tutorials (Feb 2023) (#10059) 2023-02-10 23:02:02 -05:00
LB Johnston
93d3652a15 Documentation - fix whitespace issues 2023-02-11 08:29:13 +10:00
Matt Westcott
83cbd2fffa Add missing changed=False initialisation 2023-02-10 13:20:34 +00:00
Matt Westcott
635db6d850 Update richtext to streamfield migration snippet
Perform the data migration while it's still a rich text field, to avoid the need for `use_json_field=False`. Also work around the unavailability of `page.revisions` on frozen ORM models (which has been absent since 4.0, since it's now a property on RevisionMixin rather than a true relation).
2023-02-10 13:20:33 +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
Albina
d093a78cec
Accessibility checker documentation (#10029) 2023-02-06 12:38:18 +00:00
Matt Westcott
b735700ddf Release note for #9935 in 4.1.x 2023-02-03 17:54:55 +00:00
Daniel Kirkham
161e95f4cc Add Reference Index documentation 2023-02-03 17:36:30 +00:00
Thibaud Colas
7339f6c3d1
Update guide.wagtail.org links to use most up-to-date URL and page name, with "latest" redirect 2023-02-03 11:13:15 +00:00
LB Johnston
9e016c17b8 Documentation - whitespace formatting fixes
- Includes small fix for #9969 missing space
2023-01-28 06:59:01 +10:00
Matt Westcott
04df875d17 Fix assertCanCreate to publish by default
Fixes #9939

Also remove the mentions of redirects from the documentation - the fact that the method has to check for a different redirect URL is an internal implementation detail, and not relevant to what the assertion is intending to test (namely that a page is successfully created).
2023-01-25 08:14:15 +10:00
4the4ryushin
529d2feb49 Add docs example for how to configure API renderer_classes
- Update docs/advanced_topics/api/v2/configuration.md
- Fixes #6066
- Fix up spelling of customise (UK English not US)
2023-01-19 20:43:45 +10:00
Sandil Ranasinghe
3ed84b36da make streamfield migration names from operations
- `operation_name_fragment` property added to operations
- `migration_name_fragment` property added to MigrateStreamData
- added tests, docs updated
- BaseBlockOperation inherits from `abc.ABC`
2023-01-18 19:29:56 +00:00
Jhonatan Lopes
7a6feb188f Link django docs to stable version 2023-01-11 20:18:04 +10:00
Jhonatan Lopes
a045bc38c4 Change Facebook company name to Meta 2023-01-11 20:18:04 +10:00
Jhonatan Lopes
68900b069a Change "note that.." to a note 2023-01-11 20:18:04 +10:00
Jhonatan Lopes
532f17bad7 Remove broken Divio bakery demo 2023-01-11 20:18:04 +10:00
Albina
a37c4bab3d
Re-implement design system colors so HSL values exactly match the desired RGB. Fix #9571 (#9856)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>

Fixes https://github.com/wagtail/wagtail/issues/9571
2023-01-10 08:31:51 +00:00
LB Johnston
edb86a7e8f Documentation - Fix missing links / images
Most of these are no longer applicable due to the introduction of Wagtail guide, where possible the new guide links are used now
- Re-add missing docs image for extending Draftail
- There is no Guide page (yet) for Inserting videos or images so those links have been removed
- Fix some additional reference issues where the page name and reference were causing issues
2023-01-05 12:08:27 +00:00
Jake Howard
0f209ee848 Add {% fullpageurl %} for resolving absolute URLs to pages 2023-01-04 16:13:56 +00:00
LB Johnston
8678cad90b Update third party tutorials for December 2022 2023-01-03 10:13:51 +00:00
LB Johnston
da90061ca8 Docs - formatting - clean up whitespace 2022-12-11 18:43:50 +10:00
Damascene
5d78e03084 Docs - Update PASSWORD_REQUIRED_TEMPLATE example
- Add messaging for signed in users that do not have permission for a page
2022-12-11 15:33:30 +10:00
Matt Westcott
f635038e13 Release note for StreamField data migration helpers (#9694) 2022-12-09 16:40:07 +00:00
Joshua Munn
e84cdc4e2c Add wagtail-streamfield-migration-toolkit docs
- Move RichText -> StreamField migration guide into
  advanced/streamfield_migrations.md
2022-12-09 16:40:07 +00:00
LB Johnston
3d484e133d Update icon template to allow classname
- Preserve the existing `class_name` behaviour in most other cases
- Update only docs reference to use `classname`
- Relates to #6107 & #6028
2022-12-09 20:13:33 +10:00
Sævar Öfjörð Magnússon
629b8e7a55 Add ability to easily use Form Page fields in API
Improve documentation. Adding information about how to retrieve form fields from the API.
Include the API fields on the form field model
2022-11-18 06:58:16 +10:00
4the4ryushin
35a2f2cb7e Add purge_embeds management command
- Fixes #1267
- Caching OEmbed markup prevents markup changes for existing embeds so allow an easy way to clear these if needed
2022-11-11 08:00:50 +10:00
Jake Howard
66421dac13
Performance page cleanup (#9362)
* Clean up the performance page structure

Many of the sections mentioned here will improve performance for much more than just the editor experience.

* Link to Django's performance page
2022-10-28 10:33:00 -04:00
Jake Howard
c6afb0069d Performance docs - Mention the importance of passing request and current_site to get_url
- Co-authored-by: Andy Babic <ababic@users.noreply.github.com>
2022-10-28 06:24:38 +10:00
DokuaAsiedu
af9f7ecbb3 Add docs & unit tests for assertCanCreate with publish (#9458)
- Builds on #9458
2022-10-27 07:54:32 +10:00
Ogunbanjo oluwadamilare
1428333af8 Documentation - added contributing translations guide
- Fixes #7115
2022-10-26 08:29:29 +10:00
Toyibat Adele
33c381f95c
Corrected typos and added punctuation marks to sentences missing them. (#9422)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-10-25 07:26:59 +01:00
Damilola Oladele
64e3595c6e
Grammatical adjustments of advanced topic Documents (#9426) 2022-10-21 00:32:50 +01:00
Damilola Oladele
de28bca258
Grammatical adjustments of advanced topic images, to resolve issue #9407 (#9408)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-10-21 00:30:13 +01:00
Jake Howard
55f42d29c8 Mention using the image_url tag for increased performance on image URLs 2022-10-18 08:16:02 +10:00
Andy Babic
c94ba56128 Documentation - update testing page with WagtailPageTestCase
- Docs for #9294
2022-10-18 08:00:20 +10:00
LB (Ben Johnston)
18371e2113
Documentation - adopt consistent sh console code snippets (#9321) 2022-10-13 07:25:19 +01:00
LB (Ben Johnston)
cd88d1191d
Add recent third party tutorials (October 2022) (#9307) 2022-10-13 07:19:36 +01:00
LB Johnston
2e8709e0d6 Documentation - update dead/redirected links 2022-10-11 20:44:08 +10:00
Haydn Greatnews
02b2b7c9f2 Fix some casing code in examples in API configuration docs 2022-10-01 17:56:08 +10:00
Storm Heg
6a8ce3161e Fix code style of example in Wagtail API docs
Example code should be compliant with PEP-8.
2022-09-19 21:49:01 +10:00
Christophe Bastin
5dad39fb57 docs: APIField naming (#9173) 2022-09-09 13:47:46 +01:00
Jake Howard
5108b5f82a Add ability to set default configurable attributes to image tags
- Allow users to override the default attributes given to an image
- Update tests to account for new tags
- Add documentation for custom image attributes
- Recommend that loading=lazy & decoding=async be considered for performance in front-end sites
2022-08-25 18:20:45 +10:00
Mehrdad Moradizadeh
b92dcc11b4
Documentation - add WAGTAILADMIN_RICH_TEXT_EDITORS reference (#9079)
- Mention settings on admin customisation page
- fixes #9070
2022-08-25 06:31:04 +10: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
Thibaud Colas
ca7f23d176
Update InlinePanel and StreamField styles for new designs (#8983) 2022-08-12 13:17:40 +01:00
LB Johnston
fd9a4a8745 add documentation for overriding the password reset form content
- relates to work done via #8925
- relates to request for override capacity in #2309
2022-08-10 20:32:35 +01:00
Matt Westcott
5de877967d Reword static files docs to fix formatting error 2022-08-10 20:01:17 +01:00
tijani
61f6aeeb1a Add path & re_path pattern types for RoutablePageMixin
* Modified route decorator so it adds new route to view depending on pattern type; default to path
* Made a separate decorator
* Renamed route to path and updated RoutablePage models
* Added a check to warn user when using regex with path decorator
* Made @route alias of @re_path, added tests for @re_path
* resolves #7031
2022-08-08 20:09:38 +10:00
PaarthAgarwal
d2529cad92 Restyling all log in & password reset flow pages
- add id=main to all login flow form templates for non-JS skip link usage
- remove inline script to focus on username field in login form
- adopt a consistent DOM layout for all log in & password reset flow forms
- ensure h1 is at the top of the DOM in all forms
- add wagtail logo to sign in form and document the ability to override it
- fixes #2309
2022-08-06 19:06:19 +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
Thibaud Colas
8a7e0884d7 Finish implementing rich text max length with identical client & server count 2022-08-04 16:59:31 +02:00
Jacob Topp-Mugglestone
0cdb9d8915
Implement combined rich text split and block insertion (#8923)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-08-02 18:31:32 +01:00
LB (Ben Johnston)
8cda62471d
Add third party tutorials (#8924) 2022-08-01 09:25:41 -04:00
Thibaud Colas
624ca4b7cc Add missing grey-150 and teal-75 2022-07-20 12:08:47 +01:00
Thibaud Colas
c87628758c Update documentation for custom admin colours, with live example
Co-authored-by: Scott Cranfill <scott@scottcranfill.com>
2022-07-20 12:08:47 +01:00
Thibaud Colas
5c362bf831 Refactor all stylesheets to use CSS variables
Co-authored-by: Scott Cranfill <scott@scottcranfill.com>
2022-07-20 12:08:47 +01:00
LB Johnston
c8d1a6b00a documentation - fix a few internal references 2022-07-20 17:30:08 +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
LB Johnston
cda437804e fix up markdown docs conversion issues
- introduced in #8759 & #8569
2022-06-30 16:36:37 +10:00
SilvestriStefano
f535a0cc43 Documentation - migrate reference/** files to markdown content
- relates to #8383
2022-06-30 09:57:26 +10:00
Sævar Öfjörð Magnússon
0705f1d765
Document the prefix_default_language parameter to i18n_patterns (#8763)
* Document the prefix_default_language parameter to i18n_patterns
* Update docs/advanced_topics/i18n.md

Co-authored-by: Dan Braghis <dan@zerolab.org>
2022-06-28 10:41:08 +01:00
LB Johnston
e140c41a89 documentation - markdown formatting
- apply general fixes to existing markdown documentation
- various cases of rst syntax still used
- update some links to be the new format
- clean up line breaks (prettier)
2022-06-25 22:44:42 +10:00
igor
fd7ef0a68a
Fix assert type in test_content_page_subpages method (#8725)
Co-authored-by: Igor Strapko <igor@goodpraxis.coop>
2022-06-22 11:03:50 +01:00
Noble Mittal
0be024e024 documentation - migrate docs/extending/ to md 2022-06-20 16:36:25 +10:00
Karl Hobley
996866fc06 Changelog/release note for #8686 2022-06-16 10:10:00 +01:00
Sævar Öfjörð Magnússon
e660326075
Adding multi site support to the pages API. (#8686) 2022-06-16 09:33:47 +01:00
Thiago Costa de Souza
f42ec9ed6b convert documentation in advanced_topics from rst to md
- relates to #8383
2022-06-09 20:32:56 +10:00
LB Johnston
6d0659333d fix spelling - behaviour vs behavior
- documentation should be using the British english spelling
- most other spelling is `behaviour` so this aligns with the majority
2022-06-02 07:56:05 +10:00
Tidiane Dia
25c43273a9 Add docs and releases notes for prefetch_renditions method
Also add tests to ensure example in docs works fine.
2022-06-01 16:51:35 +01:00
Thiago Costa de Souza
e6865e7b0f documentation - migrate advanced_topics/customisation/** to md 2022-05-27 08:02:16 +10:00
Thiago Costa de Souza
4424d23fa4 documentation - migrate advanced_topics/images/** to md 2022-05-27 07:51:45 +10:00
Thiago Costa de Souza
7e73349dc1 documentation - migrate api section to markdown 2022-05-25 21:01:38 +10:00
LB (Ben Johnston)
9f206d258c
Make it possible to reuse and customise Wagtail’s fonts with CSS variables. Fix #8406 (#8544)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-05-20 14:19:30 +01: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
Paarth Agarwal
da78e0f449 added full_url field for image rendition field api
- resolves #7558
2022-04-20 07:08:24 +10:00
Simon Krull
4f3ec696ff Fix minor typo in the documentation - third party tutorial 2022-04-18 08:26:22 +10:00
luz paz
5c894345b9 Fix various user-facing and non-user-facing typos
- Found via `codespell -q 3 -S *.po,*.js`
2022-04-18 08:18:03 +10:00
Daniel Kirkham
c877bf9886 convert various documentation pages to Markdown
- Removes use of topic:: in docs as this directive is not needed
- resolves #8323
2022-04-18 08:16:27 +10:00
Andy Babic
0c1ecc35f1
Add guidance on rendition prefetching to docs (#8363) 2022-04-16 11:18:23 +01:00
Andy Babic
2d5571f316 Include the new methods in the docs 2022-04-14 12:12:23 +01:00
Matt Westcott
cdeb1cf479
Add use_json_field=True to all StreamField examples (#8359)
This argument should be used on all new StreamFields created under Wagtail 3. It does add some clutter to the examples, but only using it in select cases would create more confusion...
2022-04-14 11:09:19 +01:00
Kevin
0ed4375c3d Fixes incorrect link to Wand docs 2022-04-07 16:20:43 +01:00
LB Johnston
5f4942f9ad documentation - fix broken docs references
- remove 2.16 reference to setting that no longer exists
2022-04-07 12:52:03 +01:00
Caio Jhonny
21202e421e Add missing import django models (#8301)
Django models need to be imported
2022-04-07 12:18:37 +01:00
saurabh
a641057fc2 fixed the errors in deploying.rst and i18n.rst 2022-04-04 06:48:02 +10:00
Saurabh
a70aefe243
fixed punctuation issues and modified text in wagtail documentation. (#8262) 2022-04-01 17:12:57 +01:00
Matt Westcott
b189ab8382 Move wagtail.admin.edit_handlers to wagtail.admin.panels 2022-03-25 10:44:25 -04:00
Karl Hobley
75cc7da38a Move wagtail.core to wagtail 2022-03-17 17:19:59 +00:00
Karl Hobley
0fd99886a2 Move tests to test 2022-03-17 17:19:59 +00:00
p0lygun
fda36c7343 Documentation - convert advanced topics docs to markdown 2022-03-16 20:48:03 +10:00