Skip to content

Commit 4197802

Browse files
authored
Merge branch '6.0' into search
2 parents 437583e + 74217e1 commit 4197802

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1342
-1226
lines changed

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/build_deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
run: |
5555
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
5656
57-
- uses: actions/cache@v3
57+
- uses: actions/cache@v4
5858
name: Setup pnpm cache
5959
with:
6060
path: ${{ env.STORE_PATH }}

.github/workflows/update_submodule.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
# Checkout
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
1414
ref: 6.0
1515
submodules: true

.readthedocs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ build:
1818
# If there are no changes (git diff exits with 0) we force the command to return with 183.
1919
# This is a special exit code on Read the Docs that will cancel the build immediately.
2020
- |
21-
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/6.0 -- docs/ .readthedocs.yaml requirements-initial.txt requirements.txt;
21+
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/6.0 -- docs/ Makefile .readthedocs.yaml requirements-initial.txt requirements.txt;
2222
then
2323
exit 183;
2424
fi

Makefile

+38-24
Original file line numberDiff line numberDiff line change
@@ -35,157 +35,166 @@ distclean: clean ## Clean docs build directory, Python virtual environment, and
3535
rm docs/plone.api
3636
rm docs/plone.restapi
3737
rm docs/volto
38-
@echo
3938
@echo "Cleaned docs build directory, Python virtual environment, and symlinks."
39+
@echo
4040

4141
venv/bin/python: ## Setup up Python virtual environment and install requirements
4242
python3 -m venv venv
4343
venv/bin/pip install -r requirements-initial.txt
4444
venv/bin/pip install -r requirements.txt
45-
@echo
4645
@echo "Installation of requirements completed."
46+
@echo
4747

4848
docs/plone.api: ## Setup plone.api docs
4949
git submodule init
5050
git submodule update
51-
venv/bin/pip install -e submodules/plone.api/"[test]"
5251
ln -s ../submodules/plone.api/docs ./docs/plone.api
53-
@echo
5452
@echo "Documentation of plone.api initialized."
53+
@echo
54+
55+
venv/plone.api-install: docs/plone.api
56+
touch venv/plone.api-install
57+
venv/bin/pip install plone.api -c submodules/plone.api/constraints.txt
58+
venv/bin/pip install --no-deps -e submodules/plone.api/"[test]"
59+
@echo "plone.api installed."
60+
@echo
5561

5662
docs/plone.restapi: ## Setup plone.restapi docs
5763
git submodule init
5864
git submodule update
5965
ln -s ../submodules/plone.restapi ./docs/plone.restapi
60-
@echo
6166
@echo "Documentation of plone.restapi initialized."
67+
@echo
6268

6369
docs/volto: ## Setup Volto docs
6470
git submodule init
6571
git submodule update
6672
ln -s ../submodules/volto/docs/source ./docs/volto
67-
@echo
6873
@echo "Documentation of volto initialized."
74+
@echo
6975

7076
.PHONY: deps
71-
deps: venv/bin/python docs/volto docs/plone.restapi docs/plone.api ## Create Python virtual environment, install requirements, initialize or update the volto, plone.restapi, and plone.api submodules, and finally create symlinks to the source files.
72-
77+
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.
7378

7479
.PHONY: html
7580
html: deps ## Build html
7681
cd $(DOCS_DIR) && $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
77-
@echo
7882
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
83+
@echo
7984

8085
.PHONY: manual
8186
manual: deps
8287
cd $(DOCS_DIR) && $(SPHINXBUILD) -b html -t manual . $(BUILDDIR)/manual
88+
@echo "Build finished. The manual pages are in $(BUILDDIR)/manual."
89+
@echo
8390

8491
.PHONY: dirhtml
8592
dirhtml: deps
8693
cd $(DOCS_DIR) && $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
87-
@echo
8894
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
95+
@echo
8996

9097
.PHONY: singlehtml
9198
singlehtml: deps
9299
cd $(DOCS_DIR) && $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
93-
@echo
94100
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
101+
@echo
95102

96103
.PHONY: pickle
97104
pickle: deps
98105
cd $(DOCS_DIR) && $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
99-
@echo
100106
@echo "Build finished; now you can process the pickle files."
107+
@echo
101108

102109
.PHONY: json
103110
json: deps
104111
cd $(DOCS_DIR) && $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
105-
@echo
106112
@echo "Build finished; now you can process the JSON files."
113+
@echo
107114

108115
.PHONY: htmlhelp
109116
htmlhelp: deps
110117
cd $(DOCS_DIR) && $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
111-
@echo
112118
@echo "Build finished; now you can run HTML Help Workshop with the" \
113119
".hhp project file in $(BUILDDIR)/htmlhelp."
120+
@echo
114121

115122
.PHONY: epub
116123
epub: deps
117124
cd $(DOCS_DIR) && $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
118-
@echo
119125
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
126+
@echo
120127

121128
.PHONY: latex
122129
latex: deps
123130
cd $(DOCS_DIR) && $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
124-
@echo
125131
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
126132
@echo "Run \`make' in that directory to run these through (pdf)latex" \
127133
"(use \`make latexpdf' here to do that automatically)."
134+
@echo
128135

129136
.PHONY: latexpdf
130137
latexpdf: deps
131138
cd $(DOCS_DIR) && $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
132139
@echo "Running LaTeX files through pdflatex..."
133140
$(MAKE) -C $(BUILDDIR)/latex all-pdf
134141
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
142+
@echo
135143

136144
.PHONY: text
137145
text: deps
138146
cd $(DOCS_DIR) && $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
139-
@echo
140147
@echo "Build finished. The text files are in $(BUILDDIR)/text."
148+
@echo
141149

142150
.PHONY: man
143151
man: deps
144152
cd $(DOCS_DIR) && $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
145-
@echo
146153
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
154+
@echo
147155

148156
.PHONY: texinfo
149157
texinfo: deps
150158
cd $(DOCS_DIR) && $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
151-
@echo
152159
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
153160
@echo "Run \`make' in that directory to run these through makeinfo" \
154161
"(use \`make info' here to do that automatically)."
162+
@echo
155163

156164
.PHONY: info
157165
info: deps
158166
cd $(DOCS_DIR) && $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
159167
@echo "Running Texinfo files through makeinfo..."
160168
make -C $(BUILDDIR)/texinfo info
161169
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
170+
@echo
162171

163172
.PHONY: changes
164173
changes: deps
165174
cd $(DOCS_DIR) && $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
166-
@echo
167175
@echo "The overview file is in $(BUILDDIR)/changes."
176+
@echo
168177

169178
.PHONY: linkcheck
170179
linkcheck: deps ## Run linkcheck
171180
cd $(DOCS_DIR) && $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
172-
@echo
173181
@echo "Link check complete; look for any errors in the above output " \
174182
"or in $(BUILDDIR)/linkcheck/ ."
183+
@echo
175184

176185
.PHONY: linkcheckbroken
177186
linkcheckbroken: deps ## Run linkcheck and show only broken links
178187
cd $(DOCS_DIR) && $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck | GREP_COLORS='0;31' grep -wi "broken\|redirect" --color=always | GREP_COLORS='0;31' grep -vi "https://github.com/plone/volto/issues/" --color=always && if test $$? = 0; then exit 1; fi || test $$? = 1
179-
@echo
180188
@echo "Link check complete; look for any errors in the above output " \
181189
"or in $(BUILDDIR)/linkcheck/ ."
190+
@echo
182191

183192
.PHONY: vale
184193
vale: deps ## Run Vale style, grammar, and spell checks
185194
venv/bin/vale sync
186195
venv/bin/vale --no-wrap $(VALEOPTS) $(VALEFILES)
187-
@echo
188196
@echo "Vale is finished; look for any errors in the above output."
197+
@echo
189198

190199
.PHONY: html_meta
191200
html_meta: deps ## Add meta data headers to all Markdown pages
@@ -196,6 +205,7 @@ doctest: deps
196205
cd $(DOCS_DIR) && $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
197206
@echo "Testing of doctests in the sources finished, look at the " \
198207
"results in $(BUILDDIR)/doctest/output.txt."
208+
@echo
199209

200210
.PHONY: test
201211
test: clean linkcheckbroken ## Clean docs build, then run linkcheckbroken
@@ -208,6 +218,9 @@ livehtml: deps ## Rebuild Sphinx documentation on changes, with live-reload in
208218
cd "$(DOCS_DIR)" && ${SPHINXAUTOBUILD} \
209219
--ignore "*.swp" \
210220
--port 8050 \
221+
--watch volto \
222+
--watch plone.api \
223+
--watch plone.restapi \
211224
-b html . "$(BUILDDIR)/html" $(SPHINXOPTS) $(O)
212225

213226
.PHONY: rtd-pr-preview
@@ -216,7 +229,8 @@ rtd-pr-preview: ## Build pull request preview on Read the Docs
216229
pip install -r requirements.txt
217230
git submodule init
218231
git submodule update
219-
pip install -e submodules/plone.api[test]
232+
pip install plone.api -c submodules/plone.api/constraints.txt
233+
pip install --no-deps -e submodules/plone.api[test]
220234
ln -s ../submodules/volto/docs/source ./docs/volto
221235
ln -s ../submodules/plone.restapi ./docs/plone.restapi
222236
ln -s ../submodules/plone.api/docs ./docs/plone.api

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

-10
This file was deleted.

docs/_inc/_install-python-plone60.md

-22
This file was deleted.
Loading

docs/_static/settings.json

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

docs/admin-guide/add-ons.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ See {doc}`/volto/development/add-ons/index`.
2121

2222
## Cookieplone
2323

24-
Use the following instructions if you installed Plone with either Cookieplone or `cookiecutter-plone-starter`.
24+
Use the following instructions if you installed Plone with Cookieplone.
2525

2626

2727
### Install an add-on
@@ -52,10 +52,6 @@ To actually download and install the new add-on, run the following command.
5252
make backend-build
5353
```
5454

55-
```{note}
56-
If you installed Plone using `cookiecutter-plone-starter`, run `make build-backend` instead.
57-
```
58-
5955
Now restart the backend.
6056

6157
```{seealso}
@@ -116,10 +112,6 @@ To actually download and install the new add-on, run the following command.
116112
make backend-build
117113
```
118114

119-
```{note}
120-
If you installed Plone using `cookiecutter-plone-starter`, run `make build-backend` instead.
121-
```
122-
123115
Now restart the backend.
124116

125117
```{seealso}

docs/admin-guide/configure-zope.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ myst:
44
"description": "Configure Zope options"
55
"property=og:description": "Configure Zope options"
66
"property=og:title": "Configure Zope"
7-
"keywords": "Plone 6, Zope, instance, app server, config, Cookieplone, Buildout, pip, cookiecutter-plone-starter, cookiecutter-zope-instance, plone.recipe.zope2instance"
7+
"keywords": "Plone 6, Zope, instance, app server, config, Cookieplone, Buildout, pip, cookiecutter-zope-instance, plone.recipe.zope2instance"
88
---
99

1010
(configure-zope-label)=
@@ -25,7 +25,7 @@ You can configure your Zope instance's options, including the following.
2525

2626
## Cookieplone
2727

28-
If you installed Plone using Cookieplone, `cookiecutter-plone-starter`, or pip, then Zope is configured using {term}`cookiecutter-zope-instance`.
28+
If you installed Plone using Cookieplone or pip, then Zope is configured using {term}`cookiecutter-zope-instance`.
2929
For a complete list of features, usage, and options, read [`cookiecutter-zope-instance`'s README](https://github.com/plone/cookiecutter-zope-instance#readme).
3030

3131

docs/admin-guide/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ In this part of the documentation, you can find how to install, operate, and con
2121
/install/create-project-cookieplone
2222
install-buildout
2323
install-pip
24-
/install/create-project
2524
```
2625

2726
```{toctree}
@@ -30,6 +29,7 @@ install-pip
3029
3130
run-plone
3231
add-site
32+
zope-manager-users
3333
configure-zope
3434
add-ons
3535
export-import

0 commit comments

Comments
 (0)