Skip to content

Commit

Permalink
Merge branch 'next' into feature/prepare-ci-main
Browse files Browse the repository at this point in the history
  • Loading branch information
ThornWalli committed Oct 4, 2024
2 parents 3f0ebe6 + 60265ec commit beabd61
Show file tree
Hide file tree
Showing 6 changed files with 129 additions and 113 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.17.0
20.18.0
4 changes: 2 additions & 2 deletions docs/src/composables/use-content-container.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ The appropriate HTML element for the page structure is determined based on the `
</template>
<script setup>
import { useContentContainer } from 'vue-semantic-structure'
import { useContentContainer } from 'vue-semantic-structure';
const { currentTag } = useContentContainer()
const { currentTag } = useContentContainer();
</script>
```
Expand Down
4 changes: 2 additions & 2 deletions docs/src/composables/use-content-headline.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ The deeper the nesting, the smaller the heading.
</template>
<script setup>
import { useContentContainer } from 'vue-semantic-structure'
import { useContentHeadline } from 'vue-semantic-structure';
const { currentTag } = useContentHeadline()
const { currentTag } = useContentHeadline();
</script>
```
Expand Down
14 changes: 11 additions & 3 deletions docs/src/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ The `ContentHeadline` takes the level from the `ContentContainer` and sets the a

## Example

If `ContentContainer` is level 2, `ContentHeadline` level 2 is rendered as `h2`.
::: code-group

```vue
```vue [Vue]
<template>
<div>
<header>Header</header>
Expand All @@ -52,6 +52,9 @@ If `ContentContainer` is level 2, `ContentHeadline` level 2 is rendered as `h2`.
<ContentHeadline> Secondary Headline 2 (h2) </ContentHeadline>
<ContentContainer>
<ContentHeadline> Tertiary Headline 2.1 (h3) </ContentHeadline>
<ContentContainer>
<ContentHeadline> Tertiary Headline 2.1.1 (h4) </ContentHeadline>
</ContentContainer>
</ContentContainer>
</ContentContainer>
</ContentContainer>
Expand All @@ -64,7 +67,7 @@ import { ContentContainer, ContentHeadline } from 'vue-semantic-structure';
</script>
```

```html
```html [HTML]
<div>
<header>Header</header>
<main>
Expand All @@ -84,9 +87,14 @@ import { ContentContainer, ContentHeadline } from 'vue-semantic-structure';
<h2> Secondary Headline 2 (h2) </h2>
<section>
<h3> Tertiary Headline 2.1 (h3) </h3>
<article>
<h4> Tertiary Headline 2.1.1 (h4) </h4>
</article>
</section>
</article>
</main>
<footer>Footer</footer>
</div>
```

:::
Loading

0 comments on commit beabd61

Please sign in to comment.