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
| Attribute | Type | Default | Summary |
|---|---|---|---|
string | every kind | Entry kinds to list, comma-separated (command, option, field, …). | |
string | Lists entries whose since field equals the value. | ||
flag | Lists entries that have a deprecated field. | ||
source or name | source | Document order, or by name. | |
text | Label above the list; without one the block has no visible title. | ||
text | The same label, as an attribute. | ||
string | default | Theme from the index group. | |
palette | Colour palette for the links (see Palettes). | ||
id | Element id of the block. |
Selecting Entries
kindmatches an entry's kind, asentries[].kindand the row'sdata-kindshow it:commandandoptionrows of acommandstable,fieldrows of afieldstable, an:::entry{kind="command"}. A table kind name stands for its row kind, sokind="fields"iskind="field".since="1.28"keeps entries whosesincefield (a column, an attribute, or a:since[…]role in the entry) is exactly that value.deprecatedkeeps entries whosedeprecatedfield says something: a blank cell, the kind's empty mark (—) orfalsedoes not count.- Filters combine:
:::index{kind="option" deprecated}lists deprecated options. - Synthetic tree parents (rows a
treetable 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:
defaultpanelmuted
Diagnostics
index-has-content(warning): authored content inside the block; it renders after the list. Close:::indexwith:::on the next line.index-empty(info): nothing on the page matches. Info never fails a strict check.- An unsupported
sortfalls back tosourcewith a warning;invalid-idas 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.