Wykres commitów

668 Commity (main)

Autor SHA1 Wiadomość Data
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
Nicolas Ferrari 11e7936562
Add alwaysdata among Cloud providers in documentation (#8070)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-15 12:29:59 +00:00
LB (Ben Johnston) e3b6e79a8e
Documentation - migrate form builder docs to markdown (#8007)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-10 08:43:49 +00:00
LB (Ben Johnston) 6ed65f14c6
Move Markdown docs to MyST parser. Fix #8074 (#8084) 2022-03-09 11:48:19 +00:00
LB (Ben Johnston) 58a8a31dd6
docs - add third party tutorials Jan/Feb 2022 (#8067) 2022-03-09 09:19:43 +00:00
Matt Westcott 31139e8b24 Remove references to StreamFieldPanel and ChooserPanels from docs 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
Matt Westcott 8d40a978ef Remove old versionadded / versionchanged notes 2022-02-08 19:00:47 +00:00
LB (Ben Johnston) b297d521c1
update a few wagtail.io references to wagtail.org (#7905) 2022-02-02 10:39:14 +00:00
Cynthia Kiser 82d9330d77 Added a section to deployment docs about configuring serving of user uploaded files (#7553) 2022-01-21 11:21:53 +00:00
LB (Ben Johnston) 83dd59aef6
documentation - third party tutorials (#7869) 2022-01-21 07:31:00 +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
Matt Westcott d6d43338ef Drop support for Django <3.2 2022-01-14 14:23:56 +00:00
Matt Westcott 07f1c777e7 Document the bound_blocks property of ListValue 2022-01-07 16:11:45 +00:00
LB (Ben Johnston) c9aa26e887
Documentation - remove all jQuery usage (#7658) 2021-12-07 15:37:33 +00:00
Dmitrii Faiazov b314f28f37
Add `alias_of` field into pages API 2021-12-02 13:36:55 +00:00
JS 40e6e1c803 Docs - Update API configuration example
Code correction - date format was incorrect.
2021-11-30 07:58:13 +10:00
LB Johnston 307d0126a2 add ability to customise the pre-filled document title
- leveraging a custom DOM event provides the ability to update the title before being added to the form
- add documentation
- fixes #7508
- see also #4945
- update image docs for same behaviour to be more readable
2021-10-15 18:25:23 +10:00
LB Johnston e03c86f3f8 add ability to customise the pre-filled Image title
- leveraging a custom DOM event provides the ability to update the title before being added to the form
- multiple image upload (view) needs to be able to read the title POST data
- add documentation
2021-10-06 19:53:30 +10:00
LB (Ben Johnston) 2eb7232055 Deployment docs - update wagtail getting started 2021-10-05 21:00:48 +10:00
LB Johnston 3e2012373a update documentation & 2.15 release to drop IE11 support
- update browserslist
- fixes #6170
2021-10-04 12:35:58 +01:00
Nick Smith 781c2d14d3 Add How-To instructions for landing-page redirects
This uses both the forms and routable_page contrib modules to redirect
without using a separate landing page.
2021-10-04 14:12:28 +10:00
LB Johnston 8d36168c5c documentation - add third party tutorials from late 2020 to now 2021-08-19 18:53:20 +01:00
Jannis Vajen fd42d192c9 Fix typo in StructBlock documentation
The StructValue class `LinkValue` is refrerenced as `LinkStructValue` in the Meta class.
2021-08-19 14:48:16 +01:00
Matt Westcott 4e2685f47d Add an 'Extending Wagtail' section to the docs 2021-08-03 16:07:18 +01:00
Karl Hobley beeb6066ad Changelog / release note for #6843 2021-07-30 11:22:59 +01:00
Karl Hobley 2b2256a31f Implemented background_position_style property on renditions 2021-07-30 11:08:44 +01:00
Karl Hobley 750ecf50b6 Transform focal point 2021-07-30 11:08:44 +01:00
Naomi I. Morduch Toubman 99f05d67cb
Change `master` to `main` (in more places) (#7358)
* Update references to branches now named `main`

* Change unnecessary use of `master`

* Change link to be to specific ES docs version

Old release notes should link to contemporaneous docs when possible
2021-07-21 14:09:31 -04:00
Karl Hobley bea17ac8b6 Add a log action for copy_for_translation operation (#7352)
Currently, when a user copies a page for translation, the 'copy' log action is used.

This adds a more specific 'copy_for_translation' operation to be used instead when the user is translating.
2021-07-21 16:22:55 +01:00
Matt Westcott bdfa3811d1 Remove outdated versionadded/versionchanged annotations 2021-07-13 17:10:56 +01:00
Nick Smith 1d03c36421 Change some word choices in the docs
This replaces several US English dialectical uses of _regular_ with
British English equivalents _normal_ or _standard_. This is the result
of a search of the docs for the string 'regular', rather than due to any
US English seen in the user interface.

This search also found one use of _regularly_ where _often_ was closer
to the intended meaning, a change which is less about dialect than about
word choice.
2021-07-13 10:51:46 +01:00
Matt Westcott be857cc5e9 Release note / Upgrade consideration note for #7292 2021-07-12 16:55:21 +01:00
Thomas Kremmel 9b387625ca docs: add facebook and instagram oembed change docs 2021-07-12 15:31:31 +01:00
Coen van der Kamp 3f24beaae6 Add background information on multi site, multi instance and multi tenancy (#7228) 2021-07-09 17:05:28 +01:00
Matt Westcott 9fad84b768 Refactor getChooserConfig / filterEntityData into subclasses of ModalWorkflowSource
This means we're not artificially forcing four different entity types into the same code path, and makes it possible to define new entity types outside of this module.

Also relax the eslint no-unused-vars to allow unused function parameters - having multiple classes following the same interface is a legitimate use of this.
2021-06-28 12:25:29 +01:00
Thibaud Colas 55fe295346 Remove docs for WAGTAILSEARCH_RESULTS_TEMPLATE, WAGTAILSEARCH_RESULTS_TEMPLATE_AJAX
The templates they would override have been removed from our search app, and copies placed in the project template.
2021-06-28 11:23:24 +01:00
Petr Dlouhý 50e4f5151d fix small youtube embed - allow to override max_width/max_height in EmbedBlock 2021-06-25 16:15:09 +01:00
Daniel 431549c427 incorrect field name 2021-06-22 14:34:16 +01:00
Matt Westcott 701fc099a4 Fix mention of documents being served through a Django view
Since Wagtail 2.7, this is no longer true by default when using remote storage - only when `WAGTAILDOCS_SERVE_METHOD` is explicitly set to `serve_view`.
2021-06-22 09:30:33 +01:00
Godswill Melford 212def6aa2 docs: update custom_account_settings.rst
Modify CustomSettingsForm import in hooks.py in user model usage
2021-06-16 10:19:03 +01:00
Thibaud Colas 14b0e807d6
Update guidance on alt text for images in rich text
This shortcoming was fixed and released in Wagtail 2.13
2021-06-11 14:11:55 +01:00
Matt Westcott 004bcf2650
Add documentation for custom JS on StructBlocks (#7164)
* Document the need for data-contentpath with StructBlock.form_template

* Add documentation for custom JS on StructBlocks
2021-05-12 11:52:25 +01:00
Matt Westcott aa2d10c713 Release note for #6477 2021-05-11 15:05:59 +01:00
Matt Westcott c1f1c2e95c Copyediting for group view customisation docs 2021-05-11 14:56:33 +01:00
Jan Seifert 9dda314263 Allow GroupViewSet to be customised (#6477) 2021-05-10 14:43:53 +01:00
fabienheureux 6d01ced56b
Fix usage of html syntax instead of html+django (#7138) 2021-05-05 11:08:40 +01:00
Karl Hobley 06be13fda0 Changelog / release note for #7077 2021-04-22 17:29:24 +01:00
Jaap Roes aafd32b66f
Fix #7007: Add ancestor_of API filter (#7077)
* Fix #7007: Add ancestor_of API filter

* Alter descendant_of_with_type test to find at least one page
2021-04-22 17:23:26 +01:00
Karl Hobley ab8608a74f Docs for customising account settings 2021-04-20 18:43:22 +01:00
jacobtoppm 7907aff7ff Use CSS variables for comment highlight colours 2021-04-20 18:25:30 +01:00
Coen van der Kamp b1b69360a3
Add contrib simple translation (#6528) 2021-04-14 08:56:00 +01:00
Storm Heg 1ff679f861
Add `wagtail.reorder` audit log action
This adds a special audit message for reordering pages.

Previously, reordering pages under the same parent would show the
slighly misleading message that the page was moved to the same parent.
A special page reordered message would be more appropiate in this case.
2021-03-31 18:48:44 +02:00
Matt Westcott 9f084fff6d Add StreamField to title of BoundBlocks page 2021-03-23 18:57:53 +00:00
Matt Westcott 82002df7aa Extend streamfield customisation docs to point to the widget API 2021-03-23 18:57:53 +00:00
Matt Westcott 11d612e6d6 Extend explanation of StructValue 2021-03-23 18:57:53 +00:00
Matt Westcott c7fd13b20c Split off StreamField customisation docs into a new page 2021-03-23 18:57:53 +00:00
Matt Westcott 37c2326150 Split up StreamField documentation [skip ci] 2021-03-23 18:57:53 +00:00
Jaap Roes 3cc4713316
Replace example YouTube url with a working one (#6923) 2021-03-16 10:41:09 +00:00
Naomi I. Morduch Toubman 664b0489fe
Change `master` to `main` (#6830)
* Update references to `master` branch to say `main`

* Update external links

* Update links in old release notes
  Use tagged versions of code rather than current code
2021-03-03 13:33:19 -05:00
Storm Heg 24ef0e62e6 Fix documentation indentation
Fix code block indentation in tutorial.rst

Prevent it from being displayed as a quote.

Fix indentation in pages.rst

Fix indentation in indexing.rst

Fix indentation in searching.rst

Fix indentation in backends.rst

Fix indentation in renditions.rst

Fix indentation in custom_image_model.rst

Fix indentation in feature_detection.rst

Fix indentation in image_serve_view.rst

Fix indentation in custom_document_model.rst

Fix indentation in i18n.rst

Fix indentation in privacy.rst

Fix indentation in page_editing_interface.rst

Fix indentation in rich_text_internals.rst

Fix indentation in extending_hallo.rst

Fix indentation in configuration.rst

Fix indentation in usage.rst

Fix indentation in theory.rst

Fix indentation in model_reference.rst

Fix indentation in queryset_reference.rst

Configure editors to indent .rst files with 2 spaces

In order for the documentation to be styled correctly, the generator
depends on indentation. Too much indentation can result in the content
being wrapped in a quote block, which looks bad.

Fix indentation in sitemaps.rst

Fix indentation in frontendcache.rst

Fix indentation in routablepage.rst

Fix indentation in table_block.rst

Fix routablepage.rst autodocs disppearing

Fix indentation in table_block.rst

Fix indentation in redirects.rst

Fix indentation in table_documentation-modes.rst

Fix indentation in browser_issues.rst

Fix indentation in release_process.rst

Fix indentation of release notes

One more indent fix in the release notes

Fix indentation warnings

Fix warning about undefined label in docs

Error during `make html`:

  wagtail/docs/releases/1.7.rst:25: WARNING: undefined label: jpeg_image_quality
2021-02-26 09:17:00 +00:00
Matt Westcott 720cfebc22 Remove jinja2 from advanced_topics index
a bit of final cleanup from #6779
2021-02-04 20:34:20 +00:00
James Gutu 93abdabd41 moved jinja2 page from Advanced Topics to Reference 2021-02-04 12:12:11 -08:00
John Esther e317e562ea
Changed the title for Wagtail AMP support (#6775) 2021-02-04 17:28:31 +00:00
Thibaud Colas 75b73b2bf6
Fix typo in inline code formatting (#6783) 2021-02-04 17:26:21 +00:00
Thibaud Colas 30b90a0f65
Improve wagtailforms accessibility guidance (#6740) 2021-01-29 19:45:48 +00:00
Thibaud Colas bf33842f45
Fix documentation typo 2021-01-27 16:01:06 +00:00
Joshua Marantz 8e79c61564
Implement CSS variables for admin color theming (#6409)
Co-authored-by: JNaftali <jmarantz@thelabnyc.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-01-17 02:17:41 +00:00
Vlad Herasymenko 454002fbd7 Include default emed finders in facebook embeds configuration example (#6625)
Facebook and Instagram embeds configuration section should include the default finders for all other providers. It's unclear for someone who just wants to fix his facebook embeds
2021-01-15 21:15:46 +00:00
Matt Westcott b13641e936 Support custom document models with required fields
Same approach as 4023a90d6e for images - define an UploadedDocument model to hold the uploaded file up to the point where the required metadata has been supplied.
2021-01-15 20:05:08 +00:00
Matt Westcott c29a92f801 Fix trailing whitespace 2021-01-15 19:44:37 +00:00
Fernando 30ad03d4ca Update S3 CORS documentation for Boto3 (#6668)
Boto3 has been around for a long time now. Adding a Boto-specific parameter in a tutorial is confusing (it was for me) as people are likely to install Boto3 directly and skip Boto. The `AWS_HEADERS` parameter was replaced by the `AWS_S3_OBJECT_PARAMETERS` parameter in Boto3 and the parameter that controls the access control list specifically is the `ACL`.

By the way, are the instructions on line 50 still relevant today?
2021-01-15 19:42:41 +00:00
Thibaud Colas 1914394bc8
Update wagtail forms accessibility considerations to link to Django tickets (#6687) 2021-01-12 16:39:57 +00:00
Brian Oliver ac88310402
Update third-party tutorials (#6622) 2020-12-09 10:58:50 +00:00
Matt Westcott 2dfb82406a whitespace fix 2020-12-08 12:53:41 +00:00
Matt Westcott 4dc9f81d68 Add {% if page %} around language selector example
As suggested here: https://stackoverflow.com/questions/65065301/wagtail-not-redirecting-500-error-instead-of-404-when-debug-false/65065608?noredirect=1#comment115125518_65065608
2020-12-08 12:53:41 +00:00
Thibaud Colas 06c3c3a24b
Replace image upload in wagtailforms tutorial with latest version. Fix #5284 2020-12-08 10:20:48 +00:00
Cynthia Kiser 28cee081b2 Add custom oEmbed finders for Facebook and Instagram (#6550)
Move code from https://www.codista.com/en/blog/wagtail-instagram-new-oembed-api/ into core

Add custom oembed finder for Facebook

Apply suggestions from @originell's code review

Co-authored-by: Luis Nell <luis.nell@codista.com>

FIXUP More places to change the exception name (and a linter fix)

Extend Instagram/Facebook tests to check HTTP request

Add documentation for omitscript parameter
2020-11-17 15:06:24 +00:00
Thibaud Colas 37e9e1d54d
#6090 Document accessibility considerations (#6272)
Co-authored-by: Coen van der Kamp <coen@fourdigits.nl>
2020-11-06 15:38:00 +00:00
Matt Westcott 6e1e36256a Remove elasticsearch 2 support 2020-11-05 12:04:12 +00:00
Matt Westcott d56f8ea1c5
More prominent note about wagtail-localize in i18n docs (#6506) 2020-11-02 12:46:16 +00:00
Karl Hobley 6234023f39
Changelog / relase note for internationalisation (#6492)
* Changelog / relase note for internationalisation

* Apply suggestions from code review

Co-authored-by: Matt Westcott <matthew@torchbox.com>
2020-10-23 14:26:44 +01:00
Karl Hobley bd70ecf318 Tweaks to internationalisation docs 2020-10-23 10:29:22 +01:00
Matt Westcott 7d92e3982f Fix steps for adding translations to an existin snippet
* Fix BootstrapTranslatableMixin to skip TranslatableModel's system check for the missing unique constraint
* Fix incorrect import for BootstrapTranslatableModel and use of `--empty` in final schema migration
* Clarify handling of Meta classes, the fact that you need to run makemigrations for step 1, and what to do for the non-nullable 'locale' prompt
2020-10-22 16:44:54 +01:00
Matt Westcott 5f712b803a fix duplicate target name enabling_internationalisation 2020-10-16 14:15:33 +01:00
Karl Hobley 82dafc7ef8 Add docs for new i18n API filters (#6452) 2020-10-16 13:57:37 +01:00
Karl Hobley bdfee22e8b
New topic docs for internationalisation (#6436)
* New topic docs for internationalisation

* Spelling + Grammar fixes

* Clarity fixes

* Fix formatting issues
2020-10-16 13:36:19 +01:00
Sævar Öfjörð Magnússon 9d10e28214
Update wagtail app list to match installed apps in documentation 2020-10-06 15:03:39 +01:00
Karl Hobley 6e5f89adf2 General spelling fixes 2020-10-03 14:43:03 +01:00
Karl Hobley 9195131738 Lint docs with doc8 2020-10-03 14:43:03 +01:00
Matt Westcott dc110b5432 Remove note about MSSQL being known to work
As per https://github.com/wagtail/wagtail/issues/6393
2020-09-30 16:29:08 +01:00
Katie McLaughlin 637000fc08 Add notes for CORS settings on Google Cloud Storage 2020-08-24 13:05:38 +01:00
Katie McLaughlin 707dc171dc Add Google Cloud deployment references
App Engine video
Cloud Run codelab
2020-08-24 13:05:38 +01:00
Matt Westcott e0dc53d9ad Remove versionadded/versionchanged notes for 2.9 2020-07-28 12:53:22 +01:00
Matt Westcott d3f7ffa369 Add a variant of WorkflowAction that just collects, validates and returns form data so that the action can be performed separately 2020-07-24 16:59:33 +01:00
jacobtoppm c79668929e Update reference documentation, custom task guide, and release notes, and fix documentation build errors 2020-07-24 16:59:33 +01:00
Dan Braghis 92e7330180 Update docs with current log actions and the rule of thumb for logging 2020-07-24 16:59:33 +01:00
Dan Braghis f69287f6f4 Add documentation 2020-07-24 16:59:33 +01:00
Dan Braghis fb0742802f Include task description in choosers, if defined (#6200) 2020-07-24 16:59:33 +01:00
Karl Hobley edfd17a1f1 Reduce usage of edit handlers for workflow management (#6172)
* Use plain old Django forms for tasks

* Revert "Add ExcludeFieldsOnEditMixin for edit handlers, disabling specific fields when bound to an existing instance rather than creating a new one"

This reverts commit 62961b74bb.

* Move Workflow edit handler creation into Workflow forms

Only advantage of having it the way it was before is that allows
overriding the edit handler in subclasses. But nobody will be doing this
with workflows.

I've added a note into the code pointing out that we might want to
rethink using edit handlers if:

 - It gets easier to style formsets without using InlinePanel
 - We want to allow customisation of the form (the use of edit handlers
   should be considered an internal implementation detail at the moment)

* Make task name readonly but groups editable

* Update wagtail/admin/templates/wagtailadmin/workflows/task_chooser/includes/create_form.html

Co-authored-by: Dan Braghis <dan@zerolab.org>

* Update wagtail/admin/forms/workflows.py

Co-authored-by: Dan Braghis <dan@zerolab.org>

Co-authored-by: Dan Braghis <dan@zerolab.org>
2020-07-24 16:59:33 +01:00
jacobtoppm dde1507da1 Fix typos 2020-07-24 16:59:33 +01:00
jacobtoppm 16966b195b Add example of field belonging on custom TaskState, and fix typos 2020-07-24 16:59:33 +01:00
jacobtoppm d14563dfd5 Remove version reference 2020-07-24 16:59:33 +01:00
jacobtoppm 832e0be8e0 Add task_state_class specification for custom tasks to docs 2020-07-24 16:59:33 +01:00
jacobtoppm b508001336 Add developer guide to new Task types 2020-07-24 16:59:33 +01:00
jacobtoppm b8c70163ca Add custom_tasks.rst 2020-07-24 16:59:33 +01:00
FreshPass b59a737930 Update third_party_tutorials.rst
Fixing a 404 on the rosederwelt.com Deploying my Wagtail blog to Digital Ocean, pt. 1
2020-07-17 10:57:48 +01:00
Storm Heg 8c306910dd Fix incorrect urls in the docs 2020-07-06 13:15:40 +01:00
Storm Heg 98c66359a8 Replace a few instances of re_path with path 2020-07-06 13:15:39 +01:00
Storm Heg 4076b9ef5e Replace calls to django.conf.urls.url with django.urls.path or django.urls.re_path 2020-07-06 13:15:37 +01:00
Matt Westcott 52013f4920 Mention INSTALLED_APPS ordering in custom user docs 2020-05-18 11:33:53 +01:00
LB (Ben Johnston) d3dd7296c9
docs - revise heading levels for feature detection (images) (#6029) 2020-05-15 09:42:37 +01:00
Eric Phetteplace 20790f4c96 improve Adding Reports documentation
* `reverse` was used but not imported in the wagtail_hooks.py examples, causing them to be invalid
* I switched the Django `url` calls to use `path` instead since that seems both cleaner and officially recommended, the url function is "likely to be deprecated in a future release" per Django docs and  `path` is starting to replace it in urls.py files now
2020-05-10 17:15:32 +10:00
Neal Todd 2b35a852fe Add Rustface to the feature detection docs (images) 2020-05-10 17:09:33 +10:00
Liam Mullens 52cb7ab77b Update ImageRendition field to return Image alt text
* Update ImageRendtion to use default_alt_text property of Image
* Update example in documentation
* Add a test for ImageRenditionField
* Resolves #5816
2020-05-08 11:22:49 +10:00
Meteor0id 829a9bbf06
Add ability to replace the default Wagtail logo in the userbar, via `branding_logo` block (#4731) 2020-05-08 00:11:05 +01:00
Sylvain Fankhauser 2055da6a3a Fix code example in image file formats docs 2020-04-25 15:39:05 +10:00
Matt Westcott 58b11833c8 Add placeholder docs for internationalisation 2020-04-20 21:04:00 +10:00
Matt Westcott 4023a90d6e Allow custom image model to have fields defined as required
If validation rules prevent the multiple image upload view from
creating Image objects from just the image file, an UploadedImage object is
created instead, and turned into an image once the form is filled in.

* Fixes #847
* Add UploadedImage model and related views
* Update custom image model docs
2020-04-20 14:46:24 +10:00
LB a69559174f Add tutorials Q1 2020 2020-04-18 23:49:10 +01:00
Matt Westcott 297f663861 Rename _list_report.html to _list_page_report.html 2020-04-17 12:02:28 +01:00
Matt Westcott abb6634d92 Move default export_heading_overrides / list_export config to PageReportView 2020-04-17 12:02:28 +01:00
Karl Hobley 1e4a331766 Split out base report template into an empty base and a page-specific one 2020-04-17 12:02:28 +01:00
Karl Hobley a1b09f65c9 Rename export_heading_overrides to export_headings 2020-04-17 12:02:28 +01:00
Tom Dyson f37da8f7d8 Cache image renditions (#4883) 2020-04-07 14:05:27 +01:00
jacobtoppm 23af29d35c Use AdminOnlyMenuItem in both code samples in reports docs 2020-04-07 12:13:17 +01:00
jacobtoppm 2b096419dc Fix typo in import in reports documentation 2020-04-07 12:13:17 +01:00
Mohamed Feddad bb2e460c0b Replace deprecated ugettext, ungettext with gettext and ngettext. (#5907) 2020-04-02 17:15:26 +01:00
Tom Dyson 8c1a234f13 Remove our outdated preferences for deployment 2020-03-25 14:31:35 +00:00
jacobtoppm 5e95e91226 Add AdminOnlyMenuItem and update custom report documentation to use it 2020-03-19 17:47:37 +00:00
jacobtoppm 587ccdc8b0 Add complete report example 2020-03-19 17:47:30 +00:00
jacobtoppm cbe3058794 Add documentation on how to add custom reports 2020-03-19 17:47:17 +00:00
Frantisek Holop fc0cf64ac6 Be more specific regarding the cached loader. (#5754)
Be more explicit about not needing to enable the `cached.Loader`
manually, unless using some custom loaders.
2020-03-19 17:01:29 +00:00
Matt Westcott 96cd5c066d Update wording
Also move warning so it occurs on server startup rather than first request
2020-02-17 12:06:19 +00:00
Matt Westcott 5eec4d954e Deprecate SiteMiddleware (#3834, #5332, #5673)
Squashed commit of the following:

commit 6ff78d0271ae9bb8be20edc77acc046b7ecd1190
Merge: cbb5575 b7872e3
Author: Matt Westcott <matt@west.co.tt>
Date:   Fri Jan 24 10:41:00 2020 +0000

    Merge branch 'master' into sitemiddleware-rebase-2

    Conflicts:
    	docs/reference/settings.rst
    	wagtail/api/v2/endpoints.py
    	wagtail/api/v2/filters.py
    	wagtail/api/v2/serializers.py

commit cbb5575fd8
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date:   Sun Nov 3 02:30:00 2019 +0100

    Update branch, resolve conflicts, clean up

commit 6188742cfe
Merge: 4b4dee6 1c1341e
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date:   Sun Nov 3 01:48:21 2019 +0100

    Resolve merge conflicts

commit 4b4dee6c47
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date:   Sun Nov 3 01:42:37 2019 +0100

    Temporarily add Pipfile and yarn file

commit 540dff380b
Merge: 4a93424 0d2442f
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date:   Fri Sep 27 20:22:00 2019 +0200

    Merge branch 'master' of https://github.com/aritas1/wagtail into aritasmaster

commit 0d2442fc1f
Author: Daniel <mail@aritas.de>
Date:   Wed Jun 26 03:01:44 2019 +0200

    clean tests and add ALLOWED_HOSTS globally

commit b7e6b8e655
Author: Daniel <mail@aritas.de>
Date:   Wed Jun 26 03:00:07 2019 +0200

    change context processor to be lazy

commit b16250fce9
Author: Daniel <mail@aritas.de>
Date:   Tue May 28 21:37:05 2019 +0200

    update SiteMiddleware documentation

commit 4be243f64d
Author: Daniel <mail@aritas.de>
Date:   Tue May 28 20:52:08 2019 +0200

    fix linting

commit 33151817a0
Author: Daniel <mail@aritas.de>
Date:   Tue May 28 19:11:47 2019 +0200

    add wagtail_site template tag

commit 38b304105a
Author: Daniel <mail@aritas.de>
Date:   Tue May 28 16:19:22 2019 +0200

    update tests for deprecated SiteMiddleware

commit f745aae9d0
Author: Daniel <mail@aritas.de>
Date:   Tue May 28 16:11:58 2019 +0200

    change Site finding mechanism to be independent of deprecated SiteMiddleware
2020-02-17 12:06:18 +00:00
Pete Andrew abd8320dc3 Update links in docs to point at stable Django version 2019-12-01 13:19:40 +10:00
Matt Westcott d65532dd0f Mention the need to inherit from PermissionsMixin in custom user model docs 2019-11-28 12:35:30 +00:00
Karl Hobley 36d440d2dd Rename `endpoints` modules to `views` 2019-11-28 09:00:56 +00:00
Karl Hobley 16d5b5c99e Rename Endpoints to ViewSets
For consistency with Django REST Framework
2019-11-28 09:00:35 +00:00
Karl Hobley 633ad38925 Rename settings how-to guide 2019-11-20 17:54:08 +00:00
Karl Hobley 23145382e9 Move settings reference into separate doc 2019-11-20 17:39:46 +00:00
Karl Hobley 16bf4cac56 Delete the internationalisation docs 2019-11-09 15:34:51 +00:00
Martey Dodoo 229103ff2e Update links in documentation. (#5689)
Use HTTPS links instead of non-secure HTTP links wherever possible in
documentation.
2019-11-08 09:15:01 +00:00
WinterComes 06fb0764e0 Move get_document_model to __init__ & add get_document_model_string
Avoids issues where models are not yet loaded and document model is needed.

- apply isort
- fix minor typos
- fixes #5614
2019-11-07 07:47:12 +10:00
Tom Readings e75b74911e Reference the embedly package requirement for embedly finder support (#5680) 2019-11-06 17:03:44 +00:00
Karl Hobley 5845cfbfe9 Add Recipe doc for implementing AMP on a site (#5626)
* Add Recipe doc for implementing AMP on a site

* Fix typos

* Add section on using a different page template for AMP

* Move AMP recipe out of images

Not very image specific anymore

* Wording tweaks and grammar fixes
2019-11-05 15:28:45 +00:00
Matt Westcott 8577cc2d02 Remove old versionadded tags in the docs 2019-10-29 08:56:12 +00:00
Matt Westcott 302d22e252 Release note for #5249 / #5629 2019-10-16 16:21:26 +01:00
frmdstryr 01e0cd9dac Support format-webp and allow changing default formatting 2019-10-16 15:02:59 +01:00
Karl Hobley b4ecead6d9 [5225] Take number of frames into account when limiting image size 2019-10-16 11:36:07 +01:00
LB (Ben Johnston) 03cd4056df Docs - Add AbstractUser import to custom user model
- `from django.contrib.auth.models import AbstractUser`
- revise a previous changelog entry to clarify 'clean up' vs 'fix'
2019-10-12 09:57:47 +10:00
a-mere-peasant 1eae1e4614 Added 'image uploads in forms' to third party tutorials 2019-10-12 09:31:19 +10:00
Matt Westcott 8711050e49 Add cache-busting parameter to admin static files
Fixes #5493
2019-10-09 12:16:56 +01:00
jacobtoppm dd5cbd8d7a Add new docs page 'Changing rich text representation' (#5579)
* Add new docs page 'Changing rich text representation' describing how to subclass Format to provide a custom image html representation in rich text
2019-10-02 12:12:38 +01:00
jacobtm daba83aab1 Add a note on 'Previewing and Submitting for Moderation' page about potential disabled moderation 2019-10-02 10:48:15 +01:00
Brian Whitton 34f4ab8a3f allow image page sizes to be configurable (#5568) 2019-09-25 10:49:57 +01:00
jacobtm a7b470bc9d Add ability to hide 'Submit for Moderation' in action menu using setting WAGTAIL_MODERATION_ENABLED. When set to false, SubmitForModerationMenuItem method is_shown returns false (#5574) 2019-09-24 16:28:47 +01:00
Dawn Wages 1b2dadc429 Update configuration.rst (#5576) 2019-09-23 12:06:16 +01:00
Matt Westcott 76d72a36c3 Documentation tweaks for WAGTAILDOCS_SERVE_METHOD
As suggested by @chosak - https://github.com/wagtail/wagtail/pull/5296#discussion_r324252497 , https://github.com/wagtail/wagtail/pull/5296#discussion_r324257167
2019-09-21 18:53:48 +01:00
Tobias McNulty 40fa3956f5 add WAGTAILDOCS_SERVE_METHOD setting to allow serving files from underlying storage 2019-09-21 18:53:48 +01:00
Dawid Bugajewski 90b7a3b0d3 Fix class selector mapping (#5571)
The markup is wrong which results in code not working properly.
2019-09-20 10:18:55 +01:00
Janne Alatalo dd0bb9a870 Add setting to disable email management
This commit adds WAGTAIL_EMAIL_MANAGEMENT_ENABLED setting that defaults
to True, but when disabled, hides the 'Change email' button in account
management view, and disables the associated route. This is useful when
using external authentication method like LDAP or OpenID Connect where
email management is handled elsewhere.

Wagtail already includes WAGTAIL_PASSWORD_MANAGEMENT_ENABLED setting.
This is almost exact copy of that implementation.
2019-09-04 10:25:35 +01:00
Sanyam Khurana f9753f1f23 fix(docs/customization): Add models import to fix example (#5520) 2019-08-20 11:57:14 +01:00
Sergey Fedoseev 94be338cbd Fix mention of non-existing PageLinkHandler.get_identifier
Refs #5184
2019-08-20 11:54:43 +01:00
Daniele Procida 72db52371a Updated feature detection notes 2019-07-21 18:03:09 +10:00
Jaroslaw Zabiello 7df817d29c Update third_party_tutorials.rst
Add a detailed article about using GraphQL in Wagtail
2019-06-25 16:07:06 +01:00
jordan-bauer 998440cfa9 Remove buggy tab order customisations in CMS admin (#5383, #5351) 2019-06-18 12:49:16 +01:00
Dillen Meijboom dd1597ea37 Implemented branding title prefix customization (#5344) 2019-06-07 17:06:00 +01:00
Michael Bunsen b06cb6a6eb
ImageRenditionField returns a relative URL
The example in the docs shows an absolute URL with the site's hostname, but the ImageRenditionField returns a relative URL. 

Relevant source here: https://github.com/wagtail/wagtail/blob/master/wagtail/images/api/fields.py
2019-05-17 16:44:32 -07:00
scil 1e55b98af0 Update performance.rst 2019-05-01 12:58:22 +01:00
LB Johnston 8407245207 Add Third Party Tutorials & Links
- Revise grammar for Learn Wagtail link
- Add articles from Timonweb blog
- Add Youtube link for Google Cloud Platform
- Add blog from Jelastic (PaaS) deployment
- Add Mozilla guide for end users (really well laid out and reasonably generic)
2019-04-25 17:24:46 +01:00
Thibaud Colas b7f53ef276
Fix typo in rewrite handlers example code (#5253) 2019-04-24 21:10:12 +01:00
Matt Westcott 12f7ee2f1a Deprecation note for #5184 2019-04-08 16:35:58 +01:00
Andy Chosak d7bad06fe8 Add documentation of rewrite handlers 2019-04-08 14:31:55 +01:00
Md. Arifin Ibne Matin 2b2c71a4d9 Support additional custom handler for links in Rich text editor. (#5159) 2019-04-03 20:50:39 +01:00
Matt Westcott 3c44037b2f Fix warnings on building documentation (#5145)
* Fix "Duplicate explicit target name" warnings on extending_draftail.rst

ref: https://github.com/sphinx-doc/sphinx/issues/3921

* Fix 'Unknown target name' warning on third_party_tutorials.rst

* Add docstrings to Page.get_ancestors, get_descendants and get_siblings

Documents the `inclusive` flag and avoids the "Field list ends without a blank line; unexpected unindent" warning when building docs
2019-03-15 02:03:56 +01:00
Md. Arifin Ibne Matin edfd9afc1d Add more built-in rich text formats (#5141) 2019-03-15 01:39:18 +01:00
Mani 87bbc31d88 Add a setting to apply limit on number of tags that can be added to any tagged model. 2019-03-10 20:48:33 +10:00
Matt Westcott 3fe442ff4d Add Learn Wagtail to third-party tutorials 2019-03-10 15:57:52 +10:00
Evan Winter 5a34090b4b Fix typo in api/v2/usage.rst
first_publised_at --> first_published_at
2019-03-06 01:19:07 +00:00
tomedelliott f5654981c8 Add limit image upload size by number of pixels (#5097)
* Add test for Image pixel size

* add pixel size check and update test to match

using djangos get_image_dimensions this maybe a internal function
but the commit adding it is over 9 years old

* Update docs and CHANGELOG

* fix typos
2019-02-23 14:13:00 +00:00
DanAtShenTech e6e9fd09e2 Highlight "create" and "edit" forms (#5081) 2019-02-19 10:53:29 +00:00
Matt Westcott 087434f348 Update links to Draftail documentation 2019-02-14 23:24:30 +01:00
DanAtShenTech f21e75e95d Fix typo (missing plural) 2019-02-14 23:18:48 +01:00
DanAtShenTech 966ad8658d Properly designate last_name field 2019-02-14 12:05:26 +00:00
pvetch 731b8fc9b4 Update third_party_tutorials.rst (#5057)
This content seemed moribund so have added some newer material and checked that the original links still work. There are probably lots of other newer examples that could be added (it might be worth weeding out some of the older content at this point too).
2019-02-08 17:06:01 +00:00
Matt Westcott 30f6a590b4
Documentation on rich text internals (#4927) 2018-11-29 16:36:09 +00:00
Sergey Fedoseev e8c88d44af Fixed reference to LoginView in docs. (#4901) 2018-11-15 11:13:00 +00:00
Alex Gleason 08ea980410 Fix missing comma in Draftail docs code 2018-11-14 17:11:49 -05:00
Sergey Fedoseev 47465197a9 Use intersphinx for Django references when possible. (#4896) 2018-11-14 11:48:32 +00:00
Yannick Chabbert 515aa61943 Add template tag for dynamic image url
Update documentation

Co-Authored-By: zerolab <dan@zerolab.org>
2018-10-28 16:21:46 +03:00
Matt Westcott 183b626dc3 Eliminate `{% load staticfiles %}` and `{% load admin_static %}`
These are removed in Django 3.0 in favour of `{% load static %}`
2018-10-27 09:40:42 +02:00
Matt Westcott c2a351fee1 Clarify that the default languages list is the ones with >=90% coverage 2018-10-25 12:20:59 +01:00
Janneke Janssen 52a224ca64 Fixes reference to the wagtailsearch section 2018-10-23 15:51:14 +02:00
Matt Westcott 9afcd1a8be Remove notes about URL confs for Django<2.0 2018-10-18 11:25:12 +01:00
Meteor0id 088d3ffc21 missing quotation, not that it matters
award of smallest contribution of the year goes to..
2018-09-13 13:00:57 +01:00
Michael Harrison 8ef0edb371 Add file download url to Imagesv2 API endpoint 2018-09-06 17:12:02 +01:00
Matt Westcott 2947c584b0 Recommend the use of ManifestStaticFilesStorage. Fixes #3700 2018-09-04 12:56:11 +01:00