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/documentation/authors.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,14 +127,10 @@ When authors add a link to the documentation, it must be a valid public URL with
127
127
128
128
If it is not a valid link, or is private or local, then you must exclude it from `linkcheck` by wrapping it in single backticks.
129
129
130
-
```md
130
+
```{example}
131
131
Visit the URL `http://www.example.com` for an example.
132
132
```
133
133
134
-
This will render as follows.
135
-
136
-
> Visit the URL `http://www.example.com` for an example.
137
-
138
134
If a link has succumbed to bit rot, then try finding the most recently scraped version on the [Internet Archive Wayback Machine](https://web.archive.org/), and update the link.
139
135
140
136
To validate links, run the following command.
@@ -240,6 +236,8 @@ Authors should include at least `description`, `property=og:description`, `prope
240
236
The following is an example of `html_meta`.
241
237
Note that the content of the two tags `description` and `property=og:description` should be identical.
@@ -280,7 +234,7 @@ We use [Graphviz](https://graphviz.org/download/) and its Sphinx extension [`sph
280
234
281
235
The following MyST example will display as shown below.
282
236
283
-
````markdown
237
+
````{example}
284
238
```{eval-rst}
285
239
.. graphviz::
286
240
:align: center
@@ -294,40 +248,22 @@ The following MyST example will display as shown below.
294
248
```
295
249
````
296
250
297
-
```{eval-rst}
298
-
.. graphviz::
299
-
:align: center
300
-
301
-
digraph viewstructure {
302
-
{
303
-
node [margin=5,shape=box]
304
-
}
305
-
ZCML -> {Python, Template};
306
-
}
307
-
```
308
-
309
251
310
252
### Code block
311
253
312
254
A Python code snippet without reStructuredText options, using a simple fence.
313
255
314
-
````md
256
+
````{example}
315
257
```python
316
258
a = 2
317
259
print("my 1st line")
318
260
print(f"my {a}nd line")
319
261
```
320
262
````
321
263
322
-
```python
323
-
a =2
324
-
print("my 1st line")
325
-
print(f"my {a}nd line")
326
-
```
327
-
328
264
A Python code snippet with reStructuredText options, using a fence with the parsed reStructuredText directive `code-block`.
329
265
330
-
````md
266
+
````{example}
331
267
```{code-block} python
332
268
:linenos:
333
269
:emphasize-lines: 1, 3
@@ -338,28 +274,20 @@ print(f"my {a}nd line")
338
274
```
339
275
````
340
276
341
-
```{code-block} python
342
-
:linenos:
343
-
:emphasize-lines: 1, 3
344
-
345
-
a = 2
346
-
print("my 1st line")
347
-
print(f"my {a}nd line")
348
-
```
349
277
350
278
### Escape literal backticks inline
351
279
352
-
```md
280
+
```{example}
353
281
This is MyST syntax for term ``{term}`React` ``
354
282
```
355
283
356
-
This is MyST syntax for term ``{term}`React` ``
357
-
358
284
359
285
### Glossary terms
360
286
361
287
Add a term to the {ref}`glossary-label`, located at {file}`/glossary.md`.
362
288
289
+
% For sphinx-examples, do not add a glossary term, as it will conflict with that in the actual glossary.
290
+
363
291
```md
364
292
React
365
293
[React](https://reactjs.org/) is a JavaScript library for building user interfaces.
@@ -368,18 +296,16 @@ React
368
296
369
297
Reference a term in the {ref}`glossary-label`.
370
298
371
-
```md
299
+
```{example}
372
300
Using {term}`React` makes frontends fun again!
373
301
```
374
302
375
-
Using {term}`React` makes frontends fun again!
376
-
377
303
378
304
### Nesting directives
379
305
380
306
You can [nest directives](https://myst-parser.readthedocs.io/en/latest/syntax/roles-and-directives.html#nesting-directives), such as [admonitions](https://myst-parser.readthedocs.io/en/latest/syntax/admonitions.html) and code blocks, by ensuring that the backtick-lines corresponding to the outermost directive are longer than the backtick-lines for the inner directives.
381
307
382
-
`````
308
+
`````{example}
383
309
````{tip}
384
310
To use formatted string literals ("f-strings"), begin a string with `f` or `F` before the opening quotation mark or triple quotation mark.
385
311
Inside this string, you can write a Python expression between `{` and `}` characters that can refer to variables or literal values.
@@ -394,19 +320,3 @@ print(f"my {a}nd line")
394
320
```
395
321
````
396
322
`````
397
-
398
-
This would be rendered as:
399
-
400
-
````{tip}
401
-
To use formatted string literals ("f-strings"), begin a string with `f` or `F` before the opening quotation mark or triple quotation mark.
402
-
Inside this string, you can write a Python expression between `{` and `}` characters that can refer to variables or literal values.
Copy file name to clipboardExpand all lines: docs/contributing/documentation/themes-and-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
@@ -42,6 +42,7 @@ We use several MyST and Sphinx extensions to enhance the presentation of Plone d
42
42
43
43
-[`myst_parser`](https://myst-parser.readthedocs.io/en/latest/) parses MyST, a rich and extensible flavour of Markdown for authoring documentation.
44
44
-[`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.
45
+
-[`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
46
-[`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.
46
47
-[`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.
Copy file name to clipboardExpand all lines: docs/glossary.md
+2-9Lines changed: 2 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -344,7 +344,7 @@ fence
344
344
You can define a directive with backticks (`` ` ``) followed by a reStructuredText directive in curly brackets (`{}`), and a matching number of closing backticks.
345
345
You can also nest fences by increasing the number of backticks.
346
346
347
-
`````md
347
+
`````{example}
348
348
````{warning}
349
349
There be dragons!
350
350
```{important}
@@ -353,13 +353,6 @@ fence
353
353
````
354
354
`````
355
355
356
-
````{warning}
357
-
There be dragons!
358
-
```{important}
359
-
Dragons have feelings, too!
360
-
```
361
-
````
362
-
363
356
Open Graph
364
357
The [Open Graph protocol](https://ogp.me/) enables any web page to become a rich object in a social graph.
365
358
For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook.
@@ -744,7 +737,7 @@ Plone frontend
744
737
A frontend consists of the user interface elements of a web application.
745
738
Beginning with Plone 6, the default frontend is {term}`Volto`.
746
739
{term}`Classic UI` is a secondary frontend that is part of the {term}`Plone backend`.
747
-
740
+
748
741
TLS
749
742
Transport Layer Security
750
743
Transport Layer Security (TLS) is a cryptographic protocol designed to provide communications security over a computer network.
0 commit comments