Skip to content

Commit 8ff46c3

Browse files
committed
chore: add different page titles in doc
1 parent 55aaed9 commit 8ff46c3

File tree

6 files changed

+47
-9
lines changed

6 files changed

+47
-9
lines changed

doc/nuxt.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ module.exports = {
3737
base: process.env.BASE || '/'
3838
},
3939
head: {
40-
title: 'vuetify-jsonschema-form - documentation',
40+
title: 'vjsf - Documentation',
4141
meta: [
4242
{ charset: 'utf-8' },
4343
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
44-
{ hid: 'description', name: 'description', content: `vuetify-jsonschema-form - documentation` },
44+
{ hid: 'description', name: 'description', content: `vjsf - Documentation` },
4545
{ hid: 'robots', name: 'robots', content: 'noindex' }
4646
]
4747
}

doc/pages/0to1.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<v-container>
33
<h1 class="display-1 mb-4">
4-
0.x to 1.x
4+
{{ title }}
55
</h1>
66
<p>
77
The old demo page for v0 is still available <a href="https://koumoul-dev.github.io/vuetify-jsonschema-form/0.x/">here</a>.
@@ -45,7 +45,16 @@
4545
</template>
4646

4747
<script>
48-
export default {}
48+
export default {
49+
data: () => ({
50+
title: '0.x to 1.x'
51+
}),
52+
head() {
53+
return {
54+
title: 'vjsf - ' + this.title
55+
}
56+
}
57+
}
4958
</script>
5059

5160
<style lang="css" scoped>

doc/pages/about.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<v-container>
33
<h1 class="display-1 mb-4">
4-
About
4+
{{ title }}
55
</h1>
66

77
<p>
@@ -48,7 +48,16 @@
4848
</template>
4949

5050
<script>
51-
export default {}
51+
export default {
52+
data: () => ({
53+
title: 'About'
54+
}),
55+
head() {
56+
return {
57+
title: 'vjsf - ' + this.title
58+
}
59+
}
60+
}
5261
</script>
5362

5463
<style lang="css" scoped>

doc/pages/configuration.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<v-container>
33
<h1 class="display-1 mb-4">
4-
Configuration
4+
{{ title }}
55
</h1>
66

77
<h2 class="headline my-4">
@@ -192,6 +192,7 @@ import { defaultOptions, formats, localizedMessages, iconSets } from '../../lib/
192192
export default {
193193
data() {
194194
return {
195+
title: 'Configuration',
195196
defaultOptions,
196197
formats,
197198
localizedMessages,
@@ -234,6 +235,11 @@ export default {
234235
iconSets,
235236
iconSet: 'mdi'
236237
}
238+
},
239+
head() {
240+
return {
241+
title: 'vjsf - ' + this.title
242+
}
237243
}
238244
}
239245
</script>

doc/pages/examples/index.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ export default {
1717
location.hash = this.$route.hash
1818
scrollToHash(this.$route.hash, false)
1919
}
20+
},
21+
head() {
22+
return {
23+
title: 'vjsf - Examples'
24+
}
2025
}
2126
}
2227
</script>

doc/pages/getting-started.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<v-container>
33
<h1 class="display-1 mb-4">
4-
Getting started
4+
{{ title }}
55
</h1>
66

77
<h2 class="headline my-4">
@@ -147,7 +147,16 @@ export default {
147147
</template>
148148

149149
<script>
150-
export default {}
150+
export default {
151+
data: () => ({
152+
title: 'Getting started'
153+
}),
154+
head() {
155+
return {
156+
title: 'vjsf - ' + this.title
157+
}
158+
}
159+
}
151160
</script>
152161

153162
<style lang="css" scoped>

0 commit comments

Comments
 (0)