Weld.DocsSmoke (weld v0.20.2)

Copy Markdown View Source

Static smoke checks for generated ExDoc HTML.

Summary

Functions

Verify generated ExDoc HTML in docs_dir

Functions

check(docs_dir)

@spec check(Path.t()) :: {:ok, map()} | {:error, [String.t()]}

Verify generated ExDoc HTML in docs_dir:

  • index.html exists
  • Every HTML page, including nested extras, containing a code element with the mermaid class also loads the Mermaid script and contains an inline exdoc:loaded listener (not DOMContentLoaded-only)

This inspects markup and script declarations; it does not execute JavaScript or prove that a diagram renders in a browser.