You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deps: bin/python docs/volto docs/restapi ## Create Python virtual environment, install requirements, initialize or update the volto and plone.restapi submodules, and finally create symlinks to the documentation source.
Add a target `docs/my_package` in `Makefile`, then add `docs/my_package` to the `deps` target, following `volto` as a pattern.
32
+
You might need to adjust the paths to your package's documentation after it is cloned.
33
+
34
+
To complete setup, generate a symlink to your project's docs, and build the docs, use a single command.
35
+
36
+
```shell
37
+
make html
38
+
```
39
+
31
40
To make it easier for other contributors to work with your project, update the following files, using `volto` as a model.
32
41
33
-
-`Makefile` targets `docs/my_package` and `deps`
34
-
- The documentation section {ref}`contributing-editing-volto-documentation-label`
42
+
- Add it to the documentation section {ref}`contributing-editing-external-package-documentation-label`.
43
+
- Add the symlink `docs/my_package` to `.gitignore`.
44
+
- Optionally set a branch to work on in `.gitmodules`.
35
45
36
46
Commit and push your changes to a remote, and submit a pull request against [`plone/documentation@6-dev`](https://github.com/plone/documentation/compare).
First discuss whether you should perform any work.
69
70
Any method below is acceptable, but are listed in order of most likely to get a response.
70
71
71
-
- Search for open issues in [`documentation`](https://github.com/plone/documentation/issues) or [`volto`](https://github.com/plone/volto/issues) and comment on them.
72
-
- Create a new issue in [`documentation`](https://github.com/plone/documentation/issues) or [`volto`](https://github.com/plone/volto/issues).
72
+
- Search for open issues in [`documentation`](https://github.com/plone/documentation/issues), [`plone.restapi`](https://github.com/plone/plone.restapi/issues), or [`volto`](https://github.com/plone/volto/issues) and comment on them.
73
+
- Create a new issue in [`documentation`](https://github.com/plone/documentation/issues), [`plone.restapi`](https://github.com/plone/plone.restapi/issues), or [`volto`](https://github.com/plone/volto/issues).
73
74
- Discuss during conferences, trainings, and other Plone events.
74
75
- Ask on the [Plone Community Forum, Documentation topic](https://community.plone.org/c/documentation/13).
75
76
- Ask in the [Plone chat on Discord](https://discord.com/invite/zFY3EBbjaj).
@@ -110,14 +111,14 @@ Quick edits for minor issues, such as typographical errors, misspellings, and En
110
111
For large edits, first follow the instructions in {doc}`setup-build`.
111
112
112
113
Once you have your environment set up, then you can follow the standard practice for making a pull request.
113
-
This practice differs depending on whether you are making contributions to only the core `documentation` files or `volto` files as well.
114
+
This practice differs depending on whether you are making contributions to only the core `documentation` files, or `plone.restapi` and `volto` files as well.
114
115
115
116
116
117
(contributing-documentation-only-label)=
117
118
118
119
### Working with only the `plone/documentation` repository
119
120
120
-
This section describes how to make contributions to files in the `plone/documentation` repository only, and excludes `plone/volto/docs` files.
121
+
This section describes how to make contributions to files in the `plone/documentation` repository only, and excludes files in `submodules/plone.restapi/docs` and `submodules/volto/docs`.
121
122
122
123
1. From the project root directory, sync your local `6-dev` branch with its remote.
123
124
You might need to resolve conflicts.
@@ -170,16 +171,16 @@ This section describes how to make contributions to files in the `plone/document
170
171
1. Members who subscribe to the repository will receive a notification and review your request.
If you want to edit the Volto documentation — the files within the `docs/volto` subdirectory — the process is slightly different.
178
+
If you want to edit documentation of imported external packages, the process is slightly different.
178
179
We use git submodules to manage multiple repositories.
179
-
We imported the `plone/volto` repository into the `plone/documentation` repository as described in {doc}`setup-build`.
180
+
We imported the external repositories the `plone/documentation` repository as described in {doc}`setup-build`.
180
181
181
182
```{important}
182
-
We currently use the branches `plone/documentation@6-dev` and `plone/volto@master` as the main branches for developing Plone 6 Documentation.
183
+
We currently use the branches `plone/documentation@6-dev`, `plone/plone.restapi@plone6docs`, and `plone/volto@master` as the main branches for developing Plone 6 Documentation.
183
184
These branches may change as we get closer to a production release.
184
185
```
185
186
@@ -191,40 +192,48 @@ These branches may change as we get closer to a production release.
191
192
git pull
192
193
```
193
194
194
-
1. Change your working directory from the project root directory to`submodules/volto`.
195
+
1. Change your working directory to the imported package's directory under `submodules/`.
195
196
196
197
```shell
198
+
# choose one
199
+
cd submodules/plone.restapi
197
200
cd submodules/volto
198
201
```
199
202
200
-
1. Update the submodule, and sync your local`master` branch with its remote.
203
+
1. Update the submodule, and sync your local development branch with its remote.
201
204
You might need to resolve conflicts.
202
205
203
206
```shell
204
207
git submodule update
208
+
209
+
# For plone.restapi
210
+
git checkout plone6docs
211
+
212
+
# For volto
205
213
git checkout master
214
+
206
215
git pull
207
216
```
208
217
209
-
1. Create a new branch from `volto/master`.
218
+
1. Create a new branch from the development branch.
210
219
211
220
```shell
212
221
git checkout -b <new_branch>
213
222
```
214
223
215
-
1. Make edits to files in`docs/volto` using your favorite editor, and save, preview, and test.
224
+
1. Make edits to files in `docs/<external_package>` using your favorite editor, and save, preview, and test.
216
225
You must run and pass the builds `html` and `linkcheck` without causing new errors.
217
226
218
227
```shell
219
-
# Optionally clean the builds to avoid cache issues
220
-
# Note that for the Volto docs only, we use "docs-" as a prefix for make targets
221
-
#because it has so many of them and to avoid a conflict with the core application.
228
+
# Optionally clean the builds to avoid cache issues.
229
+
# Note that for the external packages' documentation only,
230
+
#we use "docs-" as a prefix for make targets to avoid a conflicts.
222
231
make docs-clean
223
232
make docs-html
224
233
make docs-linkcheck
225
234
```
226
235
227
-
1. Back in`submodules/volto`, commit and push your changes to the remote.
236
+
1. Back in`submodules/<external_package>`, commit and push your changes to the remote.
228
237
229
238
```shell
230
239
git add <files>
@@ -236,13 +245,20 @@ These branches may change as we get closer to a production release.
0 commit comments