Skip to content

Commit 304094a

Browse files
authored
Merge branch 'main' into feat/build-integrity
2 parents 3b5fffc + 4803a82 commit 304094a

File tree

84 files changed

+2079
-9023
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+2079
-9023
lines changed

docs/app.config.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
export default defineAppConfig({
2+
github: {
3+
owner: 'nuxt',
4+
repo: 'content',
5+
branch: 'main'
6+
},
27
docus: {
38
title: 'Nuxt Content',
49
description: 'Write pages in markdown, use Vue components and enjoy the power of Nuxt with a blazing fast developer experience.',
510
layout: 'docs',
611
image: 'https://content.nuxtjs.org/preview.png',
712
url: 'https://content.nuxtjs.org',
8-
debug: false,
913
socials: {
1014
twitter: '@nuxt_js',
1115
github: 'nuxt/content'
@@ -23,26 +27,20 @@ export default defineAppConfig({
2327
level: 1
2428
},
2529
header: {
26-
title: false,
27-
logo: true,
30+
logo: 'Logo',
2831
exclude: ['/v1', '/content-v1', '/fr', '/ja', '/ru']
2932
},
3033
footer: {
31-
credits: {
32-
icon: 'IconDocus',
33-
text: 'Powered by Docus',
34-
href: 'https://docus.com'
35-
},
36-
icons: [
34+
iconLinks: [
3735
{
3836
label: 'NuxtJS',
3937
href: 'https://nuxtjs.org',
40-
component: 'IconNuxt'
38+
icon: 'IconNuxt'
4139
},
4240
{
4341
label: 'Vue Telescope',
4442
href: 'https://vuetelescope.com',
45-
component: 'IconVueTelescope'
43+
icon: 'IconVueTelescope'
4644
}
4745
]
4846
}

docs/components/content/ChangeLog.vue

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<template>
2+
<div>
3+
<GithubReleases v-slot="{releases}">
4+
<div v-for="release in releases" :key="release.name" class="release">
5+
<div class="release-name">
6+
<h2 class="">
7+
{{ release.name }}
8+
</h2>
9+
</div>
10+
<div class="content">
11+
<h3 class="sr-only">
12+
Description
13+
</h3>
14+
15+
<ContentRenderer :value="release">
16+
<template #empty>
17+
<p>
18+
No description provided
19+
</p>
20+
</template>
21+
</ContentRenderer>
22+
</div>
23+
</div>
24+
</GithubReleases>
25+
</div>
26+
</template>
27+
28+
<style scoped lang="ts">
29+
css({
30+
'.release': {
31+
position: 'relative',
32+
display: 'flex',
33+
overflow: 'hidden',
34+
flex: '1',
35+
padding: '{space.4} {space.8}',
36+
paddingBottom: '{space.8}',
37+
overflowY: 'auto',
38+
},
39+
'.release-name': {
40+
position: 'relative',
41+
paddingTop: '{space.4}',
42+
display: 'flex',
43+
alignItems: 'flex-start',
44+
justifyContent: 'space-between',
45+
gap: '{space.4}',
46+
paddingBottom: '{space.4}',
47+
48+
'h2': {
49+
fontSize: '{fontSizes.2xl}',
50+
fontWeight: '{fontWeights.bold}',
51+
color: '{colors.gray.900}',
52+
marginTop: '{space.8}',
53+
'@dark': {
54+
color: '{colors.gray.100}'
55+
}
56+
}
57+
},
58+
'.content': {
59+
paddingLeft: '{space.8}',
60+
paddingRight: '{space.8}',
61+
paddingBottom: '{space.24}',
62+
}
63+
})
64+
</style>

docs/components/content/Ellipsis.vue

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/components/content/HeroAnnouncement.vue

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,49 @@ defineProps({
1212
</script>
1313

1414
<template>
15-
<NuxtLink :to="to" class="hover:bg-primary-200 text-primary-900 bg-primary-100 transition dark:bg-transparent hover:dark:bg-primary-900 dark:border-primary-700 dark:text-primary-100 border border-primary-400 mb-8 px-4 py-2 rounded-md flex gap-x-1 inline-flex items-center justify-center">
16-
<Icon name="heroicons-solid:sparkles" class="h-4 w-4" />
17-
<span class="font-medium text-sm">{{ label }}</span>
15+
<NuxtLink :to="to" class="link">
16+
<Icon name="heroicons-solid:sparkles" class="icon" />
17+
<span>{{ label }}</span>
1818
</NuxtLink>
1919
</template>
20+
21+
<style scoped lang="ts">
22+
css({
23+
'.link': {
24+
color: '{colors.primary.900}',
25+
backgroundColor: '{colors.primary.100}',
26+
borderColor: '{colors.primary.400}',
27+
borderRadius: '{radii.md}',
28+
borderWidth: '{borderWidths.sm}',
29+
borderStyle: 'solid',
30+
display: 'inline-flex',
31+
padding: '{space.2} {space.4}',
32+
marginBottom: '{space.4}',
33+
alignItems: 'center',
34+
justifyContent: 'center',
35+
gap: '{space.1}',
36+
37+
'@dark': {
38+
color: '{colors.primary.100}',
39+
backgroundColor: 'transparent',
40+
borderColor: '{colors.primary.700}'
41+
},
42+
43+
'&:hover': {
44+
backgroundColor: '{colors.primary.200}',
45+
'@dark': {
46+
backgroundColor: '{colors.primary.900}'
47+
},
48+
}
49+
},
50+
'.link span': {
51+
// font-medium text-sm
52+
fontWeight: '{fontWeights.medium}',
53+
fontSize: '{fontSizes.sm}'
54+
},
55+
'.link .icon': {
56+
width: '{space.4}',
57+
height: '{space.4}'
58+
}
59+
})
60+
</style>

docs/components/content/IconCopy.vue

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)