Skip to content

Commit 10277fb

Browse files
authored
Merge branch '6.0' into makefile-combine-plone.api
2 parents 1d64a04 + 1fb1161 commit 10277fb

File tree

10 files changed

+48
-22
lines changed

10 files changed

+48
-22
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ docs/plone.api
1111
docs/plone.restapi
1212
docs/volto
1313

14+
# created on first make command
15+
plone.api-install
16+
1417
# editor files
1518
.vscode

docs/conf.py

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"sphinx_examples",
5959
"sphinx_reredirects",
6060
"sphinx_sitemap",
61+
"sphinx_tippy",
6162
"sphinxcontrib.httpdomain", # plone.restapi
6263
"sphinxcontrib.httpexample", # plone.restapi
6364
"sphinxcontrib.mermaid",
@@ -102,7 +103,7 @@
102103
r"https://coveralls.io/repos/github/plone/plone.restapi/badge.svg\?branch=main", # plone.restapi
103104
r"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors#Identifying_the_issue", # volto
104105
r"https://docs.cypress.io/guides/references/migration-guide#Migrating-to-Cypress-version-10-0", # volto
105-
r"https://browsersl.ist/#",
106+
r"https://browsersl.ist/#", # volto
106107
# Ignore unreliable sites
107108
r"https://web.archive.org/",
108109
r"https://www.gnu.org/", # Consider removal when upgrading Sphinx
@@ -138,6 +139,7 @@
138139
"**/eggs",
139140
"_inc/.*",
140141
"plone.restapi/.*",
142+
"plone.restapi/*.md",
141143
"plone.restapi/bin",
142144
"plone.restapi/develop-eggs",
143145
"plone.restapi/docs/source/glossary.md", # There can be only one Glossary.
@@ -301,15 +303,14 @@
301303
# For more information see:
302304
# https://myst-parser.readthedocs.io/en/latest/syntax/optional.html
303305
myst_enable_extensions = [
304-
"deflist", # Support definition lists.
305-
# https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#definition-lists
306-
"linkify", # Identify "bare" web URLs and add hyperlinks.
307-
"colon_fence", # You can also use ::: delimiters to denote code fences,\
308-
# instead of ```.
309-
"substitution", # plone.restapi \
310-
# https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#substitutions-with-jinja2
306+
"attrs_block", # Support parsing of block attributes.
307+
"attrs_inline", # Support parsing of inline attributes.
308+
"colon_fence", # You can also use ::: delimiters to denote code fences, instead of ```.
309+
"deflist", # Support definition lists. https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#definition-lists
311310
"html_image", # For inline images. See https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#html-images
311+
"linkify", # Identify "bare" web URLs and add hyperlinks.
312312
"strikethrough", # See https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#syntax-strikethrough
313+
"substitution", # Use Jinja2 for substitutions. https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#substitutions-with-jinja2
313314
]
314315

315316
myst_substitutions = {
@@ -405,6 +406,16 @@
405406
sitemap_filename = "sitemap-custom.xml"
406407

407408

409+
# -- sphinx-tippy configuration ----------------------------------
410+
tippy_anchor_parent_selector = "article.bd-article"
411+
tippy_enable_doitips = False
412+
tippy_enable_wikitips = False
413+
tippy_props = {
414+
"interactive": True,
415+
"placement": "auto-end",
416+
}
417+
418+
408419
# -- Options for HTML help output -------------------------------------------------
409420

410421
# Output file base name for HTML help builder.

docs/contributing/documentation/admins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The following are example files that you can use to configure your project for p
103103
104104
- [Plone Sphinx Theme `Makefile`](https://github.com/plone/plone-sphinx-theme/blob/main/Makefile), specifically the `rtd-pr-preview` section.
105105
This is the command to use to build documentation previews on Read the Docs.
106-
- [Plone Sphinx Theme `requirements-docs.txt`](https://github.com/plone/plone-sphinx-theme/blob/main/requirements-docs.txt) specifies the requirements to use Plone Sphinx Theme and build the docs.
106+
- [Plone Sphinx Theme `pyproject.toml`](https://github.com/plone/plone-sphinx-theme/blob/main/pyproject.toml) specifies the requirements to use Plone Sphinx Theme and build the docs.
107107
- [Plone Sphinx Theme `conf.py`](https://github.com/plone/plone-sphinx-theme/blob/main/docs/conf.py) the Sphinx configuration file to build the docs.
108108
- [Plone Sphinx Theme `.readthedocs.yaml`](https://github.com/plone/plone-sphinx-theme/blob/main/.readthedocs.yaml) specifies the configuration and Makefile command that Read the Docs uses to build the docs.
109109
- [Plone Sphinx Theme `.github/workflows/rtd-pr-preview.yml`](https://github.com/plone/plone-sphinx-theme/blob/main/.github/workflows/rtd-pr-preview.yml) specifies when to build the docs, specifically only when a pull request is opened and there are changes to the documentation files.

docs/contributing/documentation/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ git push
175175
```
176176

177177
```{seealso}
178-
[How to undo a committed submodule command](https://stackoverflow.com/a/46500544/2214933).
178+
[How to undo a committed submodule command](https://stackoverflow.com/questions/46500441/how-to-undo-a-committed-submodule-command/46500544#46500544).
179179
```
180180

181181

docs/contributing/documentation/myst-reference.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,13 @@ This is MyST syntax for term ``{term}`React` ``
415415
```
416416

417417

418+
### Strikethrough
419+
420+
```{example}
421+
This is MyST markup for ~~strikethrough~~ inline text format.
422+
```
423+
424+
418425
### Glossary terms
419426

420427
Add a term to the {ref}`glossary-label`, located at {file}`/glossary.md`.

docs/contributing/documentation/themes-and-extensions.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,37 +30,41 @@ We use several MyST and Sphinx extensions to enhance the presentation of Plone d
3030

3131
### MyST
3232

33+
- [`attrs_block`](https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#block-attributes) supports parsing of block attributes before certain block syntaxes.
34+
- [`attrs_inline`](https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#inline-attributes) supports parsing of inline attributes before certain inline syntaxes.
35+
- [`colon_fence`](https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#code-fences-using-colons) supports the use of three colons `:::` as delimiters to denote code fences, instead of three backticks `` ``` ``.
3336
- [`deflist`](https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#definition-lists) supports definition lists.
37+
- [`html_image`](https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#html-images) supports the use of HTML `<img>` tags.
3438
- [`linkify`](https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#linkify) identifies "bare" web URLs and adds hyperlinks.
35-
- [`colon_fence`](https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#code-fences-using-colons) supports the use of three colons `:::` as delimiters to denote code fences, instead of three backticks `` ``` ``.
39+
- [`strikethrough`](https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#syntax-strikethrough) supports the use of strikethrough markup.
3640
- [`substitution`](https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#substitutions-with-jinja2) supports the use of substitutions with Jinja2.
37-
- [`html_image`](https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#html-images) supports the use of HTML `<img>` tags.
3841

3942

4043
### Sphinx
4144

4245
- [`myst_parser`](https://myst-parser.readthedocs.io/en/latest/) parses MyST, a rich and extensible flavour of Markdown for authoring documentation.
4346
- [`sphinx-design`](https://sphinx-design.readthedocs.io/en/latest/), with a configuration name of `sphinx_design`, adds grids, cards, icons, badges, buttons, tabs, and dropdowns.
4447
- [`sphinx-examples`](https://ebp-sphinx-examples.readthedocs.io/en/latest/) adds "example snippets" that allow you to show off source Markdown and the result of rendering it in Sphinx.
45-
- [`sphinx-notfound-page`](https://sphinx-notfound-page.readthedocs.io/en/latest/index.html), with a configuration name of `notfound.extension`, creates a custom 404 page and helps generate proper static resource links to render the page properly.
48+
- [`sphinx-notfound-page`](https://sphinx-notfound-page.readthedocs.io/en/latest/index.html), with a configuration name of `notfound.extension`, creates a custom 404 page and helps generate proper static resource links to render the page.
49+
- [`sphinx-tippy`](https://sphinx-tippy.readthedocs.io/en/latest/), with a configuration name of `sphinx_tippy`, provides hover tips in your documentation.
4650
- [`sphinx.ext.autodoc`](https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html) pulls in documentation from Python docstrings to generate reStructuredText which in turn gets parsed by Sphinx and rendered to the output format.
47-
It is used by {doc}`/plone.api/index`.
51+
It's used by {doc}`/plone.api/index`.
4852
- [`sphinx.ext.autosummary`](https://www.sphinx-doc.org/en/master/usage/extensions/autosummary.html) generates function/method/attribute summary lists.
49-
It is used by {doc}`/plone.api/index`.
53+
It's used by {doc}`/plone.api/index`.
5054
- [`sphinx.ext.graphviz`](https://www.sphinx-doc.org/en/master/usage/extensions/graphviz.html) allows you to embed [Graphviz](https://graphviz.org/download/) graphs in your documents.
5155
- [`sphinx.ext.ifconfig`](https://www.sphinx-doc.org/en/master/usage/extensions/ifconfig.html) includes content based on configuration.
5256
- [`sphinx.ext.intersphinx`](https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html) provides linking between separate projects that use Sphinx for documentation.
5357
- [`sphinx.ext.todo`](https://www.sphinx-doc.org/en/master/usage/extensions/todo.html) adds support for todo items.
5458
- [`sphinx.ext.viewcode`](https://www.sphinx-doc.org/en/master/usage/extensions/viewcode.html) generates pages of source code modules and links between the source and the description.
55-
It is used by {doc}`/plone.api/index`.
59+
It's used by {doc}`/plone.api/index`.
5660
- [`sphinx_copybutton`](https://sphinx-copybutton.readthedocs.io/en/latest/index.html) adds a little "copy" button to the right of code blocks.
5761
- [`sphinx_reredirects`](https://documatt.com/sphinx-reredirects/) handles redirects for moved pages.
5862
- [`sphinx_sitemap`](https://pypi.org/project/sphinx-sitemap/) generates multiversion and multilanguage [sitemaps.org](https://www.sitemaps.org/protocol.html) compliant sitemaps.
5963
- [`sphinxcontrib.httpdomain`](https://sphinxcontrib-httpdomain.readthedocs.io/en/stable/) provides a Sphinx domain for describing HTTP APIs.
60-
It is used by Plone's {doc}`/plone.restapi/docs/source/index`.
64+
It's used by Plone's {doc}`/plone.restapi/docs/source/index`.
6165
- [`sphinxcontrib.httpexample`](https://sphinxcontrib-httpexample.readthedocs.io/en/latest/) enhances `sphinxcontrib-httpdomain` by generating RESTful HTTP API call examples for different tools from a single HTTP request example.
62-
Supported tools include [curl](https://curl.se/), [wget](https://www.gnu.org/software/wget/), [httpie](https://httpie.io/), and [python-requests](https://requests.readthedocs.io/en/latest/).
63-
It is used by Plone's {doc}`/plone.restapi/docs/source/index`.
66+
Supported tools include [`curl`](https://curl.se/), [`wget`](https://www.gnu.org/software/wget/), [`httpie`](https://httpie.io/), and [`python-requests`](https://requests.readthedocs.io/en/latest/).
67+
It's used by Plone's {doc}`/plone.restapi/docs/source/index`.
6468
- [`sphinxcontrib.mermaid`](https://pypi.org/project/sphinxcontrib-mermaid/) allows you to embed [Mermaid](https://mermaid.js.org/) graphs in your documents, including general flowcharts, sequence diagrams, and Gantt charts.
6569
- [`sphinxcontrib.video`](https://pypi.org/project/sphinxcontrib-video/) allows you to embed local videos as defined by the HTML5 standard.
6670
- [`sphinxcontrib.youtube`](https://pypi.org/project/sphinxcontrib-video/) allows you to embed remotely hosted videos from [YouTube](https://www.youtube.com/), [Vimeo](https://vimeo.com/), or [PeerTube](https://joinpeertube.org/).

docs/deployment/server-environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This page in the deployment guide covers how to prepare a server environment for
1515
You will need to prepare your environment with the following items.
1616

1717
```{note}
18-
Should we reuse or update {ref}`install-packages-hardware-requirements-label`?
18+
Should we reuse or update {ref}`create-project-cookieplone-hardware-requirements-label`?
1919
```
2020

2121
- server instance with an operating system that Plone can run on

docs/install/containers/images/backend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ services:
222222
| `CORS_ALLOW_HEADERS` | A comma separated list of request headers allowed to be sent by the client, for example `X-My-Header` | `Accept,Authorization,Content-Type,X-Custom-Header` |
223223
| `CORS_MAX_AGE` | Indicates how long the results of a preflight request can be cached | `3600` |
224224

225-
These variables are used to configure [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS).
225+
These variables are used to configure [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS).
226226

227227
(containers-images-backend-add-ons-label)=
228228

docs/install/containers/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The system requirements include those required by Docker itself.
5555
- [Windows](https://docs.docker.com/desktop/setup/install/windows-install/)
5656

5757
Plone 6 itself requires memory and disk space in addition to those of Docker alone.
58-
See its {ref}`install-packages-hardware-requirements-label`.
58+
See its {ref}`create-project-cookieplone-hardware-requirements-label`.
5959

6060

6161
### Install Docker

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ sphinx-examples
77
sphinx-notfound-page # Documentation only
88
sphinx-reredirects
99
sphinx-sitemap
10+
sphinx-tippy
1011
sphinxcontrib.httpdomain # plone.restapi
1112
sphinxcontrib.httpexample # plone.restapi
1213
sphinxcontrib-video

0 commit comments

Comments
 (0)