Skip to content

Commit 6904b10

Browse files
committed
docs(update): update playground and docs
1 parent 35ec551 commit 6904b10

File tree

7 files changed

+27
-4
lines changed

7 files changed

+27
-4
lines changed

docs/src/components/content-container.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ Can be used to overwrite the level.
8383
</ContentContainer>
8484
</ContentContainer>
8585
</template>
86+
87+
<script setup>
88+
import ContentContainer from 'vue-semantic-structure/ContentContainer.vue';
89+
import ContentHeadline from 'vue-semantic-structure/ContentHeadline.vue';
90+
</script>
8691
```
8792

8893
```html

docs/src/components/content-headline.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ Tag for the element.
6060
</ContentContainer>
6161
</ContentContainer>
6262
</template>
63+
64+
<script setup>
65+
import ContentContainer from 'vue-semantic-structure/ContentContainer.vue';
66+
import ContentHeadline from 'vue-semantic-structure/ContentHeadline.vue';
67+
</script>
6368
```
6469

6570
```html

docs/src/introduction.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ If `ContentContainer` is level 2, `ContentHeadline` level 2 is rendered as `h2`.
5858
<footer>Footer</footer>
5959
</div>
6060
</template>
61+
62+
<script setup>
63+
import ContentContainer from 'vue-semantic-structure/ContentContainer.vue';
64+
import ContentHeadline from 'vue-semantic-structure/ContentHeadline.vue';
65+
</script>
6166
```
6267

6368
```html

docs/src/usage.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ The main structure is in the `<main>` tag, which contains the main components.
2020
<ContentContainer class="gallery">…</ContentContainer>
2121
</ContentContainer>
2222
</template>
23+
24+
<script setup>
25+
import ContentContainer from 'vue-semantic-structure/ContentContainer.vue';
26+
</script>
2327
```
2428

2529
```html [HTML]
@@ -52,7 +56,7 @@ It is recommended to create a separate component that extends the `ContentContai
5256
</template>
5357
5458
<script setup>
55-
import { ContentContainer } from 'vue-semantic-structure';
59+
import ContentContainer from 'vue-semantic-structure/ContentContainer.vue';
5660
</script>
5761
```
5862

@@ -70,6 +74,10 @@ In comparison to the basic application, the entire content is enclosed in anothe
7074
</CustomContentContainer>
7175
</CustomContentContainer>
7276
</template>
77+
78+
<script setup>
79+
import ContentContainer from 'vue-semantic-structure/ContentContainer.vue';
80+
</script>
7381
```
7482

7583
```html [HTML]

playground/src/components/DebugArticleContentContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<script setup>
1717
import { inject, provide } from 'vue';
18-
import { ContentContainer } from 'vue-semantic-structure';
18+
import ContentContainer from 'vue-semantic-structure/ContentContainer.vue';
1919
2020
const props = defineProps({
2121
debug: {

playground/src/components/DebugContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<script setup>
1414
import { inject, provide } from 'vue';
15-
import { ContentContainer } from 'vue-semantic-structure';
15+
import ContentContainer from 'vue-semantic-structure/ContentContainer.vue';
1616
1717
const props = defineProps({
1818
debug: {

playground/src/components/DebugHeadline.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<script setup>
99
import { inject } from 'vue';
10-
import { ContentHeadline } from 'vue-semantic-structure';
10+
import ContentHeadline from 'vue-semantic-structure/ContentHeadline.vue';
1111
1212
const debug = inject('debugHeadings', false);
1313
</script>

0 commit comments

Comments
 (0)