kopia lustrzana https://github.com/wagtail/wagtail
6bd168580e
Indexed.search_fields used to be a tuple. This is incorrect, and it should have been a list. Changing it to be a list now would be a backwards incompatible change, as people do search_fields = Page.search_fields + ( SearchField('body') ) Adding a tuple to the end of a list causes an error, so this would cause all old code that used tuples to throw an error. This is not great. A new ThisShouldBeAList class, which subclasses list, has been added. It additionally allows tuples to be added to it, as in the above behaviour, but will raise a deprecation warning if someone does this. Old code that uses tuples will continue to work, but raise a deprecation warning. See #2310 |
||
---|---|---|
.. | ||
_static/images | ||
advanced_topics | ||
contributing | ||
editor_manual | ||
getting_started | ||
reference | ||
releases | ||
topics | ||
Makefile | ||
README.md | ||
autobuild.sh | ||
conf.py | ||
index.rst | ||
logo.png | ||
requirements.txt | ||
spelling_wordlist.txt | ||
support.rst |
README.md
Wagtail docs
These are Sphinx docs, automatically built at http://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.