Skip to content

Commit f199193

Browse files
committed
docs: improvements
1 parent 4d15913 commit f199193

File tree

6 files changed

+28
-10
lines changed

6 files changed

+28
-10
lines changed

docs/app.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export default defineAppConfig({
77
docus: {
88
title: 'Nuxt Content',
99
description: 'Write pages in markdown, use Vue components and enjoy the power of Nuxt with a blazing fast developer experience.',
10-
layout: 'docs',
1110
image: 'https://content.nuxtjs.org/preview.png',
1211
url: 'https://content.nuxtjs.org',
1312
socials: {
@@ -30,6 +29,9 @@ export default defineAppConfig({
3029
aside: {
3130
level: 1
3231
},
32+
layout: {
33+
fluid: true
34+
},
3335
header: {
3436
logo: 'Logo',
3537
exclude: ['/v1', '/content-v1', '/fr', '/ja', '/ru']

docs/content/2.get-started.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
icon: heroicons-outline:lightning-bolt
3-
layout: page
4-
padded: true
3+
layout: docs-page
54
---
65

76
# Get Started

docs/content/7.changelog.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
aside: false
33
toc: false
4-
layout: page
5-
padded: true
4+
layout: docs-page
65
icon: heroicons-outline:newspaper
76
description: Discover the latest Nuxt Content updates.
87
---

docs/content/9.content-v1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: V1 Documentation
3-
layout: page
3+
layout: docs-page
44
fluid: true
55
---
66

docs/layouts/docs-page.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<div class="docs-page">
3+
<Container>
4+
<slot />
5+
</Container>
6+
</div>
7+
</template>
8+
9+
<style scoped lang="ts">
10+
css({
11+
'.docs-page': {
12+
padding: '40px 0'
13+
}
14+
})
15+
</style>

docs/nuxt.config.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import consola from 'consola'
33

44
const alias = {}
55

6-
if (process.env.NODE_ENV === 'development') {
7-
consola.warn('Using local @nuxt/content!')
8-
alias['@nuxt/content'] = '../src/module.ts'
9-
}
6+
// if (process.env.NODE_ENV === 'development') {
7+
// consola.warn('Using local @nuxt/content!')
8+
// alias['@nuxt/content'] = '../src/module.ts'
9+
// }
1010

1111
export default defineNuxtConfig({
1212
alias,
@@ -69,6 +69,9 @@ export default defineNuxtConfig({
6969
preference: 'dark'
7070
},
7171
runtimeConfig: {
72+
content: {
73+
host: 'https://content.nuxtjs.org'
74+
},
7275
public: {
7376
algolia: {
7477
applicationId: '',

0 commit comments

Comments
 (0)