File tree Expand file tree Collapse file tree 4 files changed +51
-3
lines changed Expand file tree Collapse file tree 4 files changed +51
-3
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,16 @@ export default {
2
2
nav : [
3
3
{ text : 'Home' , link : '/' } ,
4
4
{ text : 'Introduction' , link : '/introduction' } ,
5
- { text : 'Live Example' , link : '/example /' }
5
+ { text : 'Live Example' , link : '/playground /' }
6
6
] ,
7
7
8
8
sidebar : [
9
9
{
10
10
text : 'Guide' ,
11
- items : [ { text : 'Introduction' , link : '/introduction' } ]
11
+ items : [
12
+ { text : 'Introduction' , link : '/introduction' } ,
13
+ { text : 'Setup' , link : '/setup' }
14
+ ]
12
15
} ,
13
16
{
14
17
text : 'Composables' ,
Original file line number Diff line number Diff line change 13
13
link : /introduction
14
14
- theme : alt
15
15
text : Live Example
16
- link : /example /
16
+ link : /playground /
17
17
18
18
features :
19
19
- title : Heading
Original file line number Diff line number Diff line change
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 )
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
8
8
9
9
// https://vitejs.dev/config/
10
10
export default defineConfig ( {
11
+ base : getBaseUrl ( ) ,
12
+
11
13
plugins : [ vue ( ) ] ,
12
14
13
15
server : {
@@ -21,3 +23,7 @@ export default defineConfig({
21
23
}
22
24
}
23
25
} ) ;
26
+
27
+ function getBaseUrl ( ) {
28
+ return process . env . npm_config_base_url || process . env . BASE_URL || '/' ;
29
+ }
You can’t perform that action at this time.
0 commit comments