Skip to content

Commit

Permalink
docs: improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Jan 27, 2023
1 parent 4d15913 commit f199193
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 10 deletions.
4 changes: 3 additions & 1 deletion docs/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export default defineAppConfig({
docus: {
title: 'Nuxt Content',
description: 'Write pages in markdown, use Vue components and enjoy the power of Nuxt with a blazing fast developer experience.',
layout: 'docs',
image: 'https://content.nuxtjs.org/preview.png',
url: 'https://content.nuxtjs.org',
socials: {
Expand All @@ -30,6 +29,9 @@ export default defineAppConfig({
aside: {
level: 1
},
layout: {
fluid: true
},
header: {
logo: 'Logo',
exclude: ['/v1', '/content-v1', '/fr', '/ja', '/ru']
Expand Down
3 changes: 1 addition & 2 deletions docs/content/2.get-started.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
icon: heroicons-outline:lightning-bolt
layout: page
padded: true
layout: docs-page
---

# Get Started
Expand Down
3 changes: 1 addition & 2 deletions docs/content/7.changelog.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
aside: false
toc: false
layout: page
padded: true
layout: docs-page
icon: heroicons-outline:newspaper
description: Discover the latest Nuxt Content updates.
---
Expand Down
2 changes: 1 addition & 1 deletion docs/content/9.content-v1.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: V1 Documentation
layout: page
layout: docs-page
fluid: true
---

Expand Down
15 changes: 15 additions & 0 deletions docs/layouts/docs-page.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<div class="docs-page">
<Container>
<slot />
</Container>
</div>
</template>

<style scoped lang="ts">
css({
'.docs-page': {
padding: '40px 0'
}
})
</style>
11 changes: 7 additions & 4 deletions docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import consola from 'consola'

const alias = {}

if (process.env.NODE_ENV === 'development') {
consola.warn('Using local @nuxt/content!')
alias['@nuxt/content'] = '../src/module.ts'
}
// if (process.env.NODE_ENV === 'development') {
// consola.warn('Using local @nuxt/content!')
// alias['@nuxt/content'] = '../src/module.ts'
// }

export default defineNuxtConfig({
alias,
Expand Down Expand Up @@ -69,6 +69,9 @@ export default defineNuxtConfig({
preference: 'dark'
},
runtimeConfig: {
content: {
host: 'https://content.nuxtjs.org'
},
public: {
algolia: {
applicationId: '',
Expand Down

0 comments on commit f199193

Please sign in to comment.