Lint mermaid blocks in docs

Problem

To avoid issues like #441233 (closed) we should lint mermaid blocks in doc/.

Proposed solution

Extract mermaid blocks from documentation and lint them in CI via mermaid.parse.

Edited by Marcel Amirault