mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 17:36:49 +01:00
d6358836f2
All built-in choosers use the standard field_panel_field.html template - it's probably been this way since Wagtail 1.0, when choosers got their own Widget classes rather than just being HTML decoration around a HiddenInput. As a result, the additional template context they pass (e.g. self.object_type_name) is redundant. If any third-party chooser panels exist that do need them (which is unlikely, if they just copy the existing ones), they should override render_as_field themselves to pass whatever context they need. |
||
---|---|---|
.. | ||
_static | ||
_templates | ||
advanced_topics | ||
contributing | ||
editor_manual | ||
extending | ||
getting_started | ||
reference | ||
releases | ||
topics | ||
autobuild.sh | ||
conf.py | ||
favicon.ico | ||
index.rst | ||
logo.png | ||
Makefile | ||
README.md | ||
requirements.txt | ||
robots.txt | ||
spelling_wordlist.txt | ||
support.rst |
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 editor at http://rst.ninjs.org/ is a helpful tool for checking reStructuredText syntax.