Wykres commitów

159 Commity (fd29f0b9bbfc9f0d317b97e95cb92eb50a79b232)

Autor SHA1 Wiadomość Data
Karl Hobley 6f2c576da0
Revert "Add `ever_live()` and `never_live()` filters to `PageQuerySet` (RFC 34) (2 of 3)" (#7796)
* Revert "Release notes for #7776"

This reverts commit a7e58e9c67.

* Revert "Tests for #7776"

This reverts commit 1f5734ce3f.

* Revert "Add PageQuerySet.ever_live() and PageQueryset.never_live() filters"

This reverts commit d8c2e33505.
2021-12-18 16:54:26 +00:00
Andy Babic d8c2e33505 Add PageQuerySet.ever_live() and PageQueryset.never_live() filters 2021-12-16 14:10:16 +00:00
Victor Miti bb802509d2 Model Reference docs - correct field name
change `page revision` to `page_revision`
on the `TaskState` model
2021-09-26 20:46:29 +10:00
Tibor Leupold 9ae4ab6084 Document how to limit a page parent to root
Closes #2768

Issue #2768 was created because a way how to limit a page to be only
available under the root page was unknown.

The implementation has allowed this for a while now, but the issue was
not closed (presumably due to missing documentation).

The documentation of the `parent_page_types` filed now includes this
"special" case.
2021-09-07 09:52:33 +01:00
fabienheureux cb08c997ea
Make all edit panels collapsible (#7365)
* Make more panels type collapsible
* Remove duplicate js in homepage template
* Move collapsible code into its own js file
* Change $li to $target in collapsible.js, as in #6342

Closes #7364, #6342, #6187, #2123

Co-authored by: Fabien Le Frapper <contact@fabienlefrapper.me>
Co-authored-by: Robbie Mackay <rm@robbiemackay.com>
Co-authored-by: Scott Cranfill <scott.cranfill@jpl.nasa.gov>
2021-08-30 08:33:43 -07:00
Andy Chosak e9e1a48b68 Fix broken references in Pages topic documentation
The "Page models" documentation page in the Wagtail usage guide has
several broken links (see current page at
https://docs.wagtail.io/en/stable/topics/pages.html).

These links work when developing the documentation locally, but not when
served on ReadTheDocs (docs.wagtail.io)

The broken links are all of the form /some/page.html#anchor - somehow
this format doesn't translate properly to get the necessary RTD prefix
(for example /en/stable/).

I've modified these links to use RST references, which will also make
them more robust to future changes.
2021-08-20 17:08:35 +01:00
jacobtoppm 59f63abdad Add documentation for commenting 2021-04-30 17:46:08 +01:00
Andy Babic fa8402f633 Implement PageQuerySet.defer_streamfields() 2021-03-03 13:03:46 +00:00
Andy Babic 8f38aaae87 Update type(), not_type(), exact_type() and not_exact_type() to accept multiple model classes as arguments 2021-03-02 20:00:28 +00: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
Andy Babic f905e705da Add Page.specific_deferred (#6661) 2021-01-18 13:25:55 +00:00
minusf a18a36d820
Fix indentation of locked_by block in documentation (#6580) 2020-12-02 10:40:25 +00:00
Loic Teixeira 6c9478c139 Rework headings hierarchy
Initial hierarchy:

- Available panel types
    - FieldPanel
    - StreamFieldPanel
    - MultiFieldPanel
    - InlinePanel
    - FieldRowPanel
    - HelpPanel
    - PageChooserPanel
    - ImageChooserPanel
    - FormSubmissionsPanel
    - DocumentChooserPanel
    - SnippetChooserPanel
        - Built-in Fields and Choosers
        - Field Customisation
    - Full-Width Input
    - Titles
    - Placeholder Text
    - Required Fields
    - Hiding Fields
        - Inline Panels and Model Clusters

Revised Hierarcy:

- Panel types
    - Built-in Fields and Choosers
        - FieldPanel
        - StreamFieldPanel
        - MultiFieldPanel
        - InlinePanel
        - FieldRowPanel
        - HelpPanel
        - PageChooserPanel
        - ImageChooserPanel
        - FormSubmissionsPanel
        - DocumentChooserPanel
        - SnippetChooserPanel
    - Field Customisation
        - Full-Width Input
        - Titles
        - Placeholder Text
        - Required Fields
        - Hiding Fields
    - Inline Panels and Model Clusters
2020-10-23 10:36:01 +01:00
Karl Hobley 0efe4a75a5
[RFC 54] Internationalisation reference docs (#6377)
* Reference docs for internationalisation

* Update docs/reference/pages/model_reference.rst

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

* Update docs/reference/pages/model_reference.rst

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

* Update docs/reference/pages/model_reference.rst

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

* Apply suggestions from code review

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

* Add missing comma

* Apply suggestions from code review

Co-authored-by: Matt Westcott <matthew@torchbox.com>

Co-authored-by: Dan Braghis <dan@zerolab.org>
Co-authored-by: Matt Westcott <matthew@torchbox.com>
2020-10-19 18:40:58 +01:00
Karl Hobley b5eddca28b Synchronise alias page content when the source is updated 2020-10-08 10:24:58 +01:00
Karl Hobley 674fa8e27a Add Page.create_alias method 2020-10-08 10:24:58 +01:00
Karl Hobley 17f63f0efc Add alias_of field to Page 2020-10-08 10:24:58 +01:00
Karl Hobley 9195131738 Lint docs with doc8 2020-10-03 14:43:03 +01:00
Ameet Virdee 48a8af71e5 Add documentation for placeholder text in Field Panels 2020-10-01 08:06:43 +02:00
Matt Westcott 008b6c12c4 Update BaseLogEntry docs to reference user_display_name. Fixes #6418 2020-09-30 15:43:27 +01:00
Matt Westcott e0dc53d9ad Remove versionadded/versionchanged notes for 2.9 2020-07-28 12:53:22 +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
Matt Westcott bf53123309 Fix sphinx warnings from workflow / audit log documentation 2020-07-24 16:59:33 +01:00
Dan Braghis f69287f6f4 Add documentation 2020-07-24 16:59:33 +01:00
jacobtoppm df3a63c7a2 Add new page methods and updated workflow state methods 2020-07-24 16:59:33 +01:00
jacobtoppm 8911bd30d7 Add workflow models to reference 2020-07-24 16:59:33 +01:00
Andy Babic dd680ae4d4 Factor out content type fetching into a separate Page method, simplify the specific specific_class methods, and improve docstrings 2020-07-13 18:25:11 +01:00
Tom Dyson 20b99d4386
Remove 'whitelist' from page reference docs (#6153) 2020-06-16 11:23:51 +01:00
Brylie Christopher Oxley ff37ad6ab9 Add 'add_redirect' static method to Redirect
* This method was inspired by a Lacey Williams Henschel (@williln) presentation at Wagtail Space US 2018, called  'What the Wagtail docs don't tell you'. https://www.youtube.com/watch?v=PCkxBNXWM64&t=1220s
* Add docs section reference/contrib/redirects
2020-05-10 18:48:33 +10:00
LB (Ben Johnston) 9359b14326
fix sphinx warnings (#6001)
- use .add_css_file instead of .add_stylesheet in conf.py
- use .add_js_file instead of .add_javascript in conf.py
- fix duplicate clss references in pages model reference (for grouping of methods & attributes)
- rename wagtailspace.js to banner.js (may be used in the future for a generic banner)
2020-05-03 14:02:43 +02:00
danbentley 1156182283
Add Page.context_object_name (#5999)
Page.context_object_name can be used to define a more meaningful name
for the page variable in the template.

If defined, the default `page` and `self` are still available for use in
shared templates.

Resolves #5213
2020-05-01 20:01:02 +02:00
jacobtoppm 12d5edcef6 Add heading option to panels reference 2020-03-19 16:10:30 +00:00
Matt Westcott 09a2ccf8cc Documentation for custom tag models 2020-02-26 14:10:21 +00:00
Matt Westcott 4950158e46 Remove remaining references to request.site 2020-02-17 12:06:19 +00:00
Matt Westcott f34891fbd3 Update docs to cover wagtail_site tag, find_for_request and deprecation of SiteMiddleware 2020-02-17 12:06:18 +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
Samir Shah dd4a04f843 Skip field validation when unpublishing pages. 2020-02-16 21:05:51 +00:00
Matt Westcott 3f27014a86 Merge branch 'author-specific-locking' of https://github.com/jacobtoppm/wagtail into kaedroho-author-specific-locking 2020-01-08 15:05:59 +00:00
Matt Westcott ee8eda8353 Merge branch 'author-specific-locking' of https://github.com/kaedroho/wagtail into kaedroho-author-specific-locking 2020-01-08 15:02:19 +00:00
jacobtm 99cb3154cc Correct model reference for page, page cannot be edited when locked is True, rather than False 2020-01-02 09:41:42 +00:00
Dan Swain 5a8c4edba5 Documentation - add StreamFieldPanel to available panel types 2019-12-01 19:13:11 +10:00
Karl Hobley 5f68627950 Merge branch 'master' into author-specific-locking 2019-11-26 15:55:49 +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
Karl Hobley ed32bc8444 fixup! Record time and user when a page is locked 2019-10-28 11:16:54 +00:00
Karl Hobley 67213d7286 Record time and user when a page is locked 2019-10-16 14:26:04 +01:00
Karl Hobley d008cc7e21 Implement Page.with_content_json and add to docs (fixes #5199) 2019-06-20 16:24:04 +01:00
Wesley van Lee c831d434ab Added an option to the page model to be able to define the amount of subpages underneath a specific parent page 2019-03-15 18:14:05 +01:00
DanAtShenTech 56f29a0825 Clarify explanation of ParentalKey within InlinePanel (#5070)
Make it clear that the relationship to relate a cluster of objects to a page is called ParentalKey.
2019-02-13 16:32:22 +00:00
Matthew Linares a0b4efd414 Recipe: automatic redirect creation on url edit (#5002) 2019-01-24 14:06:44 +00:00
Sergey Fedoseev 47465197a9 Use intersphinx for Django references when possible. (#4896) 2018-11-14 11:48:32 +00:00