Skip to content

Commit 0143648

Browse files
committed
doc: add toc to the end of prop type content pages
1 parent 207fa10 commit 0143648

File tree

16 files changed

+111
-0
lines changed

16 files changed

+111
-0
lines changed

_includes/toc_siblings.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<ul>
2+
{% assign pages = site.html_pages | where: "parent", page.parent | sort: "nav_order" -%}
3+
{%- for node in pages -%}
4+
<li><a href="{{ node.url }}">{{ node.title }}</a></li>
5+
{%- endfor -%}
6+
</ul>

prop-types/boolean.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,10 @@ Examples below set the `antialias` prop to `true`.
1717
```html
1818
<vgl-renderer :antialias="true" />
1919
```
20+
21+
---
22+
23+
## List of prop types
24+
{: .text-delta}
25+
26+
{% include toc_siblings.html %}

prop-types/color.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,10 @@ Examples below set the light color to `0x4ef3a7`.
2828
```html
2929
<vgl-ambient-light :color="new THREE.Color(0x4ef3a7)" />
3030
```
31+
32+
---
33+
34+
## List of prop types
35+
{: .text-delta}
36+
37+
{% include toc_siblings.html %}

prop-types/euler.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,10 @@ Examples below set the `rotation` prop to
1717
```html
1818
<vgl-group :rotation="new THREE.Euler(0.12, 0.23, 0.34, 'ZYX')" />
1919
```
20+
21+
---
22+
23+
## List of prop types
24+
{: .text-delta}
25+
26+
{% include toc_siblings.html %}

prop-types/float-array.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ Examples below set the `position-attribute` prop to `[1.1, 1.2, 1.3, 3.1, 3.2, 3
2020
```html
2121
<vgl-geometry :position-attribute="[1.1, 1.2, 1.3, 3.1, 3.2, 3.3]" />
2222
```
23+
24+
---
25+
26+
## List of prop types
27+
{: .text-delta}
28+
29+
{% include toc_siblings.html %}

prop-types/float.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@ Examples below set the `fov` prop to `63.35`.
1616
```html
1717
<vgl-perspective-camera :fov="63.35" />
1818
```
19+
20+
---
21+
22+
## List of prop types
23+
{: .text-delta}
24+
25+
{% include toc_siblings.html %}

prop-types/fog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@ nav_order: 15
55

66
# fog
77
Space-separated paramaters as color, near and far, corresponding [THREE.Fog](https://threejs.org/docs/#api/en/scenes/Fog)
8+
9+
---
10+
11+
## List of prop types
12+
{: .text-delta}
13+
14+
{% include toc_siblings.html %}

prop-types/int.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@ Examples below set the `radial-segments` prop to `12`.
1616
```html
1717
<vgl-cylinder-geometry :radial-segments="12" />
1818
```
19+
20+
---
21+
22+
## List of prop types
23+
{: .text-delta}
24+
25+
{% include toc_siblings.html %}

prop-types/name.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@ nav_order: 5
66
# name
77
Identifier string without space charactor. Used for object specification in VueGL's
88
namespace.
9+
10+
---
11+
12+
## List of prop types
13+
{: .text-delta}
14+
15+
{% include toc_siblings.html %}

prop-types/names.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@ Examples below set materials named `mat1` and `mat2` to the mesh object.
1616
```html
1717
<vgl-mesh :material="['mat1', 'mat2']" />
1818
```
19+
20+
---
21+
22+
## List of prop types
23+
{: .text-delta}
24+
25+
{% include toc_siblings.html %}

0 commit comments

Comments
 (0)