Valkyrian Labs

Entry Index

Generate an index of the reference entries on a page with :::index, filtered by kind, version or deprecation.

Entry Index

:::index lists the reference entries of the page, the rows of every docs-table and every standalone :::entry, as a generated index: all commands, all configuration keys, everything deprecated, everything added in a release. Each item links to its entry's row and shows the summary beside the name.

1:::index{kind="command"}2:::3 4:::index[Deprecated]{deprecated}5:::6 7:::index[New in 1.28]{since="1.28" sort="name"}8:::

Like :::toc, the block is closed right after its marker. The index of this page's attribute options:

Attributes

index attributes
AttributeTypeDefaultSummary
stringevery kindEntry kinds to list, comma-separated (command, option, field, …).
stringLists entries whose since field equals the value.
flagLists entries that have a deprecated field.
source or namesourceDocument order, or by name.
textLabel above the list; without one the block has no visible title.
textThe same label, as an attribute.
stringdefaultTheme from the index group.
paletteColour palette for the links (see Palettes).
idElement id of the block.

Selecting Entries

  • kind matches an entry's kind, as entries[].kind and the row's data-kind show it: command and option rows of a commands table, field rows of a fields table, an :::entry{kind="command"}. A table kind name stands for its row kind, so kind="fields" is kind="field".
  • since="1.28" keeps entries whose since field (a column, an attribute, or a :since[…] role in the entry) is exactly that value.
  • deprecated keeps entries whose deprecated field says something: a blank cell, the kind's empty mark (—) or false does not count.
  • Filters combine: :::index{kind="option" deprecated} lists deprecated options.
  • Synthetic tree parents (rows a tree table creates for a name it implies) are left out.

The index is built after every table and entry on the page, so it may come before them, and its links use the final row ids, including #id overrides and -1 suffixes.

The index covers the current page only; listing the entries of a whole docs set needs the host and is planned for pmdocs.

Output

1<nav data-directive="index" data-theme="default" aria-label="Index" class="not-prose vl-md-index …">2  <ul class="vl-md-index-list" role="list">3    <li class="vl-md-index-item" data-kind="command">4      <a class="vl-md-index-link" href="#orbit-commands-sync"><code>sync</code></a> — <span class="vl-md-index-summary">Sync now.</span>5    </li>6  </ul>7</nav>

When the matches come from more than one table, they are grouped under each table's caption (vl-md-index-group, with the caption in vl-md-index-group-title); standalone entries form one group without a caption. Groups stay in the order they first appear on the page; with sort="name" the items of each group are sorted on their own. Summaries show as plain text: inline Markdown and roles such as :since[2.4] or :kbd[Ctrl+C] read as their text. An index that matches nothing renders a muted No entries. line.

Themes

Built-in index themes:

  • default
  • panel
  • muted

Diagnostics

  • index-has-content (warning): authored content inside the block; it renders after the list. Close :::index with ::: on the next line.
  • index-empty (info): nothing on the page matches. Info never fails a strict check.
  • An unsupported sort falls back to source with a warning; invalid-id as on other blocks.

The editor linter and the skills' checker report index-has-content on the same line as the renderer. index-empty depends on every entry of the page and is reported by the renderer only.