0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 01:22:07 +01:00
wagtail/docs
Shubham e7de2f8955 Refactor UnsavedController to use event.preventDefault() to trigger browser confirmation dialog
Per https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event

"best practice is to trigger the dialog by invoking `preventDefault()`
on the event object, while also setting `returnValue` to support legacy
cases."

We don't need to support legacy cases, as our supported browsers all
support the `preventDefault()` approach.

See also:
https://caniuse.com/mdn-api_window_beforeunload_event_preventdefault_activation

Fixes #12132

From PR #12139
2024-09-28 17:41:48 +10:00
..
_static doc: fix pdf export (#12076) 2024-07-19 01:27:07 +01:00
_templates Extend the until date of the promotion banner for Wagtail Space 2024-06-13 15:16:29 +02:00
advanced_topics Added example for customizing a default accessibility check (#12267) 2024-09-24 11:00:20 +01:00
contributing Simplify Wagtail docs section titles 2024-09-19 10:09:46 +01:00
deployment Rename deploy URL to deployment + update title 2024-09-19 10:09:46 +01:00
editor_manual Simplify Wagtail docs section titles 2024-09-19 10:09:46 +01:00
extending Simplify Wagtail docs section titles 2024-09-19 10:09:46 +01:00
getting_started Align recent docs & release notes to US spelling 2024-08-29 18:28:07 +01:00
public
reference Add translatable model copy for translation done signal (#12362) 2024-09-27 16:01:52 +01:00
releases Refactor UnsavedController to use event.preventDefault() to trigger browser confirmation dialog 2024-09-28 17:41:48 +10:00
topics Documentation - formatting clean up 2024-08-29 18:32:20 +01:00
tutorial Rename deploy URL to deployment + update title 2024-09-19 10:09:46 +01:00
conf.py doc: fix pdf export (#12076) 2024-07-19 01:27:07 +01:00
favicon.ico Update all other Wagtail logos to the latest version 2024-03-23 19:48:31 +10:00
index.rst Rename deploy URL to deployment + update title 2024-09-19 10:09:46 +01:00
logo.png Update all other Wagtail logos to the latest version 2024-03-23 19:48:31 +10:00
Makefile Upgrade Sphinx to 7.3; use newer syntax for no-index directive and --fail-on-warning switch 2024-07-23 10:13:03 +01:00
README.md
spelling_wordlist.txt
support.md Update twitter link in support docs to x.com (#12205) 2024-08-05 13:54:37 +01:00

Wagtail docs

These are Sphinx docs, automatically built at https://docs.wagtail.org when the main branch is committed to GitHub. To build them locally, install Wagtail's development requirements (in the root Wagtail directory):

pip install -e .[testing,docs]

To build the documentation for browsing, from this directory run:

make html

then open _build/html/index.html in a browser.

To rebuild automatically while editing the documentation, from this directory run:

sphinx-autobuild . _build

The online MyST playground at Curvenote or the MyST-Markdown VS Code Extension are helpful tools for working with the MyST syntax.