Closed Bug 2061048 Opened 3 months ago Closed 3 months ago

Mermaid diagrams in IPDL documentation not rendered

Categories

(Developer Infrastructure :: Firefox Source Docs: Content, defect)

defect

Tracking

(firefox156 fixed)

RESOLVED FIXED
156 Branch
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.

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

The severity field is not set for this bug.
:Sylvestre, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(sledru)

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.

Assignee: nobody → sledru
Status: NEW → ASSIGNED
Pushed by sledru@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c3ab64b113cb https://hg.mozilla.org/integration/autoland/rev/71516d6706f1 doc: keep the ipdl mermaid captions out of the diagrams r=ipc-reviewers,nika DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 156 Branch
Flags: needinfo?(sledru)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: