0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
wagtail/docs
Karl Hobley 9b02147d3e Add hooks.register_temporarily for testing hooks
There's currently a number of places where we test hooks by registering
hook functions from test methods. These are never cleaned up so that
hook remains registered in future tests. This can cause issues with
tests not working consistently when you run a subset of the tests.

This adds a `register_temporarily` function to the hooks module. This
function can be used either as a decorator or a context manager. It'll
always remove the hook after the decorated function or with block exits,
even if it exits through an exception.
2020-08-07 15:47:04 +01:00
..
_static Update images in documentation 2020-07-24 16:59:33 +01:00
advanced_topics Remove versionadded/versionchanged notes for 2.9 2020-07-28 12:53:22 +01:00
contributing Make page-level actions accessible to keyboard users in page listing tables (#6280) 2020-08-01 21:52:28 +01:00
editor_manual Fix dashboard docs 2020-07-24 16:59:33 +01:00
getting_started Formalise Django 3.1 support 2020-08-06 11:26:26 +01:00
reference Add hooks.register_temporarily for testing hooks 2020-08-07 15:47:04 +01:00
releases Release note for Django 3.1 support 2020-08-06 11:26:39 +01:00
topics Remove versionadded/versionchanged notes for 2.9 2020-07-28 12:53:22 +01:00
autobuild.sh
conf.py fix sphinx warnings (#6001) 2020-05-03 14:02:43 +02:00
favicon.ico add favicon to documentation 2018-03-08 12:24:13 +00:00
index.rst Fix broken link to bakerydemo (#4834) 2018-10-21 11:38:28 +02:00
logo.png
Makefile Update links in documentation. (#5689) 2019-11-08 09:15:01 +00:00
README.md Update links in documentation. (#5689) 2019-11-08 09:15:01 +00:00
requirements.txt readthedocs needs a requirements.txt, apparently 2017-10-09 19:45:07 +01:00
spelling_wordlist.txt Added more words to the spelling wordlist 2018-04-05 12:13:05 +01:00
support.rst Add documentation for reporting security issues 2020-04-20 11:57:26 +10:00

Wagtail docs

These are Sphinx docs, automatically built at https://docs.wagtail.io when the master 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 editor at http://rst.ninjs.org/ is a helpful tool for checking reStructuredText syntax.