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
Copy file name to clipboardExpand all lines: docs/contributing/myst-reference.md
+44Lines changed: 44 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,21 @@ Use `image` for anything but diagrams.
107
107
108
108
Use `figure` for diagrams.
109
109
110
+
Paths to images and figures must resolve in both the main documentation and the submodule's documentation, if present.
111
+
112
+
For inline images, we use the MyST extension [`html_image`](https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#html-images).
113
+
Example syntax is shown below.
114
+
115
+
```html
116
+
You can copy <imgalt="Copy icon"src="../../_images/copy.svg"class="inline"> blocks.
117
+
```
118
+
119
+
Note that the HTML attribute `class` must be set to `inline` to render the image inline at `1rem`.
120
+
121
+
The above syntax renders as shown below.
122
+
123
+
> You can copy <imgalt="Copy icon"src="../../_images/copy.svg"class="inline"> blocks.
124
+
110
125
Images and figures should always include `alt` text.
111
126
112
127
From [Web Accessibility In Mind (WebAIM)](https://webaim.org/techniques/alttext/):
@@ -167,6 +182,35 @@ Accessibility is part of the [Plone brand and identity](https://plone.org/access
167
182
```
168
183
169
184
185
+
#### Video
186
+
187
+
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.
188
+
189
+
Avoid animated GIFs because they do not allow control of playback.
190
+
191
+
Audio is not required, but may be helpful.
192
+
If you include audio, it is helpful to include closed captions or a transcript.
193
+
194
+
It is helpful to include overlays of key strokes, and mouse and other input gestures, to describe how to interact with the user interface.
195
+
196
+
Paths to videos must resolve in both the main documentation and the submodule's documentation, if present.
Copy file name to clipboardExpand all lines: docs/contributing/sphinx-extensions.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ We use several Sphinx extensions to enhance the presentation of Plone documentat
23
23
-[`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.
24
24
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/).
25
25
It is used by Plone's {doc}`plone.restapi/docs/source/index`.
26
+
-[`sphinxcontrib.video`](https://pypi.org/project/sphinxcontrib-video/) allows you to embed local videos as defined by the HTML5 standard.
-[`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.
0 commit comments