diff --git a/.gitignore b/.gitignore index d1ae65b0a..988aa4899 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ coverage # VSCode .vscode +.history # Intellij idea *.iml diff --git a/CHANGELOG.md b/CHANGELOG.md index df2a4655b..4f7f2dcfe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,68 @@ # Changelog +## v2.3.0 + +[compare changes](https://github.com/nuxt/content/compare/v2.2.2...v2.3.0) + + +### 🚀 Enhancements + + - **module:** Introduce `api.baseURL` and deprecate `base` ([#1695](https://github.com/nuxt/content/pull/1695)) + - Unique api calls per build ([#1705](https://github.com/nuxt/content/pull/1705)) + - **shiki:** Expose highlighting utils ([#1727](https://github.com/nuxt/content/pull/1727)) + - **document-driven:** Introduce `start` and `finish` hooks ([#1744](https://github.com/nuxt/content/pull/1744)) + - **query:** Fully cacheable api ([#1752](https://github.com/nuxt/content/pull/1752)) + +### 🩹 Fixes + + - **markdown:** Resolve custom shiki languages ([#1692](https://github.com/nuxt/content/pull/1692)) + - **clientDB:** Disable clientDB if token is set and has falsy value ([#1700](https://github.com/nuxt/content/pull/1700)) + - **shiki:** Issue with merging multiple themes ([#1703](https://github.com/nuxt/content/pull/1703)) + - **query:** Invalid response on missing content ([#1706](https://github.com/nuxt/content/pull/1706)) + - **test:** Typo ([#1707](https://github.com/nuxt/content/pull/1707)) + - **markdown:** Remove double and trailing dashes from heading ids ([#1711](https://github.com/nuxt/content/pull/1711)) + - **ws:** Prevent port conflict on running multiple instances ([#1721](https://github.com/nuxt/content/pull/1721)) + - **markdown:** Remove extra dash from heading id ([4c376587](https://github.com/nuxt/content/commit/4c376587)) + - Typo ([a7912af1](https://github.com/nuxt/content/commit/a7912af1)) + - **build:** Invalid cache route handler ([ae138a87](https://github.com/nuxt/content/commit/ae138a87)) + - **ContentRendererMarkdown:** Recreate vNodes in render function ([#1734](https://github.com/nuxt/content/pull/1734)) + - **query:** Fallback to default locale if query has no filter on `_locale` ([#1748](https://github.com/nuxt/content/pull/1748)) + - **module:** Put query parameters removal under an experimental flag ([#1757](https://github.com/nuxt/content/pull/1757)) + - Add missing imports ([5285db01](https://github.com/nuxt/content/commit/5285db01)) + +### 💅 Refactors + + - **ContentRenderer:** Simplify conditions ([#1715](https://github.com/nuxt/content/pull/1715)) + - **Shiki:** Prepare Shiki highlighter for external usage ([#1720](https://github.com/nuxt/content/pull/1720)) + +### 📖 Documentation + + - Update deps ([#1684](https://github.com/nuxt/content/pull/1684)) + - Update studio module ([fe55ff28](https://github.com/nuxt/content/commit/fe55ff28)) + - Revert studio module to 0.2.2 ([e26ffd01](https://github.com/nuxt/content/commit/e26ffd01)) + - Update studio module ([#1686](https://github.com/nuxt/content/pull/1686)) + - Fix typo ([#1693](https://github.com/nuxt/content/pull/1693)) + - Upgrade studio module ([ff2edddc](https://github.com/nuxt/content/commit/ff2edddc)) + - Update code inline ([#1730](https://github.com/nuxt/content/pull/1730)) + - Update module options ([#1755](https://github.com/nuxt/content/pull/1755)) + +### 🏡 Chore + + - Upgrade deps ([#1691](https://github.com/nuxt/content/pull/1691)) + - **logging:** Cleanup logging ([#1733](https://github.com/nuxt/content/pull/1733)) + +### ❤️ Contributors + +- Ahad Birang +- Farnabaz +- Yaël Guilloux +- Sébastien Chopin +- Levi (Nguyễn Lương Huy) +- Nobkd +- Onur Dumangöz +- Baptiste Leproux + ## v2.2.2 [compare changes](https://github.com/nuxt/content/compare/v2.2.1...v2.2.2) diff --git a/docs/app.config.ts b/docs/app.config.ts index 2858f3908..c91f99869 100644 --- a/docs/app.config.ts +++ b/docs/app.config.ts @@ -1,11 +1,15 @@ export default defineAppConfig({ + github: { + owner: 'nuxt', + repo: 'content', + branch: 'main' + }, 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', - debug: false, socials: { twitter: '@nuxt_js', github: 'nuxt/content' @@ -23,26 +27,20 @@ export default defineAppConfig({ level: 1 }, header: { - title: false, - logo: true, + logo: 'Logo', exclude: ['/v1', '/content-v1', '/fr', '/ja', '/ru'] }, footer: { - credits: { - icon: 'IconDocus', - text: 'Powered by Docus', - href: 'https://docus.com' - }, - icons: [ + iconLinks: [ { label: 'NuxtJS', href: 'https://nuxtjs.org', - component: 'IconNuxt' + icon: 'IconNuxt' }, { label: 'Vue Telescope', href: 'https://vuetelescope.com', - component: 'IconVueTelescope' + icon: 'IconVueTelescope' } ] } diff --git a/docs/components/content/ChangeLog.vue b/docs/components/content/ChangeLog.vue new file mode 100644 index 000000000..3cb114658 --- /dev/null +++ b/docs/components/content/ChangeLog.vue @@ -0,0 +1,64 @@ + + + diff --git a/docs/components/content/Ellipsis.vue b/docs/components/content/Ellipsis.vue deleted file mode 100644 index 203e467b0..000000000 --- a/docs/components/content/Ellipsis.vue +++ /dev/null @@ -1,14 +0,0 @@ - - - diff --git a/docs/components/content/ExampleCard.vue b/docs/components/content/Example/ExampleCard.vue similarity index 100% rename from docs/components/content/ExampleCard.vue rename to docs/components/content/Example/ExampleCard.vue diff --git a/docs/components/content/ExampleHero.vue b/docs/components/content/Example/ExampleHero.vue similarity index 100% rename from docs/components/content/ExampleHero.vue rename to docs/components/content/Example/ExampleHero.vue diff --git a/docs/components/content/ExampleIconCard.vue b/docs/components/content/Example/ExampleIconCard.vue similarity index 100% rename from docs/components/content/ExampleIconCard.vue rename to docs/components/content/Example/ExampleIconCard.vue diff --git a/docs/components/content/ExampleMultiselect.vue b/docs/components/content/Example/ExampleMultiselect.vue similarity index 100% rename from docs/components/content/ExampleMultiselect.vue rename to docs/components/content/Example/ExampleMultiselect.vue diff --git a/docs/components/content/ExampleTheTitle.vue b/docs/components/content/Example/ExampleTheTitle.vue similarity index 100% rename from docs/components/content/ExampleTheTitle.vue rename to docs/components/content/Example/ExampleTheTitle.vue diff --git a/docs/components/content/HeroAnnouncement.vue b/docs/components/content/HeroAnnouncement.vue index 8a48dad4b..97180d18f 100644 --- a/docs/components/content/HeroAnnouncement.vue +++ b/docs/components/content/HeroAnnouncement.vue @@ -12,8 +12,49 @@ defineProps({ + + diff --git a/docs/components/content/IconCopy.vue b/docs/components/content/IconCopy.vue deleted file mode 100644 index faf6efea9..000000000 --- a/docs/components/content/IconCopy.vue +++ /dev/null @@ -1,17 +0,0 @@ - diff --git a/docs/components/content/IconHeart.vue b/docs/components/content/IconHeart.vue deleted file mode 100644 index 849f002ed..000000000 --- a/docs/components/content/IconHeart.vue +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/docs/components/content/IconSearch.vue b/docs/components/content/IconSearch.vue deleted file mode 100644 index e7fc50057..000000000 --- a/docs/components/content/IconSearch.vue +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/docs/components/content/IconZap.vue b/docs/components/content/IconZap.vue deleted file mode 100644 index 6b7ac0a4a..000000000 --- a/docs/components/content/IconZap.vue +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/docs/components/content/Logo.vue b/docs/components/content/Logo.vue index 81bb82f88..850690847 100644 --- a/docs/components/content/Logo.vue +++ b/docs/components/content/Logo.vue @@ -1,5 +1,5 @@ - diff --git a/docs/components/content/Playground.vue b/docs/components/content/Playground.vue index 2c1744854..414c51c86 100644 --- a/docs/components/content/Playground.vue +++ b/docs/components/content/Playground.vue @@ -1,7 +1,6 @@ - diff --git a/docs/components/content/ReadMore.vue b/docs/components/content/ReadMore.vue index f17f9085e..a93616a80 100644 --- a/docs/components/content/ReadMore.vue +++ b/docs/components/content/ReadMore.vue @@ -1,6 +1,6 @@