Skip to content

Commit 163ee7c

Browse files
authored
Merge pull request #6 from basics/feature/init
update
2 parents 3b2afb5 + ccca19c commit 163ee7c

File tree

4 files changed

+51
-3
lines changed

4 files changed

+51
-3
lines changed

docs/.vitepress/navigation.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ export default {
22
nav: [
33
{ text: 'Home', link: '/' },
44
{ text: 'Introduction', link: '/introduction' },
5-
{ text: 'Live Example', link: '/example/' }
5+
{ text: 'Live Example', link: '/playground/' }
66
],
77

88
sidebar: [
99
{
1010
text: 'Guide',
11-
items: [{ text: 'Introduction', link: '/introduction' }]
11+
items: [
12+
{ text: 'Introduction', link: '/introduction' },
13+
{ text: 'Setup', link: '/setup' }
14+
]
1215
},
1316
{
1417
text: 'Composables',

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ hero:
1313
link: /introduction
1414
- theme: alt
1515
text: Live Example
16-
link: /example/
16+
link: /playground/
1717

1818
features:
1919
- title: Heading

docs/src/setup.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: Setup
3+
---
4+
5+
# {{$frontmatter.title}}
6+
7+
## Installation
8+
9+
Install `vue-semantic-structure` as a dependency to your project:
10+
11+
::: code-group
12+
13+
```bash [Yarn]
14+
yarn add vue-semantic-structure
15+
```
16+
17+
```bash [NPM]
18+
npm install vue-semantic-structure
19+
```
20+
21+
```bash [PNPM]
22+
pnpm add vue-semantic-structure
23+
```
24+
25+
:::
26+
27+
## Usage
28+
29+
You can find uses in the following sections:
30+
31+
**Components**
32+
33+
- [ContentContainer](/components/content-container)
34+
- [ContentHeadline](/components/content-headline)
35+
36+
**Composables:**
37+
38+
- [useContentContainer](/composables/use-content-container)
39+
- [useContentHeadline](/composables/use-content-headline)

playground/vite.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
88

99
// https://vitejs.dev/config/
1010
export default defineConfig({
11+
base: getBaseUrl(),
12+
1113
plugins: [vue()],
1214

1315
server: {
@@ -21,3 +23,7 @@ export default defineConfig({
2123
}
2224
}
2325
});
26+
27+
function getBaseUrl() {
28+
return process.env.npm_config_base_url || process.env.BASE_URL || '/';
29+
}

0 commit comments

Comments
 (0)