Skip to content

Commit 0d89f9d

Browse files
committed
Merge branch '6.0' into pull-request-preview
# Conflicts: # _docs/_static/custom.css # docs/conf.py # docs/install/manage-add-ons-packages.md # requirements-initial.txt # requirements.txt
2 parents e566e06 + 9644d6f commit 0d89f9d

File tree

119 files changed

+4077
-3989
lines changed

Some content is hidden

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

119 files changed

+4077
-3989
lines changed

.github/workflows/build_deploy.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,9 @@ jobs:
4343
with:
4444
node-version: ${{ env.node-version }}
4545

46-
- uses: pnpm/action-setup@v3
47-
name: Install pnpm
48-
with:
49-
version: 8
50-
run_install: false
46+
- name: Enable corepack
47+
shell: bash
48+
run: corepack enable
5149

5250
- name: Get pnpm store directory
5351
shell: bash

.gitignore

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
# Dependencies
2-
/bin
3-
/include
4-
/lib
5-
/lib64
2+
/venv
63

74
# Generated files
8-
pyvenv.cfg
95
/_build
106
/styles/Microsoft
117
/share

.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/main -- docs/ .readthedocs.yaml requirements-initial.txt requirements.txt;
21+
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/6.0 -- docs/ .readthedocs.yaml requirements-initial.txt requirements.txt;
2222
then
2323
exit 183;
2424
fi

.vscode/settings.json

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

Makefile

+15-14
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ SHELL = bash
55
# You can set these variables from the command line.
66
SPHINXOPTS ?=
77
PAPER ?=
8+
VALEOPTS ?=
89

910
# Internal variables.
10-
SPHINXBUILD = "$(realpath bin/sphinx-build)"
11-
SPHINXAUTOBUILD = "$(realpath bin/sphinx-autobuild)"
11+
SPHINXBUILD = "$(realpath venv/bin/sphinx-build)"
12+
SPHINXAUTOBUILD = "$(realpath venv/bin/sphinx-autobuild)"
1213
DOCS_DIR = ./docs/
1314
BUILDDIR = ../_build
1415
PAPEROPT_a4 = -D latex_paper_size=a4
@@ -29,20 +30,20 @@ clean: ## Clean docs build directory
2930
cd $(DOCS_DIR) && rm -rf $(BUILDDIR)/
3031

3132
.PHONY: distclean
32-
distclean: ## Clean docs build directory and Python virtual environment
33-
cd $(DOCS_DIR) && rm -rf $(BUILDDIR)/
34-
rm -rf ./bin/ ./lib/ ./lib64 ./include ./pyvenv.cfg
35-
33+
distclean: clean ## Clean docs build directory and Python virtual environment
34+
rm -rf venv
3635

37-
bin/python:
38-
python3 -m venv .
39-
bin/pip install -r requirements-initial.txt
40-
bin/pip install -r requirements.txt
36+
venv/bin/python: ## Setup up Python virtual environment and install requirements
37+
python3 -m venv venv
38+
venv/bin/pip install -r requirements-initial.txt
39+
venv/bin/pip install -r requirements.txt
40+
@echo
41+
@echo "Installation of requirements completed."
4142

4243
docs/plone.api:
4344
git submodule init; \
4445
git submodule update; \
45-
bin/pip install -e submodules/plone.api/"[test]"; \
46+
venv/bin/pip install -e submodules/plone.api/"[test]"; \
4647
ln -s ../submodules/plone.api/docs ./docs/plone.api
4748
@echo
4849
@echo "Documentation of plone.api initialized."
@@ -62,7 +63,7 @@ docs/volto:
6263
@echo "Documentation of volto initialized."
6364

6465
.PHONY: deps
65-
deps: 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.
66+
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.
6667

6768

6869
.PHONY: html
@@ -196,8 +197,8 @@ linkcheckbroken: deps ## Run linkcheck and show only broken links
196197

197198
.PHONY: vale
198199
vale: deps ## Run Vale style, grammar, and spell checks
199-
bin/vale sync
200-
bin/vale --no-wrap $(VALEFILES)
200+
venv/bin/vale sync
201+
venv/bin/vale --no-wrap $(VALEOPTS) $(VALEFILES)
201202
@echo
202203
@echo "Vale is finished; look for any errors in the above output."
203204

0 commit comments

Comments
 (0)