Skip to content

Commit 33ecaf0

Browse files
committed
fix(docs): migrate to TOCInline for sub navigation
1 parent 113ff49 commit 33ecaf0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+165
-249
lines changed

docs/api/accordion-group.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ hide_table_of_contents: true
44
---
55
import Tabs from '@theme/Tabs';
66
import TabItem from '@theme/TabItem';
7+
import TOCInline from '@theme/TOCInline';
78

89
import Props from '@site/static/auto-generated/accordion-group/props.md';
910
import Events from '@site/static/auto-generated/accordion-group/events.md';
@@ -15,16 +16,14 @@ import Slots from '@site/static/auto-generated/accordion-group/slots.md';
1516

1617

1718
import EncapsulationPill from '@components/page/api/EncapsulationPill';
18-
import APITOCInline from '@components/page/api/APITOCInline';
1919

2020
<EncapsulationPill type="shadow" />
2121

2222
<h2 className="table-of-contents__title">コンテンツ</h2>
2323

24-
<APITOCInline
24+
<TOCInline
2525
toc={toc}
2626
maxHeadingLevel={2}
27-
autogenerated={[Props, Events, Methods, Parts, CustomProps, Slots]}
2827
/>
2928

3029

docs/api/accordion.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import Slots from '@site/static/auto-generated/accordion/slots.md';
1717
</head>
1818

1919
import EncapsulationPill from '@components/page/api/EncapsulationPill';
20-
import APITOCInline from '@components/page/api/APITOCInline';
2120

2221
<EncapsulationPill type="shadow" />
2322

docs/api/action-sheet.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ demoSourceUrl: "https://github.com/ionic-team/ionic-docs/tree/main/static/demos/
66
---
77
import Tabs from '@theme/Tabs';
88
import TabItem from '@theme/TabItem';
9+
import TOCInline from '@theme/TOCInline';
910

1011
import Props from '@site/static/auto-generated/action-sheet/props.md';
1112
import Events from '@site/static/auto-generated/action-sheet/events.md';
@@ -20,16 +21,14 @@ import Slots from '@site/static/auto-generated/action-sheet/slots.md';
2021
</head>
2122

2223
import EncapsulationPill from '@components/page/api/EncapsulationPill';
23-
import APITOCInline from '@components/page/api/APITOCInline';
2424

2525
<EncapsulationPill type="scoped" />
2626

2727
<h2 className="table-of-contents__title">コンテンツ</h2>
2828

29-
<APITOCInline
29+
<TOCInline
3030
toc={toc}
3131
maxHeadingLevel={2}
32-
autogenerated={[Props, Events, Methods, Parts, CustomProps, Slots]}
3332
/>
3433

3534

docs/api/alert.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import Slots from '@site/static/auto-generated/alert/slots.md';
1717
</head>
1818

1919
import EncapsulationPill from '@components/page/api/EncapsulationPill';
20-
import APITOCInline from '@components/page/api/APITOCInline';
2120

2221
<EncapsulationPill type="scoped" />
2322

docs/api/app.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ hide_table_of_contents: true
44
---
55
import Tabs from '@theme/Tabs';
66
import TabItem from '@theme/TabItem';
7+
import TOCInline from '@theme/TOCInline';
78

89
import Props from '@site/static/auto-generated/app/props.md';
910
import Events from '@site/static/auto-generated/app/events.md';
@@ -18,16 +19,14 @@ import Slots from '@site/static/auto-generated/app/slots.md';
1819
</head>
1920

2021
import EncapsulationPill from '@components/page/api/EncapsulationPill';
21-
import APITOCInline from '@components/page/api/APITOCInline';
2222

2323

2424

2525
<h2 className="table-of-contents__title">コンテンツ</h2>
2626

27-
<APITOCInline
27+
<TOCInline
2828
toc={toc}
2929
maxHeadingLevel={2}
30-
autogenerated={[Props, Events, Methods, Parts, CustomProps, Slots]}
3130
/>
3231

3332

docs/api/avatar.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ demoSourceUrl: "https://github.com/ionic-team/ionic-docs/tree/main/static/demos/
66
---
77
import Tabs from '@theme/Tabs';
88
import TabItem from '@theme/TabItem';
9+
import TOCInline from '@theme/TOCInline';
910

1011
import Props from '@site/static/auto-generated/avatar/props.md';
1112
import Events from '@site/static/auto-generated/avatar/events.md';
@@ -20,16 +21,14 @@ import Slots from '@site/static/auto-generated/avatar/slots.md';
2021
</head>
2122

2223
import EncapsulationPill from '@components/page/api/EncapsulationPill';
23-
import APITOCInline from '@components/page/api/APITOCInline';
2424

2525
<EncapsulationPill type="shadow" />
2626

2727
<h2 className="table-of-contents__title">コンテンツ</h2>
2828

29-
<APITOCInline
29+
<TOCInline
3030
toc={toc}
3131
maxHeadingLevel={2}
32-
autogenerated={[Props, Events, Methods, Parts, CustomProps, Slots]}
3332
/>
3433

3534

docs/api/back-button.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ demoSourceUrl: "https://github.com/ionic-team/ionic-docs/tree/main/static/demos/
66
---
77
import Tabs from '@theme/Tabs';
88
import TabItem from '@theme/TabItem';
9+
import TOCInline from '@theme/TOCInline';
910

1011
import Props from '@site/static/auto-generated/back-button/props.md';
1112
import Events from '@site/static/auto-generated/back-button/events.md';
@@ -20,16 +21,14 @@ import Slots from '@site/static/auto-generated/back-button/slots.md';
2021
</head>
2122

2223
import EncapsulationPill from '@components/page/api/EncapsulationPill';
23-
import APITOCInline from '@components/page/api/APITOCInline';
2424

2525
<EncapsulationPill type="shadow" />
2626

2727
<h2 className="table-of-contents__title">コンテンツ</h2>
2828

29-
<APITOCInline
29+
<TOCInline
3030
toc={toc}
3131
maxHeadingLevel={2}
32-
autogenerated={[Props, Events, Methods, Parts, CustomProps, Slots]}
3332
/>
3433

3534

docs/api/backdrop.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ demoSourceUrl: "https://github.com/ionic-team/ionic-docs/tree/main/static/demos/
66
---
77
import Tabs from '@theme/Tabs';
88
import TabItem from '@theme/TabItem';
9+
import TOCInline from '@theme/TOCInline';
910

1011
import Props from '@site/static/auto-generated/backdrop/props.md';
1112
import Events from '@site/static/auto-generated/backdrop/events.md';
@@ -17,16 +18,14 @@ import Slots from '@site/static/auto-generated/backdrop/slots.md';
1718

1819

1920
import EncapsulationPill from '@components/page/api/EncapsulationPill';
20-
import APITOCInline from '@components/page/api/APITOCInline';
2121

2222
<EncapsulationPill type="shadow" />
2323

2424
<h2 className="table-of-contents__title">コンテンツ</h2>
2525

26-
<APITOCInline
26+
<TOCInline
2727
toc={toc}
2828
maxHeadingLevel={2}
29-
autogenerated={[Props, Events, Methods, Parts, CustomProps, Slots]}
3029
/>
3130

3231

docs/api/badge.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ demoSourceUrl: "https://github.com/ionic-team/ionic-docs/tree/main/static/demos/
66
---
77
import Tabs from '@theme/Tabs';
88
import TabItem from '@theme/TabItem';
9+
import TOCInline from '@theme/TOCInline';
910

1011
import Props from '@site/static/auto-generated/badge/props.md';
1112
import Events from '@site/static/auto-generated/badge/events.md';
@@ -20,16 +21,14 @@ import Slots from '@site/static/auto-generated/badge/slots.md';
2021
</head>
2122

2223
import EncapsulationPill from '@components/page/api/EncapsulationPill';
23-
import APITOCInline from '@components/page/api/APITOCInline';
2424

2525
<EncapsulationPill type="shadow" />
2626

2727
<h2 className="table-of-contents__title">コンテンツ</h2>
2828

29-
<APITOCInline
29+
<TOCInline
3030
toc={toc}
3131
maxHeadingLevel={2}
32-
autogenerated={[Props, Events, Methods, Parts, CustomProps, Slots]}
3332
/>
3433

3534

docs/api/breadcrumb.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ hide_table_of_contents: true
44
---
55
import Tabs from '@theme/Tabs';
66
import TabItem from '@theme/TabItem';
7+
import TOCInline from '@theme/TOCInline';
78

89
import Props from '@site/static/auto-generated/breadcrumb/props.md';
910
import Events from '@site/static/auto-generated/breadcrumb/events.md';
@@ -15,16 +16,14 @@ import Slots from '@site/static/auto-generated/breadcrumb/slots.md';
1516

1617

1718
import EncapsulationPill from '@components/page/api/EncapsulationPill';
18-
import APITOCInline from '@components/page/api/APITOCInline';
1919

2020
<EncapsulationPill type="shadow" />
2121

2222
<h2 className="table-of-contents__title">コンテンツ</h2>
2323

24-
<APITOCInline
24+
<TOCInline
2525
toc={toc}
2626
maxHeadingLevel={2}
27-
autogenerated={[Props, Events, Methods, Parts, CustomProps, Slots]}
2827
/>
2928

3029

0 commit comments

Comments
 (0)