Skip to content

Commit a83ac53

Browse files
committed
Merge remote-tracking branch 'upstream/6.0' into plone_to_zope_name_change_#1751
2 parents 49ca1a1 + b256a8e commit a83ac53

30 files changed

+362
-88
lines changed

.github/boring-cyborg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ firstIssueWelcomeComment: >
7373
Also please follow the issue template, as it helps both you and other community members contribute more effectively.
7474
7575
<br>If your issue is a feature request, others may raise its prominence through
76-
[feature voting](https://6.docs.plone.org/contributing/documentation/index.html#github-menu).
76+
[feature voting](https://github.com/plone/documentation/issues?q=is%3Aissue%20state%3Aopen%20sort%3Areactions-%2B1-desc%20).
7777
7878
<br>Welcome to the Plone community! :tada:
7979

.github/workflows/build_deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ jobs:
4545

4646
- name: Enable corepack
4747
shell: bash
48-
run: corepack enable
48+
run: |
49+
npm i -g corepack@latest
50+
corepack enable
4951
5052
- name: Get pnpm store directory
5153
shell: bash

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# .readthedocs.yaml
22
# Read the Docs configuration file
3-
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
# See https://docs.readthedocs.com/platform/stable/config-file/v2.html for details
44

55
# Required
66
version: 2

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ livehtml: deps ## Rebuild Sphinx documentation on changes, with live-reload in
208208
cd "$(DOCS_DIR)" && ${SPHINXAUTOBUILD} \
209209
--ignore "*.swp" \
210210
--port 8050 \
211+
--watch volto \
212+
--watch plone.api \
213+
--watch plone.restapi \
211214
-b html . "$(BUILDDIR)/html" $(SPHINXOPTS) $(O)
212215

213216
.PHONY: rtd-pr-preview

docs/_inc/_install-browser-reqs-volto.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/_static/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"[markdown]": {
3+
"editor.formatOnSave": false
4+
}
5+
}

docs/admin-guide/export-import.md

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
---
2+
myst:
3+
html_meta:
4+
"description": "Export and import Plone site data with plone.exportimport"
5+
"property=og:description": "Export and import Plone site data with plone.exportimport"
6+
"property=og:title": "Export and import Plone site data with plone.exportimport"
7+
"keywords": "Plone 6, plone.exportimport, export, import, site, data, Content, Principals, Relations, Translations, Discussions, Redirects"
8+
---
9+
10+
(exportimport)=
11+
12+
# Export and import site data
13+
14+
The `plone.exportimport` package provides support to export and import all kinds of data from and to Plone sites using an intermediate JSON format.
15+
16+
Most features use {doc}`plone.restapi <../plone.restapi/docs/source/index>` to serialize and deserialize data.
17+
18+
19+
## Command line utilities
20+
21+
This package provides two command line utilities, `plone-exporter` and `plone-importer`.
22+
23+
### `plone-exporter`
24+
25+
Export content from a Plone site to a directory in the file system.
26+
You can call `plone-exporter` as shown.
27+
28+
```shell
29+
plone-exporter [--include-revisions] <path-to-zopeconf> <site-id> <path-to-export-data>
30+
```
31+
32+
The following command shows typical usage.
33+
34+
```shell
35+
plone-exporter instance/etc/zope.conf Plone /tmp/plone_data/
36+
```
37+
38+
By default, the revisions history (older versions of each content item) are not exported.
39+
If you do want them, add `--include-revisions` on the command line.
40+
41+
42+
### `plone-importer`
43+
44+
Import content from a file system directory into an existing Plone site.
45+
46+
You can call `plone-importer` as shown.
47+
48+
```shell
49+
plone-importer <path-to-zopeconf> <site-id> <path-to-import-data>
50+
```
51+
52+
The following command shows typical usage.
53+
54+
```shell
55+
plone-importer instance/etc/zope.conf Plone /tmp/plone_data/
56+
```
57+
58+
59+
## Supported data
60+
61+
- Content (Dexterity content items)
62+
- Ordering
63+
- Local roles
64+
- Versions (when using the `--include-revisions` command line option)
65+
- Default pages
66+
- Principals (members and groups)
67+
- Relations (relationships between content items)
68+
- Translations (translation groups)
69+
- Discussions (content comments)
70+
- Redirects (redirect information)
71+
72+
73+
## Exported data structure
74+
75+
Some goals of the new data structure are to:
76+
77+
- support diff of exported data, and
78+
- have blob files near the content item that uses it.
79+
80+
After exporting content, at the top level directory, the following objects exist.
81+
82+
| Name | Description |
83+
| --- | --- |
84+
| `content` | Directory containing content item information exported from the site |
85+
| `discussions.json` | JSON File with discussions (comments) exported from the site |
86+
| `principals.json` | JSON File with members and groups exported from the site |
87+
| `redirects.json` | JSON File with redirect information exported from the site |
88+
| `relations.json` | JSON File with content relations exported from the site |
89+
| `translations.json` | JSON File with translation groups exported from the site |
90+
91+
92+
### Content directory structure
93+
94+
The {file}`content` directory contains all content items exported from the site.
95+
Each content item has its own subdirectory, named with the UID of the content, including the serialized data and all blob files related to this content.
96+
97+
One special case is the directory for the `Plone Site` object, which is named `plone_site_root`.
98+
99+
| Name | Description |
100+
| --- | --- |
101+
| `content/__metadata__.json` | JSON File with metadata information about the exported content |
102+
| `content/<content uid>` | Directory with serialization for a content item |
103+
| `content/plone_site_root` | Directory with serialization for the Plone Site Root |
104+
105+
106+
#### Content item directory structure
107+
108+
Consider a File content item with UID `3e0dd7c4b2714eafa1d6fc6a1493f953` and a PDF file named {file}`plone.pdf` (added in the `file` field), the exported directory will have the following structure.
109+
110+
| Name | Description |
111+
| --- | --- |
112+
| `content/3e0dd7c4b2714eafa1d6fc6a1493f953/data.json` | JSON File with serialized representation of a content item |
113+
| `content/3e0dd7c4b2714eafa1d6fc6a1493f953/file/plone.pdf` | Blob file stored in the `file` field in the content item |

docs/admin-guide/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ install-pip
3030
3131
run-plone
3232
add-site
33+
zope-manager-users
3334
configure-zope
3435
add-ons
36+
export-import
3537
override-core
3638
/upgrade/index
3739
```

docs/admin-guide/install-buildout.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@ For other installation options, see {ref}`get-started-install-label`.
3131

3232
## Prerequisites for installation
3333

34-
- For Plone 6.0, Python {{SUPPORTED_PYTHON_VERSIONS_PLONE60}}
35-
% TODO: These instructions install Plone 6.0.x. Uncomment next line and change the subsequent include when Plone 6.1 is released and "latest".
36-
% - For Plone 6.1, Python {{SUPPORTED_PYTHON_VERSIONS_PLONE61}}
34+
- For Plone 6.1, Python {{SUPPORTED_PYTHON_VERSIONS_PLONE61}}
3735

3836

3937
### Python
4038

41-
```{include} /_inc/_install-python-plone60.md
39+
```{include} /_inc/_install-python-plone61.md
4240
```
4341

4442

docs/admin-guide/install-pip.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@ For other installation options, see {ref}`get-started-install-label`.
3131

3232
## Prerequisites for installation
3333

34-
- For Plone 6.0, Python {{SUPPORTED_PYTHON_VERSIONS_PLONE60}}
35-
% TODO: These instructions install Plone 6.0.x. Uncomment next line and change the subsequent include when Plone 6.1 is released and "latest".
36-
% - For Plone 6.1, Python {{SUPPORTED_PYTHON_VERSIONS_PLONE61}}
34+
- For Plone 6.1, Python {{SUPPORTED_PYTHON_VERSIONS_PLONE61}}
3735

3836

3937
### Python
4038

41-
```{include} /_inc/_install-python-plone60.md
39+
```{include} /_inc/_install-python-plone61.md
4240
```
4341

4442

@@ -60,7 +58,7 @@ python3 -m venv venv
6058
Install Plone and a helper package, {term}`pipx`.
6159

6260
```shell
63-
venv/bin/pip install -c https://dist.plone.org/release/6.0-latest/constraints.txt Plone pipx
61+
venv/bin/pip install -c https://dist.plone.org/release/6-latest/constraints.txt Plone pipx
6462
```
6563

6664

0 commit comments

Comments
 (0)