rs-teststand-autodoc 0.13.0

Generate Markdown documentation from National Instruments TestStand™ sequence files
Documentation
/**
 * Standalone CSS for TestStand Sequence Documentation
 * 100% Offline & Self-Contained Stylesheet
 */

:root {
  --color-ink: #1b2733;
  --color-body: #2d3a48;
  --color-muted: #5b6b7b;
  --color-faint: #8595a5;

  --color-brand: #14507a;
  --color-brand-deep: #0d3a5c;
  --color-accent: #2b88d8;
  --color-accent-soft: #d8ecfb;

  --color-rule: #e3e9ef;
  --color-rule-strong: #cdd7e1;

  --color-surface: #ffffff;
  --color-surface-alt: #f6f9fc;
  --color-surface-sunken: #eef3f8;

  --color-code: #243b53;
  --color-code-bg: #f2f5f8;

  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", "Cascadia Mono", "Consolas", "SFMono-Regular", "Courier New", monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-ink: #e6edf3;
    --color-body: #c9d1d9;
    --color-muted: #8b949e;
    --color-faint: #6e7681;

    --color-brand: #58a6ff;
    --color-brand-deep: #79c0ff;
    --color-accent: #388bfd;
    --color-accent-soft: #1f293d;

    --color-rule: #30363d;
    --color-rule-strong: #484f58;

    --color-surface: #0d1117;
    --color-surface-alt: #161b22;
    --color-surface-sunken: #21262d;

    --color-code: #79c0ff;
    --color-code-bg: #161b22;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-body);
  background-color: var(--color-surface);
  margin: 0;
  padding: 24px 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-ink);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

h1 {
  font-size: 26px;
  color: var(--color-brand);
  border-bottom: 2px solid var(--color-rule-strong);
  padding-bottom: 8px;
  margin-top: 0.5em;
}

h2 {
  font-size: 20px;
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 6px;
}

h3 {
  font-size: 16px;
}

h4 {
  font-size: 14px;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Document Metadata Header */
.doc-header {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.doc-header .meta-item {
  font-size: 13px;
  color: var(--color-muted);
}

.doc-header .meta-item strong {
  color: var(--color-ink);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  margin-bottom: 1.5em;
  font-size: 13px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th, td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-rule);
  vertical-align: top;
}

th {
  background-color: var(--color-surface-sunken);
  color: var(--color-ink);
  font-weight: 600;
  border-bottom: 2px solid var(--color-rule-strong);
}

tr:nth-child(even) {
  background-color: var(--color-surface-alt);
}

tr:hover {
  background-color: var(--color-accent-soft);
}

/* Code & Pre */
code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-code);
  background-color: var(--color-code-bg);
  padding: 2px 5px;
  border-radius: var(--radius-sm);
}

pre {
  background-color: var(--color-code-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  margin: 1em 0;
}

pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

/* Blockquotes */
blockquote {
  margin: 1em 0;
  padding: 8px 16px;
  color: var(--color-muted);
  background-color: var(--color-surface-alt);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Horizontal Rule */
hr {
  height: 1px;
  border: 0;
  background-color: var(--color-rule-strong);
  margin: 2em 0;
}

/* Mermaid Diagrams Container */
.mermaid-diagram {
  margin: 1.5em 0;
  padding: 16px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  text-align: center;
  overflow-x: auto;
}

.mermaid-diagram svg {
  /* Renderers emit explicit width and height attributes. Without overriding
     both, a wide chart is stretched to the container instead of scaled. */
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  display: inline-block;
}

/* Print Media */
@page {
  size: A4;
  margin: 14mm;
}

@media print {
  /* Anything that scrolls on screen must lie flat on paper: a scroll container
     prints its scrollbar and clips whatever it was hiding. */
  .mermaid-diagram,
  pre,
  table,
  .table-wrapper {
    overflow: visible !important;
    max-height: none !important;
  }

  /* Paper has no horizontal scroll, so `overflow: visible` alone just runs a
     long line off the edge. Operator prompts are single unbroken lines
     hundreds of characters long, so they have to wrap to stay on the page. */
  pre,
  pre code,
  code {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Same for a table cell holding a path or an expression. */
  td,
  th {
    overflow-wrap: anywhere;
  }

  .mermaid-diagram svg {
    /* Bounded so a tall chart scales onto one page instead of being cut. */
    max-height: 220mm;
    max-width: 100%;
  }

  body {
    padding: 0;
    max-width: 100%;
    color: #000000;
    background: #ffffff;
    font-size: 11pt;
  }

  h1 {
    font-size: 18pt;
    page-break-before: always;
  }

  h1:first-of-type {
    page-break-before: avoid;
  }

  h2 {
    font-size: 14pt;
    page-break-after: avoid;
  }

  h3, h4 {
    page-break-after: avoid;
  }

  table {
    page-break-inside: auto;
  }

  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  thead {
    display: table-header-group;
  }

  .mermaid-diagram {
    page-break-inside: avoid;
    border: 1px solid #ccc;
    background: #ffffff;
  }
}