Skip to content

Commit 5da32ff

Browse files
committed
Pull in plone.restapi docs
1 parent 83a35d0 commit 5da32ff

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ pyvenv.cfg
99

1010
# symlinked from submodule
1111
docs/volto
12+
docs/plone.restapi

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
path = submodules/volto
33
url = https://github.com/plone/volto.git
44
branch = master
5+
[submodule "submodules/plone.restapi"]
6+
path = submodules/plone.restapi
7+
url = git@github.com:plone/plone.restapi.git
8+
branch = plone6docs

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,13 @@ docs/volto:
4343
git submodule update; \
4444
ln -s ../submodules/volto/docs/source ./docs/volto
4545

46+
docs/restapi:
47+
git submodule init; \
48+
git submodule update; \
49+
ln -s ../submodules/plone.restapi/docs ./docs/plone.restapi
50+
4651
.PHONY: deps
47-
deps: bin/python docs/volto ## Create Python virtual environment, install requirements, pull in Volto submodule
52+
deps: bin/python docs/volto docs/restapi ## Create Python virtual environment, install requirements, and finally initialize or update the volto and plone.restapi submodules.
4853

4954
.PHONY: html
5055
html: deps ## Build html

docs/contributing/admins.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,19 @@ Inside the repository `plone/documentation`, add a git submodule that points to
2828
git submodule add git@github.com:plone/my_package.git submodules/my_package
2929
```
3030

31+
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+
3140
To make it easier for other contributors to work with your project, update the following files, using `volto` as a model.
3241

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-volto-documentation-label`.
43+
- Add the symlink `docs/my_package` to `.gitignore`.
44+
- Optionally set a branch to work on in `.gitmodules`.
3545

3646
Commit and push your changes to a remote, and submit a pull request against [`plone/documentation@6-dev`](https://github.com/plone/documentation/compare).

0 commit comments

Comments
 (0)