# langref: add section numbers · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/3542dbf0ea5bc1ddb1c5e1c856745dc07e6c0a18)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 3542dbf0ea5bc1ddb1c5e1c856745dc07e6c0a18

Requested commit: 3542dbf0ea5bc1ddb1c5e1c856745dc07e6c0a18

Commit: 3542dbf0ea5bc1ddb1c5e1c856745dc07e6c0a18

Tree: a134956f4302054a14131d0d90e4eb3d0241e21a

Author: Manlio Perillo

Committer: Veikka Tuominen

## Message

```
langref: add section numbers

When reading a document with nested sections, it is not easy to discover
the depth of the current section.

Add support for nested section numbers, from the h2 to the h4 heading,
in the format "lv1. ", "lv1.lv2. ", "lv1.lv2.lv3. ".  The "Zig Version"
and "Table of Content" sections are excluded.

The section numbers are implemented in CSS, with the CSS rules declared
inside a @media rule.  Currently the @media rule targets all media.

```

## Parents

- [3db8cffa3b383011471f425983a7e98ad8a46aa5](https://git.cafe/gitcafe/zig/commit/3db8cffa3b383011471f425983a7e98ad8a46aa5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/3542dbf0ea5bc1ddb1c5e1c856745dc07e6c0a18?format=markdown)
