Mermaid diagrams in IPDL documentation not rendered
Categories
(Developer Infrastructure :: Firefox Source Docs: Content, defect)
Tracking
(firefox156 fixed)
| Tracking | Status | |
|---|---|---|
| firefox156 | --- | fixed |
People
(Reporter: jimb, Assigned: Sylvestre)
Details
Attachments
(1 external file)
The IPDL documentation at https://firefox-source-docs.mozilla.org/ipc/ipdl.html#actor-lifetimes-in-c is supposed to have some Mermaid diagrams of messages being sent between parent and child, but at the moment, it seems to be showing the raw Mermaid markup.
| Reporter | ||
Comment 1•3 months ago
|
||
In the console there is the following error message:
Uncaught (in promise) UnknownDiagramError: No diagram type detected matching given configuration for text: object. Internal IPC objects in the parent and child processes
are combined for compactness. Connected **par** blocks run
concurrently. This shows that messages can be safely sent while
the parent is still being constructed.
sequenceDiagram
participant d as Driver
participant mgdc as MyManagedChild
participant mgrc as MyManagerChild
participant ipc as IPC Child/Parent
participant mgrp as MyManagerParent
participant mgdp as MyManagedParent
d->>mgdc: new
mgdc->>d: [mgd_child]
d->>mgrc: SendPMyManagedConstructor<br/>[mgd_child, params]
mgrc->>ipc: Form actor pair<br/>[mgd_child, params]
par
mgdc->>ipc: early PMyManaged messages
and
ipc->>mgrp: AllocPMyManagedParent<br/>[params]
mgrp->>mgdp: new
mgdp->>mgrp: [mgd_parent]
ipc->>mgrp: RecvPMyManagedConstructor<br/>[mgd_parent, params]
mgrp->>mgdp: initialization
ipc->>mgdp: early PMyManaged messages
end
Note over mgdc,mgdp: Bi-directional sending and receiving will now happen concurrently.
Mi https://cdn.jsdelivr.net/npm/mermaid@11.2.0/dist/chunks/mermaid.esm.min/chunk-DMXVZUOD.mjs:2
px https://cdn.jsdelivr.net/npm/mermaid@11.2.0/dist/chunks/mermaid.esm.min/chunk-DMXVZUOD.mjs:3
ft https://cdn.jsdelivr.net/npm/mermaid@11.2.0/dist/chunks/mermaid.esm.min/chunk-INOGIEW4.mjs:1
bc https://cdn.jsdelivr.net/npm/mermaid@11.2.0/dist/mermaid.esm.min.mjs:41
Qn https://cdn.jsdelivr.net/npm/mermaid@11.2.0/dist/mermaid.esm.min.mjs:41
<anonymous> https://firefox-source-docs.mozilla.org/ipc/ipdl.html#actor-lifetimes-in-c:35
EventListener.handleEvent* https://firefox-source-docs.mozilla.org/ipc/ipdl.html#actor-lifetimes-in-c:35
chunk-DMXVZUOD.mjs:2:2174
Comment 2•3 months ago
|
||
The severity field is not set for this bug.
:Sylvestre, could you have a look please?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 3•3 months ago
|
||
MyST stops parsing directive options at the first line that does not start with
a colon, so the wrapped continuation lines of these :caption: values were
not part of the option, they were the start of the directive body. Mermaid then
saw prose ahead of sequenceDiagram, failed to detect a diagram type and left
the raw markup on the page, and the captions were silently truncated to their
first line.
This is a leftover from the reStructuredText conversion, where an indented
continuation did belong to the option. Move the options of all four diagrams to
the YAML block form so the captions can stay wrapped.
Updated•3 months ago
|
Comment 5•3 months ago
|
||
| bugherder | ||
| Assignee | ||
Updated•3 months ago
|
Description
•