# Timelines and updates

Two components for writing about time. `{.timeline}` draws a definition list as dates on an axis. `{.update}` turns a heading into a dated changelog entry with tags.

## Timeline

Put `{.timeline}` under a definition list. Each term is a date or a label, and each definition is what happened.

```markdown
2026-04
:   MkDocs NG forks MkDocs 1.6 and publishes its first release.

2026-11
:   Sumi 0.1 ships with callouts, tabs, steps and local search.

    Sumi 0.2 follows a day later with charts and a Chinese edition.

2027
:   MkDocs NG 2.0.
{.timeline}
```

2026-04
:   MkDocs NG forks MkDocs 1.6 and publishes its first release.

2026-11
:   Sumi 0.1 ships with callouts, tabs, steps and local search.

    Sumi 0.2 follows a day later with charts and a Chinese edition.

2027
:   MkDocs NG 2.0.
{.timeline}

A definition can hold paragraphs, lists, code and images. Indent them by four spaces, as for any definition list. On a phone, each date sits above its entry.

## Update entries

Put `{.update}` under a heading to make it a changelog entry. `date` is shown in the page's language, and `tags` is a comma-separated list.

```markdown
### Search matches whole words
{.update date="2026-11-29" tags="Search, Breaking"}

`port` no longer finds *support*.

### Timelines
{.update date="2026-11-29" tags="Components"}

Definition lists can be drawn as timelines.
```

### Search matches whole words
{.update date="2026-11-29" tags="Search, Breaking"}

`port` no longer finds *support*.

### Timelines
{.update date="2026-11-29" tags="Components"}

Definition lists can be drawn as timelines.

The heading keeps its text and its anchor, so the table of contents, search and links to it are unchanged. The attributes can also go at the end of the heading itself, as `attr_list` writes them: `### Timelines {.update date="2026-11-29"}`.

A date must be written as `YYYY-MM-DD`. Any other date is left out, and the build prints a warning.

> [!TIP]
> For the release notes of a whole project, see [Releases and downloads](../pages/releases.md): it reads them from GitHub Releases and PyPI.

## Reference

| What | Details |
| --- | --- |
| Output | `<dl class="sumi-timeline">`; for an update, the heading gets `class="sumi-update"` and is followed by `<p class="sumi-update-meta">` with a `<time>` and one `<span class="sumi-update-tag">` per tag. |
| Without Sumi | A definition list; a heading followed by the attribute line in braces. |
| JavaScript | None. |
| Limits | A timeline needs `def_list`, which the `sumi` plugin enables. Dates must be `YYYY-MM-DD`. |
{.compact}
