Skip to content

Commit

Permalink
Various fixes for contributors and authors (#1782)
Browse files Browse the repository at this point in the history
* Add compare-buildout-pip to conceptual-guides index

* Add alt attributes to videos

* Add support for sphinxcontrib-youtube

* Fix typo
  • Loading branch information
stevepiercy authored Nov 19, 2024
1 parent 27c4998 commit 7edc892
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/conceptual-guides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This part of the documentation provides explanation of concepts to deepen and br
:maxdepth: 2
choose-user-interface
compare-buildout-pip
distributions
package-management
make-build-backend-walk-through
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"sphinxcontrib.httpexample", # plone.restapi
"sphinxcontrib.mermaid",
"sphinxcontrib.video",
"sphinxcontrib.youtube",
"sphinxext.opengraph",
]

Expand Down
20 changes: 19 additions & 1 deletion docs/contributing/documentation/myst-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ The following MyST example for `figure` will display as shown below.
````


### Video
### Video - local

To embed local videos, such as recordings of demonstrating the user interface, we require that the videos be saved as `.mp4` for greatest compatibility, usability, accessibility, and reduced file size.

Expand All @@ -223,11 +223,29 @@ Example MyST syntax is shown below.
`````{example}
````{only} not text
```{video} ../../volto/_static/user-manual/blocks/block-copy-cut.mp4
:alt: Copy or cut a block in Volto
```
````
`````


### Video - remote

You can embed a remotely hosted video from [YouTube](https://www.youtube.com/), [Vimeo](https://vimeo.com/), or [PeerTube](https://joinpeertube.org/).

The following example shows how to embed a video from YouTube using privacy mode.
You should use privacy mode so that visitors from the European Union don't get blocked.

```{youtube} kHec4MXH8vo
:privacy_mode:
:width: 100%
```

```{seealso}
For additional configuration options, see the usage documentation for [`sphinxcontrib-youtube`](https://sphinxcontrib-youtube.readthedocs.io/en/latest/usage.html).
```


### Diagrams and graphs with Graphviz

We use [Graphviz](https://graphviz.org/download/) and its Sphinx extension [`sphinx.ext.graphviz`](https://www.sphinx-doc.org/en/master/usage/extensions/graphviz.html) to render diagrams and graph visualizations.
Expand Down
1 change: 1 addition & 0 deletions docs/contributing/documentation/themes-and-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ We use several MyST and Sphinx extensions to enhance the presentation of Plone d
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/).
It is used by Plone's {doc}`/plone.restapi/docs/source/index`.
- [`sphinxcontrib.video`](https://pypi.org/project/sphinxcontrib-video/) allows you to embed local videos as defined by the HTML5 standard.
- [`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/).
- [`sphinxext.opengraph`](https://pypi.org/project/sphinxext-opengraph/) generates [OpenGraph metadata](https://ogp.me/).
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
lesscpy
linkify-it-py
plone-sphinx-theme
sphinx-autobuild
Expand All @@ -11,6 +10,7 @@ sphinx-sitemap
sphinxcontrib.httpdomain # plone.restapi
sphinxcontrib.httpexample # plone.restapi
sphinxcontrib-video
sphinxcontrib-youtube
sphinxext-opengraph
sphinxcontrib.mermaid
vale

0 comments on commit 7edc892

Please sign in to comment.