Skip to content

Commit 68a4db8

Browse files
authored
Merge branch '6.0' into migrate-backing-up-plone
2 parents d728aa1 + e2cd562 commit 68a4db8

12 files changed

+71
-88
lines changed

Makefile

+12
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@ docs/volto: ## Setup Volto docs
7373
@echo "Documentation of volto initialized."
7474
@echo
7575

76+
ln-seven: ## Toggle the symlink to Seven
77+
rm docs/volto
78+
ln -s ../submodules/volto/docs ./docs/volto
79+
@echo "Symlink to Volto changed to Seven."
80+
@echo
81+
82+
ln-volto: ## Toggle the symlink to Volto
83+
rm docs/volto
84+
ln -s ../submodules/volto/docs/source ./docs/volto
85+
@echo "Symlink to Seven changed to Volto."
86+
@echo
87+
7688
.PHONY: deps
7789
deps: venv/bin/python docs/volto docs/plone.restapi venv/plone.api-install ## Create Python virtual environment, install requirements, initialize or update the volto, plone.restapi, and plone.api submodules, create symlinks to the source files, and finally install plone.api.
7890

docs/_inc/_hardware-requirements.md

-19
This file was deleted.

docs/_inc/_install-python-plone61.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Installing Python is beyond the scope of this documentation.
2+
However, it is recommended to use a Python version manager, {term}`pyenv`, that allows you to install multiple versions of Python on your development environment without destroying your system's Python.
3+
4+
```{warning}
5+
Do not create or activate a Python virtual environment at this time.
6+
The instructions below will create one.
7+
```
8+
9+
Plone 6.1 requires Python version {{SUPPORTED_PYTHON_VERSIONS_PLONE61}}.

docs/_inc/_install-uv.md

-21
This file was deleted.

docs/backend/subscribers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Here, the event handler code will only be executed if the object is a content ty
6060
If you want this to be interface agnostic, insert an asterix `*` as a wildcard instead.
6161

6262
The third line defines the event on which this should happen, which is `IObjectCreatedEvent`.
63-
For more available possible events to use as a trigger, see {ref}`subscribers-event-handlers`.
63+
For more available possible events to use as a trigger, see {ref}`subscribers-event-types-label`.
6464

6565
The fourth line gives the path to the callable function to be executed.
6666

docs/contributing/documentation/authors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ The Plone Documentation Team adopted additional guidelines.
371371
To make that work in Volto, set your browser width to 1180 pixels.
372372
You will notice that the drag and trash icons for each block move inside the block from outside.
373373

374-
If you create images wider than 740 pixels, then you must use image display enhancement as described in {ref}`enhance-images-label`.
374+
If you create images wider than 740 pixels, then you must use image display enhancement as described in {ref}`enhance-media-label`.
375375
- In user documentation, provide screenshots of each step where the interface changes.
376376
It is painstaking, but worth the effort.
377377
Provide sufficient detail of what each option is and does.

docs/contributing/index.md

+26-5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ To contribute to any project in Plone, you must follow the policies of the [Plon
2020
This chapter covers policies that apply to all Plone projects.
2121
Other chapters cover any variations and additional policies for each project.
2222

23+
2324
(contributing-sign-and-return-the-plone-contributor-agreement-label)=
2425

2526
## Sign and return the Plone Contributor Agreement
@@ -77,6 +78,7 @@ Someone will help identify in which of the dozens of repositories that make up P
7778
```{include} /_inc/_continuous-integration.md
7879
```
7980

81+
8082
(contributing-change-log-label)=
8183

8284
## Change log entry
@@ -102,11 +104,11 @@ When making a change to its documentation, set up, continuous integration, or ot
102104

103105
The change log entry's format must be `###.type`, where `###` is the referenced GitHub issue or pull request number, `.` is the literal extension delimiter, and `type` is one of the following strings.
104106

105-
- `breaking` for breaking changes
106-
- `bugfix` for bug fixes
107-
- `documentation` for documentation
108-
- `feature` for new features
109-
- `internal` for internal changes
107+
- `breaking` for breaking changes
108+
- `bugfix` for bug fixes
109+
- `documentation` for documentation
110+
- `feature` for new features
111+
- `internal` for internal changes
110112

111113
A package configures the types it allows in a file `towncrier.toml` located at the root of its package directory.
112114

@@ -156,6 +158,25 @@ To standarize the developer experience across packages, a configuration tool is
156158

157159
See the [tool documentation](https://github.com/plone/meta) for more information.
158160

161+
162+
(contributing-guidance-for-merging-pull-requests-label)=
163+
164+
## Guidance for merging pull requests
165+
166+
- If you have any doubt, don't merge, but ask.
167+
- All {doc}`CI checks <core/continuous-integration>` must pass, unless there is a good reason to ignore it.
168+
If you ignore a check, then write the good reason either in a comment or in the merge message.
169+
- Get at least one approval from another Plone contributor, preferably a member of the GitHub Team for the repository.
170+
- If the pull request has documentation, ask for a review from `@plone/documentation-team`.
171+
- Usually the merge message populates with all the commit messages, but some repositories aren't configured to do this.
172+
It's helpful to include a descriptive message in the merge request.
173+
- After merging, look for any linked issues that should be closed, and close them.
174+
Sometimes the contributor forgets to include `closes #123` in the description, which would automatically close the related issue.
175+
- If the change is a bugfix, make sure that it is not merged to an older release branch unless it is also merged in separate pull request to `main`.
176+
- Thank the contributor.
177+
- 🍻
178+
179+
159180
(contributing-specific-contribution-policies-for-projects-label)=
160181

161182
## Specific contribution policies of projects

docs/i18n-l10n/contributing-translations.md

+4-12
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ You will need to work in one repository for Plone core, and optionally another o
2828
## Prerequisites
2929

3030
Request write access to https://github.com/collective/plone.app.locales to be able to commit your translation directly.
31-
3231
To do so, [join the collective GitHub organization](https://collective.github.io/).
3332

34-
Optionally sign the [Plone Contributor Agreement](https://plone.org/foundation/contributors-agreement) for translating Volto.
33+
Because translation strings do not constitute an original "work", translators are not required to sign the [Plone Contributor Agreement (PCA)](https://plone.org/foundation/contributors-agreement) to contribute translations to either Plone or Volto.
3534

3635

3736
(contributing-plone-core-translations-translate-plone-classic-ui-label)=
@@ -75,10 +74,7 @@ The process of translating the Volto frontend is the following.
7574
- To update a translation, translate your language's `po` file found at `locales/{language_code}/LC_MESSAGES/volto.po`.
7675
- To create a new translation, create a new directory at `locales/{language_code}/LC_MESSAGES/`, copy the file `locales/volto.pot` to `locales/{language_code}/LC_MESSAGES/volto.po` (note to drop the trailing `t`), and start translating.
7776

78-
4. Run `make i18n` to convert your `po` files into `json`.
79-
Volto loads these `json` files to provide translated text strings in the interface.
80-
81-
5. Commit your changes, and create a pull request.
77+
4. Commit your changes, and create a pull request.
8278

8379
```{seealso}
8480
{doc}`Volto frontend development internationalization </volto/development/i18n>`
@@ -98,17 +94,13 @@ Plone gets free hosting at the [Hosted](https://hosted.weblate.org/) platform th
9894

9995
Translators will need to create an account on Weblate with an email and password.
10096
Authentication with GitHub and other third-party accounts might not work.
97+
You can [configure your Weblate account to receive notifications](https://hosted.weblate.org/accounts/profile/#notifications) either automatically whenever you make a contribution to a project or manually watch specific projects.
10198

10299
Translators can go to the [Plone project in Weblate](https://hosted.weblate.org/projects/plone/).
103100

104101
You will see several components listed.
105102
The `volto` component is for the package `volto`, whose repository is at https://github.com/plone/volto.
106103

107-
```{note}
108-
At this moment Volto translations can't be contributed using Weblate.
109-
The Volto Team are working on this issue, and hope to fix it as soon as possible.
110-
```
111-
112104
All other components are for the package `plone.app.locales`, whose repository is at https://github.com/collective/plone.app.locales.
113105

114106
See the Weblate documentation, [Translating using Weblate](https://docs.weblate.org/en/latest/user/translating.html), for how to use it to write translations.
@@ -117,7 +109,7 @@ When you save a translation, then it is committed on a branch used only for tran
117109

118110
[See recent commits to the package `plone.app.locales`](https://github.com/collective/plone.app.locales/commits/master/).
119111

120-
Maintainers will periodically create a pull request from the changes, and merge it.
112+
Maintainers will periodically review the pull request that Weblate creates automatically, and merge it.
121113

122114

123115
(contributing-plone-core-translations-support-label)=

docs/install/create-project-cookieplone.md

+15-26
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,40 @@ myst:
1212

1313
# Install Plone with Cookieplone
1414

15-
This chapter describes how you can create a web application using the {term}`Cookieplone` template.
16-
17-
This template is the recommended way to start a new Plone project using the Volto frontend.
15+
This chapter describes how you can create a web application using {term}`Cookieplone`.
16+
Cookieplone is the recommended way to create a Plone project as an add-on using the Volto frontend.
1817
It also includes tools for development and deployment.
1918

2019
```{seealso}
2120
For other installation options, see {ref}`get-started-install-label`.
2221
```
2322

2423
```{versionadded} Volto 18.0.0-alpha.43
25-
{term}`Cookieplone` was added as the recommended template to create a Plone project with Volto starting in Volto 18.0.0-alpha.43 and above.
24+
{term}`Cookieplone` was added as the recommended tool to create a Plone project with Volto starting in Volto 18.0.0-alpha.43 and above.
2625
```
2726

2827

2928
(create-project-cookieplone-system-requirements)=
3029

3130
## System requirements
3231

33-
Plone 6 has both hardware requirements and software prerequisites.
32+
Plone has both hardware requirements and software prerequisites.
3433

3534

36-
### Supported web browsers
35+
(create-project-cookieplone-hardware-requirements-label)=
3736

38-
```{include} /volto/_inc/_install-browser-reqs-volto.md
39-
```
37+
### Hardware requirements
4038

41-
```{include} /_inc/_install-browser-reqs-classic-ui.md
39+
```{include} /volto/_inc/_hardware-requirements.md
4240
```
4341

4442

45-
(create-project-cookieplone-hardware-requirements-label)=
43+
### Supported web browsers
4644

47-
### Hardware requirements
45+
```{include} /volto/_inc/_install-browser-reqs-volto.md
46+
```
4847

49-
```{include} /_inc/_hardware-requirements.md
48+
```{include} /_inc/_install-browser-reqs-classic-ui.md
5049
```
5150

5251

@@ -66,32 +65,23 @@ Plone 6 has both hardware requirements and software prerequisites.
6665

6766
#### uv
6867

69-
```{include} /_inc/_install-uv.md
68+
```{include} ../volto/_inc/_install-uv.md
7069
```
7170

7271

73-
#### Python
74-
75-
{term}`uv` will download and install the required Python version for your project.
76-
77-
7872
#### nvm
7973

8074
```{include} ../volto/_inc/_install-nvm.md
8175
```
8276

8377

78+
(prerequisites-for-installation-nodejs-label)=
79+
8480
#### Node.js
8581

8682
```{include} ../volto/_inc/_install-nodejs.md
8783
```
8884

89-
3. Enable {term}`corepack` so that Node.js will install {term}`pnpm` as a package manager.
90-
91-
```shell
92-
npm i -g corepack@latest && corepack enable
93-
```
94-
9585

9686
#### Make
9787

@@ -109,8 +99,7 @@ Plone 6 has both hardware requirements and software prerequisites.
10999

110100
## Generate the project
111101

112-
After satisfying the prerequisites and having activated an LTS version of Node,
113-
generate the project.
102+
After satisfying the prerequisites and having {ref}`activated an LTS version of Node.js <prerequisites-for-installation-nodejs-label>`, generate the project.
114103

115104
```shell
116105
uvx cookieplone project

0 commit comments

Comments
 (0)