Markdown bonsai documentation generator
Examples for a Bonsai workflow documentation system.
The simplest case. Direct download of a bonsai workflow with an SVG preview:
Copy to clipboard on click:
| Workflow | |
|---|---|
| 
           | 
      |
This basically styles the workflow as a table with a button on the top-right corner that copies the workflow contents directly to the clipboard:
<table>
    <thead>
      <tr>
        <th>Workflow</th>
        <th style="text-align: center">
          <button class="btn" onclick="copyUrlToClipboard('assets\\workflows\\segmentation.bonsai')">Copy</button>
        </th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td colspan="2">
          <img src="assets\workflows\segmentation.svg" alt="segmentation" />
        </td>
      </tr>
    </tbody>
  </table>