Skip to content

Commit 3c9fc3f

Browse files
authored
v2.3
2 parents b5f1141 + 22a3acc commit 3c9fc3f

File tree

123 files changed

+4061
-10133
lines changed

Some content is hidden

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

123 files changed

+4061
-10133
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ coverage
3737

3838
# VSCode
3939
.vscode
40+
.history
4041

4142
# Intellij idea
4243
*.iml

CHANGELOG.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,68 @@
11
# Changelog
22

33

4+
## v2.3.0
5+
6+
[compare changes](https://github.com/nuxt/content/compare/v2.2.2...v2.3.0)
7+
8+
9+
### 🚀 Enhancements
10+
11+
- **module:** Introduce `api.baseURL` and deprecate `base` ([#1695](https://github.com/nuxt/content/pull/1695))
12+
- Unique api calls per build ([#1705](https://github.com/nuxt/content/pull/1705))
13+
- **shiki:** Expose highlighting utils ([#1727](https://github.com/nuxt/content/pull/1727))
14+
- **document-driven:** Introduce `start` and `finish` hooks ([#1744](https://github.com/nuxt/content/pull/1744))
15+
- **query:** Fully cacheable api ([#1752](https://github.com/nuxt/content/pull/1752))
16+
17+
### 🩹 Fixes
18+
19+
- **markdown:** Resolve custom shiki languages ([#1692](https://github.com/nuxt/content/pull/1692))
20+
- **clientDB:** Disable clientDB if token is set and has falsy value ([#1700](https://github.com/nuxt/content/pull/1700))
21+
- **shiki:** Issue with merging multiple themes ([#1703](https://github.com/nuxt/content/pull/1703))
22+
- **query:** Invalid response on missing content ([#1706](https://github.com/nuxt/content/pull/1706))
23+
- **test:** Typo ([#1707](https://github.com/nuxt/content/pull/1707))
24+
- **markdown:** Remove double and trailing dashes from heading ids ([#1711](https://github.com/nuxt/content/pull/1711))
25+
- **ws:** Prevent port conflict on running multiple instances ([#1721](https://github.com/nuxt/content/pull/1721))
26+
- **markdown:** Remove extra dash from heading id ([4c376587](https://github.com/nuxt/content/commit/4c376587))
27+
- Typo ([a7912af1](https://github.com/nuxt/content/commit/a7912af1))
28+
- **build:** Invalid cache route handler ([ae138a87](https://github.com/nuxt/content/commit/ae138a87))
29+
- **ContentRendererMarkdown:** Recreate vNodes in render function ([#1734](https://github.com/nuxt/content/pull/1734))
30+
- **query:** Fallback to default locale if query has no filter on `_locale` ([#1748](https://github.com/nuxt/content/pull/1748))
31+
- **module:** Put query parameters removal under an experimental flag ([#1757](https://github.com/nuxt/content/pull/1757))
32+
- Add missing imports ([5285db01](https://github.com/nuxt/content/commit/5285db01))
33+
34+
### 💅 Refactors
35+
36+
- **ContentRenderer:** Simplify conditions ([#1715](https://github.com/nuxt/content/pull/1715))
37+
- **Shiki:** Prepare Shiki highlighter for external usage ([#1720](https://github.com/nuxt/content/pull/1720))
38+
39+
### 📖 Documentation
40+
41+
- Update deps ([#1684](https://github.com/nuxt/content/pull/1684))
42+
- Update studio module ([fe55ff28](https://github.com/nuxt/content/commit/fe55ff28))
43+
- Revert studio module to 0.2.2 ([e26ffd01](https://github.com/nuxt/content/commit/e26ffd01))
44+
- Update studio module ([#1686](https://github.com/nuxt/content/pull/1686))
45+
- Fix typo ([#1693](https://github.com/nuxt/content/pull/1693))
46+
- Upgrade studio module ([ff2edddc](https://github.com/nuxt/content/commit/ff2edddc))
47+
- Update code inline ([#1730](https://github.com/nuxt/content/pull/1730))
48+
- Update module options ([#1755](https://github.com/nuxt/content/pull/1755))
49+
50+
### 🏡 Chore
51+
52+
- Upgrade deps ([#1691](https://github.com/nuxt/content/pull/1691))
53+
- **logging:** Cleanup logging ([#1733](https://github.com/nuxt/content/pull/1733))
54+
55+
### ❤️ Contributors
56+
57+
- Ahad Birang <[email protected]>
58+
- Farnabaz <[email protected]>
59+
- Yaël Guilloux <[email protected]>
60+
- Sébastien Chopin <[email protected]>
61+
- Levi (Nguyễn Lương Huy) <[email protected]>
62+
- Nobkd
63+
- Onur Dumangöz
64+
- Baptiste Leproux <[email protected]>
65+
466
## v2.2.2
567

668
[compare changes](https://github.com/nuxt/content/compare/v2.2.1...v2.2.2)

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: '{fontSize.2xl}',
50+
fontWeight: '{fontWeight.bold}',
51+
color: '{color.gray.900}',
52+
marginTop: '{space.8}',
53+
'@dark': {
54+
color: '{color.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.

0 commit comments

Comments
 (0)