tree: 08c7e31a9615989d28662d58d712b73c0d44b080 [path history] [tgz]
  1. go/
  2. images/
  3. build_release
  4. Makefile
  5. probersk.json5
  6. README.md
dot/README.md

dot

This is the code for https://dot.skia.org, a service for rendering Graphviz dot code into SVG.

We look for Graphviz data formatted in a specific way:

  <details>
      <summary>
          <object type="image/svg+xml" data="https://dot.skia.org/dot"></object>
      </summary>
      <pre>
      graph {
          Hello -- World
      }
      </pre>
  </details>

The details/summary allows for showing the summary, the generated SVG, while hiding the dot code in a way that makes it easy to inspect it.

We use an ‘object’ tag instead of an ‘img’ tag because that allows any links in the SVG to be functional.

The ‘pre’ tag makes it easy to grab the dot code and also formats the dot code nicely.