Skip to content

Commit 869997b

Browse files
authored
Merge branch '6.0' into gforcada-patch-2
2 parents 9a0c099 + ef89b06 commit 869997b

File tree

9 files changed

+89
-18
lines changed

9 files changed

+89
-18
lines changed

.github/workflows/build_deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
name: docs.plone.org
1616
url: https://docs.plone.org
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- name: Setup Graphviz
20-
uses: ts-graphviz/setup-graphviz@v1
21-
- name: Set up Python 3.10
22-
uses: actions/setup-python@v4
20+
uses: ts-graphviz/setup-graphviz@v2
21+
- name: Set up Python 3.12
22+
uses: actions/setup-python@v5
2323
with:
24-
python-version: '3.10'
24+
python-version: '3.12'
2525
cache: 'pip'
2626
- name: Install dependencies
2727
run: |
@@ -39,11 +39,11 @@ jobs:
3939
run: make deploy
4040

4141
- name: Use Node.js ${{ env.node-version }}
42-
uses: actions/setup-node@v3
42+
uses: actions/setup-node@v4
4343
with:
4444
node-version: ${{ env.node-version }}
4545

46-
- uses: pnpm/action-setup@v2
46+
- uses: pnpm/action-setup@v3
4747
name: Install pnpm
4848
with:
4949
version: 8

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ jobs:
66
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v1
9+
- uses: actions/checkout@v4
1010

1111
- name: Set up Python ${{ matrix.python-version }}
12-
uses: actions/setup-python@v4
12+
uses: actions/setup-python@v5
1313
with:
14-
python-version: "3.10"
14+
python-version: "3.12"
1515

1616
- name: Install dependencies
1717
run: |

.github/workflows/update_submodule.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# See https://github.com/plone/documentation/issues/1214 for current status
12
name: Get latest version of submodules and push back to 6.0 branch
23

34
on:

docs/classic-ui/icons.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@ To use a different icon than the system default, you can override the registrati
6767

6868
## Icon expression
6969

70-
```{todo}
71-
How does this work? We need an example here!
72-
```
73-
74-
- The field `icon_expression` is used again to define icons for actions, content types, and other purposes.
70+
- The field `icon_expr` is used again to define icons for actions, content types, and other purposes.
7571
- Use the icon name for icon expressions.
7672

73+
Example:
74+
75+
```xml
76+
<property name="icon_expr">string:list-check</property>
77+
```
7778

7879
(classic-ui-icons-icon-resolver-label)=
7980

docs/classic-ui/theming/from-scratch.md

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ prefix = /++theme++plonetheme.munich
6666
doctype = <!DOCTYPE html>
6767
```
6868

69+
(classic-ui-from-scratch-bundle-registration-label)=
70+
6971
### Bundle registration
7072

7173
```xml
@@ -120,7 +122,61 @@ yarn dist
120122
- Tweak basic settings like rounded corners, shadows, and so on.
121123
- Set custom fonts
122124
- Define your own stuff
123-
- Import Boostrap (as basis)
125+
- Import Bootstrap (as basis)
126+
127+
128+
#### Minimal backend styling
129+
130+
When you create a theme from scratch, it is convenient to reuse the Barceloneta theme for:
131+
132+
- Plone toolbar
133+
- add and edit forms
134+
- control panels
135+
136+
To do so, follow this guide.
137+
138+
- Create a new CSS file in your theme, such as the following.
139+
140+
```scss
141+
@import "@plone/plonetheme-barceloneta-base/scss/variables.colors.plone";
142+
@import "@plone/plonetheme-barceloneta-base/scss/variables.colors.dark.plone";
143+
@import "@plone/plonetheme-barceloneta-base/scss/root_variables";
144+
@import "bootstrap/scss/bootstrap";
145+
146+
@import "@plone/plonetheme-barceloneta-base/scss/toolbar";
147+
@import "@plone/plonetheme-barceloneta-base/scss/controlpanels";
148+
@import "@plone/plonetheme-barceloneta-base/scss/forms";
149+
```
150+
151+
```{tip}
152+
See all the available [Barceloneta SCSS files](https://github.com/plone/plonetheme.barceloneta/tree/master/scss), and import the ones that you want to use.
153+
```
154+
155+
- Add `@plone/plonetheme-barceloneta-base` as a dependency.
156+
157+
```shell
158+
yarn add @plone/plonetheme-barceloneta-base
159+
```
160+
161+
- Add a script in {file}`package.json` to compile the CSS.
162+
163+
```json
164+
"css-compile-main": "sass --load-path=node_modules --style expanded --source-map --embed-sources --no-error-css plone.scss:../static/plone.css"
165+
```
166+
167+
```{tip}
168+
Look at [`plonetheme.barcelonta`'s {file}`package.json`](https://github.com/plone/plonetheme.barceloneta/blob/master/package.json) for a few more scripts that can prefix and minify your CSS and get a bundle for use in production.
169+
```
170+
171+
- Run the compilation.
172+
173+
```shell
174+
yarn run css-compile-main
175+
```
176+
177+
- Finally, {ref}`register the bundle <classic-ui-from-scratch-bundle-registration-label>`.
178+
179+
With this guide, you will save yourself quite some work on styling the toolbar, the add and edit forms, and control panels, while keeping the rest of your theming separate.
124180

125181

126182
#### Templates

docs/glossary.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,4 +701,13 @@ Nick
701701
predicate
702702
predicates
703703
In programming, a predicate is a test which returns `true` or `false`.
704+
705+
pnpm workspace
706+
workspace
707+
pnpm has built-in support for monorepositories (also known as multi-package repositories, multi-project repositories, or monolithic repositories).
708+
Workspaces provide support to manage multiple packages from your local file system from within a singular top-level, root package.
709+
By defining a single `package.json` file at the root of the repository and specifying the individual packages as workspaces, pnpm treats them as interdependent projects.
710+
711+
When you run `pnpm install` at the root of the repository, pnpm installs dependencies for all workspaces, ensuring consistency across the entire project.
712+
This centralized approach streamlines development, facilitates code sharing, and simplifies the maintenance of complex projects.
704713
```

docs/install/create-project.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ You will be presented with a series of prompts.
228228
You can accept the default values in square brackets (`[default-option]`) by hitting the {kbd}`Enter` key, or enter your preferred values.
229229
For ease of documentation, we will use the default values.
230230

231+
```{tip}
232+
See the cookiecutter's README for how to [Use options to avoid prompts](https://github.com/collective/cookiecutter-plone-starter/?tab=readme-ov-file#use-options-to-avoid-prompts).
233+
```
234+
231235
(avoid-plone-core-package-names)=
232236
233237
```{important}

submodules/volto

Submodule volto updated 46 files

0 commit comments

Comments
 (0)