Skip to content

Commit

Permalink
docs: add data-toc-unnumbered option
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Mar 12, 2022
1 parent 267f26e commit bc940e1
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source/docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,20 @@ Option | Description | Default
<%- toc(page.content) %>
```

#### data-toc-unnumbered (+6.1.0)

Headings with attribute `data-toc-unnumbered="true"` will be marked as unnumbered (list number will not be display).

{% note warn "Warning!" %}
For using `data-toc-unnumbered="true"`, the renderer must have the option to add CSS classes.

Please see below PRs.

- https://github.com/hexojs/hexo/pull/4871
- https://github.com/hexojs/hexo-util/pull/269
- https://github.com/hexojs/hexo-renderer-markdown-it/pull/174
{% endnote %}

[color keywords]: http://www.w3.org/TR/css3-color/#svg-color
[Moment.js]: http://momentjs.com/
[Open Graph]: http://ogp.me/
14 changes: 14 additions & 0 deletions source/ko/docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,20 @@ Inserts [generator tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Elemen
<%- toc(page.content) %>
```

#### data-toc-unnumbered (+6.1.0)

Headings with attribute `data-toc-unnumbered="true"` will be marked as unnumbered (list number will not be display).

{% note warn "Warning!" %}
For using `data-toc-unnumbered="true"`, the renderer must have the option to add CSS classes.

Please see below PRs.

- https://github.com/hexojs/hexo/pull/4871
- https://github.com/hexojs/hexo-util/pull/269
- https://github.com/hexojs/hexo-renderer-markdown-it/pull/174
{% endnote %}

[color keywords]: http://www.w3.org/TR/css3-color/#svg-color
[Moment.js]: http://momentjs.com/
[Open Graph]: http://ogp.me/
14 changes: 14 additions & 0 deletions source/pt-br/docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,20 @@ Opção | Descrição | Padrão
<%- toc(page.content) %>
```

#### data-toc-unnumbered (+6.1.0)

Headings with attribute `data-toc-unnumbered="true"` will be marked as unnumbered (list number will not be display).

{% note warn "Warning!" %}
For using `data-toc-unnumbered="true"`, the renderer must have the option to add CSS classes.

Please see below PRs.

- https://github.com/hexojs/hexo/pull/4871
- https://github.com/hexojs/hexo-util/pull/269
- https://github.com/hexojs/hexo-renderer-markdown-it/pull/174
{% endnote %}

[color keywords]: http://www.w3.org/TR/css3-color/#svg-color
[Moment.js]: http://momentjs.com/
[Open Graph]: http://ogp.me/
14 changes: 14 additions & 0 deletions source/ru/docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,20 @@ Escapes HTML entities in a string.
<%- toc(page.content) %>
```

#### data-toc-unnumbered (+6.1.0)

Headings with attribute `data-toc-unnumbered="true"` will be marked as unnumbered (list number will not be display).

{% note warn "Warning!" %}
For using `data-toc-unnumbered="true"`, the renderer must have the option to add CSS classes.

Please see below PRs.

- https://github.com/hexojs/hexo/pull/4871
- https://github.com/hexojs/hexo-util/pull/269
- https://github.com/hexojs/hexo-renderer-markdown-it/pull/174
{% endnote %}

[Имена цветов]: http://www.w3.org/TR/css3-color/#svg-color
[Moment.js]: http://momentjs.com/
[Open Graph]: http://ogp.me/
14 changes: 14 additions & 0 deletions source/th/docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,20 @@ Option | Description | Default
<%- toc(page.content) %>
```

#### data-toc-unnumbered (+6.1.0)

Headings with attribute `data-toc-unnumbered="true"` will be marked as unnumbered (list number will not be display).

{% note warn "Warning!" %}
For using `data-toc-unnumbered="true"`, the renderer must have the option to add CSS classes.

Please see below PRs.

- https://github.com/hexojs/hexo/pull/4871
- https://github.com/hexojs/hexo-util/pull/269
- https://github.com/hexojs/hexo-renderer-markdown-it/pull/174
{% endnote %}

[color keywords]: http://www.w3.org/TR/css3-color/#svg-color
[Moment.js]: http://momentjs.com/
[Open Graph]: http://ogp.me/
14 changes: 14 additions & 0 deletions source/zh-cn/docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,20 @@ Inserts [generator tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Elemen
<%- toc(page.content) %>
```

#### data-toc-unnumbered (+6.1.0)

Headings with attribute `data-toc-unnumbered="true"` will be marked as unnumbered (list number will not be display).

{% note warn "Warning!" %}
For using `data-toc-unnumbered="true"`, the renderer must have the option to add CSS classes.

Please see below PRs.

- https://github.com/hexojs/hexo/pull/4871
- https://github.com/hexojs/hexo-util/pull/269
- https://github.com/hexojs/hexo-renderer-markdown-it/pull/174
{% endnote %}

[颜色关键字]: http://www.w3.org/TR/css3-color/#svg-color
[Moment.js]: http://momentjs.com/
[Open Graph]: http://ogp.me/
14 changes: 14 additions & 0 deletions source/zh-tw/docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,20 @@ Inserts [generator tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Elemen
<%- toc(page.content) %>
```

#### data-toc-unnumbered (+6.1.0)

Headings with attribute `data-toc-unnumbered="true"` will be marked as unnumbered (list number will not be display).

{% note warn "Warning!" %}
For using `data-toc-unnumbered="true"`, the renderer must have the option to add CSS classes.

Please see below PRs.

- https://github.com/hexojs/hexo/pull/4871
- https://github.com/hexojs/hexo-util/pull/269
- https://github.com/hexojs/hexo-renderer-markdown-it/pull/174
{% endnote %}

[顏色關鍵字]: http://www.w3.org/TR/css3-color/#svg-color
[Moment.js]: http://momentjs.com/
[Open Graph]: http://ogp.me/

0 comments on commit bc940e1

Please sign in to comment.