Megacorp Documentation v2.0-beta

Dropdown Basics

A dropdown's argument is its title, and everything indented under it is the body. Both are ordinary reStructuredText.

A plain dropdown

The body is parsed as normal block content, so it can hold anything — lists, code blocks, even other directives.

  • a bullet

  • another one

The title is parsed as inline markup, which no other directive caption in this build does:

See rinx.toml for the full list

A literal and an emphasis, both inside the summary bar.

:open: starts the dropdown expanded rather than collapsed.

Open from the start

Visible without clicking anything.

Written with no argument at all, the summary shows a placeholder icon instead of an empty bar, so there is still something to click.

No title was written for this one.

A dropdown is a container, so a directive written inside it really is parsed — this is the whole reason the build supports it rather than treating it as an unknown name:

Containing another directive

Note

An admonition nested inside a dropdown.