nova-doc 0.3.2

The Nova language's documentation generator (internal to the nova toolchain)
Documentation
/* nova doc's themes (spec docs/superpowers/specs/2026-10-11-phase-3-5a-the-documentation-site-design.md ยง10.2). */
:root {
  --bg: #ffffff;
  --fg: #1d1f21;
  --muted: #5c6370;
  --line: #e1e4e8;
  --panel: #f6f8fa;
  --link: #0b62c4;
  --kw: #8b2bb9;
  --lit: #0a7d38;
  --cm: #6a737d;
  --name: #b35900;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16181d;
    --fg: #e3e5e8;
    --muted: #9aa2ad;
    --line: #2c313a;
    --panel: #1f232a;
    --link: #6cb6ff;
    --kw: #d2a8ff;
    --lit: #7ee787;
    --cm: #8b949e;
    --name: #ffa657;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16181d;
  --fg: #e3e5e8;
  --muted: #9aa2ad;
  --line: #2c313a;
  --panel: #1f232a;
  --link: #6cb6ff;
  --kw: #d2a8ff;
  --lit: #7ee787;
  --cm: #8b949e;
  --name: #ffa657;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
header.top {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: sticky;
  top: 0;
}
header.top .site { font-weight: 600; color: var(--fg); }
#search, #theme {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
#search { flex: 1; max-width: 480px; }
#theme { cursor: pointer; }
.layout { display: flex; max-width: 1200px; margin: 0 auto; }
.sidebar {
  width: 240px;
  flex: none;
  padding: 16px;
  border-right: 1px solid var(--line);
  font-size: 14px;
}
.sidebar h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 16px 0 4px;
  border: none;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
main, .results { flex: 1; min-width: 0; padding: 16px 24px 48px; }
h1.title .name, h3 a.anchor, code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.version { color: var(--muted); font-size: 0.8em; }
h2 { border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-top: 32px; }
section.item { margin: 24px 0; }
h3 a.anchor { color: var(--fg); }
pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.45;
}
code { font-size: 0.92em; }
pre code { font-size: inherit; }
.kw { color: var(--kw); }
.lit { color: var(--lit); }
.cm { color: var(--cm); font-style: italic; }
.name { color: var(--name); font-weight: 600; }
.member, .impl { margin: 12px 0 12px 16px; }
.docs { margin: 8px 0; }
.note { color: var(--muted); font-style: italic; }
.list li { margin: 4px 0; }
table { border-collapse: collapse; }
th, td { border: 1px solid var(--line); padding: 4px 8px; }
footer {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--line);
}
.results ul { list-style: none; padding: 0; }
.results li { margin: 6px 0; }
.results .kind { color: var(--muted); font-size: 13px; margin-right: 6px; }
.results .summary { color: var(--muted); }
@media (max-width: 720px) {
  .layout { display: block; }
  .sidebar { width: auto; border-right: none; border-bottom: 1px solid var(--line); }
}