Skip to content

Commit

Permalink
docs: Update content (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoRCD authored Jan 21, 2025
1 parent d742f35 commit d2ed386
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 40 deletions.
3 changes: 2 additions & 1 deletion apps/base/components/ShelveMeta.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ const { title: appTitle, link, description: appDescription, ogImage } = useAppCo
const props = withDefaults(defineProps<{
defaultOgImage?: boolean,
title?: string,
titleTemplate?: string,
description?: string,
}>(), {
defaultOgImage: true
})
useHead({
title: props.title || appTitle,
titleTemplate: `%s | ${appTitle}`,
titleTemplate: props.titleTemplate || `%s | ${appTitle}`,
link: link,
})
Expand Down
39 changes: 21 additions & 18 deletions apps/lp/content.config.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
import { defineCollection, z } from '@nuxt/content'
import { asSeoCollection } from '@nuxtjs/seo/content'

export const collections = {
content: defineCollection({
type: 'page',
source: '**/*',
schema: z.object({
navigation: z.object({
title: z.string().optional(),
}),
links: z.array(z.object({
label: z.string(),
icon: z.string(),
avatar: z.object({
src: z.string(),
alt: z.string()
}).optional(),
to: z.string(),
target: z.string().optional()
}))
content: defineCollection(
asSeoCollection({
type: 'page',
source: '**/*',
schema: z.object({
navigation: z.object({
title: z.string().optional(),
}),
links: z.array(z.object({
label: z.string(),
icon: z.string(),
avatar: z.object({
src: z.string(),
alt: z.string()
}).optional(),
to: z.string(),
target: z.string().optional()
}))
})
})
}),
)
}
8 changes: 8 additions & 0 deletions apps/lp/content/2.core-features/teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ This also the unique identifier that you can use to access the team's workspace
"project": "@nuxt/ui"
}
```

## Create a team

Use the team selector and type the team name in the search field to create a new team.

<video width="100%" autoplay loop muted>
<source src="/docs/create-team.mp4" type="video/mp4" autoplay>
</video>
24 changes: 6 additions & 18 deletions apps/lp/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export default defineNuxtConfig({

modules: [
'@nuxt/ui-pro',
'@nuxtjs/seo',
'@nuxt/content',
'nuxt-og-image',
'@nuxt/scripts',
'@nuxtjs/seo'
'@nuxt/scripts'
],

runtimeConfig: {
Expand Down Expand Up @@ -42,29 +42,17 @@ export default defineNuxtConfig({
},

nitro: {
/*prerender: {
prerender: {
crawlLinks: true,
autoSubfolderIndex: false
},*/
failOnError: false,
routes: ['/sitemap.xml']
},
},

experimental: {
viewTransition: true,
},

sitemap: {
enabled: false
},
robots: {
enabled: false
},
schemaOrg: {
enabled: false
},
linkChecker: {
enabled: false
},

image: {
provider: 'ipx'
},
Expand Down
Binary file added apps/lp/public/docs/create-team.mp4
Binary file not shown.
2 changes: 0 additions & 2 deletions apps/lp/public/robots.txt

This file was deleted.

2 changes: 1 addition & 1 deletion apps/shelve/app/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (import.meta.client) setPrefersReducedMotion(reduceMotion.value)
<template>
<Html lang="en">
<Body class="overscroll-y-none selection:bg-primary font-geist relative overflow-x-hidden bg-white text-black selection:text-inverted dark:bg-neutral-950 dark:text-white">
<ShelveMeta />
<ShelveMeta title="Application" title-template="%s | Shelve" />
<UApp :tooltip="{ delayDuration: 0 }">
<Suspense>
<NuxtLayout>
Expand Down

0 comments on commit d2ed386

Please sign in to comment.