Skip to content

Commit 99bb1f1

Browse files
authored
feat(studio): upgrade deps and match studio parsing rules (#90)
* chore(deps): upgrade content and studio module * chore(deps): upgrade * fix(content): match studio editor parsing * fix(content): non flatten deps * rule marker update * add back spaces
1 parent fcf2827 commit 99bb1f1

File tree

4 files changed

+957
-2627
lines changed

4 files changed

+957
-2627
lines changed

Diff for: .demo/content/1.index.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
navigation.title: 'Home'
2+
navigation:
3+
title: Home
34
---
45

56
# Content Wind
67

7-
A lightweight Nuxt theme to build a Markdown driven website, based on [Nuxt Content](https://content.nuxt.com), [TailwindCSS](https://tailwindcss.com) and [Iconify](https://iconify.design) :sparkles:
8-
8+
A lightweight Nuxt theme to build a Markdown driven website, based on [Nuxt Content](https://content.nuxt.com), [TailwindCSS](https://tailwindcss.com) and [Iconify](https://iconify.design)
99

1010
## Features
1111

@@ -23,7 +23,12 @@ A lightweight Nuxt theme to build a Markdown driven website, based on [Nuxt Cont
2323

2424
## Setup
2525

26-
::button-link{icon="simple-icons:stackblitz" href="https://stackblitz.com/github/Atinux/content-wind/tree/main/.demo?file=content%2F1.index.md" external}
26+
::button-link
27+
---
28+
external: true
29+
href: https://stackblitz.com/github/Atinux/content-wind/tree/main/.demo?file=content%2F1.index.md
30+
icon: simple-icons:stackblitz
31+
---
2732
Play online on Stackblitz
2833
::
2934

@@ -33,7 +38,7 @@ Open a terminal and run the following command:
3338
npx nuxi init -t themes/content-wind my-website
3439
```
3540

36-
Follow the instructions in the terminal and you are ready to go :rocket:
41+
Follow the instructions in the terminal and you are ready to go 🚀
3742

3843
## Usage
3944

@@ -133,9 +138,9 @@ Learn more on [nuxt-icon](https://github.com/nuxt-modules/icon) documentation.
133138
It supports code highlighting with Shiki and as well as different [VS Code themes](https://github.com/shikijs/shiki/blob/main/docs/themes.md#all-themes).
134139

135140
::markdown-block
136-
\```ts
141+
\`\`\`ts
137142
export default () => 'Hello Content Wind'
138-
\```
143+
\`\`\`
139144
::
140145

141146
Will result in:
@@ -168,12 +173,10 @@ See the `<MarkdownBlock>` component in [`components/content/MarkdownBlock.vue`](
168173

169174
By leveraging the [`<ContentSlot>`](https://content.nuxt.com/components/content-slot) component from Nuxt Content, you can use both slots and props in Markdown thanks to the [MDC syntax](https://content.nuxt.com/usage/markdown).
170175

171-
172176
## Deployment
173177

174178
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FAtinux%2Fcontent-wind-template) [![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/Atinux/content-wind-template)
175179

176-
177180
### Static Hosting
178181

179182
Pre-render the website to be deployed on any static hosting:

Diff for: .demo/content/2.about.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
navigation.title: 'About'
3-
layout: 'full-width'
4-
# Custom og:image
5-
head.description: 'This is a custom description for Content Wind about page.'
6-
head.image: 'https://fastly.picsum.photos/id/866/536/354.jpg?hmac=tGofDTV7tl2rprappPzKFiZ9vDh5MKj39oa2D--gqhA'
2+
navigation:
3+
title: About
4+
layout: full-width
5+
head:
6+
description: This is a custom description for Content Wind about page.
7+
image: https://fastly.picsum.photos/id/866/536/354.jpg?hmac=tGofDTV7tl2rprappPzKFiZ9vDh5MKj39oa2D--gqhA
78
---
89

910
# About
1011

11-
This is the about page, with a custom description and image for SEO :sparkles:
12+
This is the about page, with a custom description and image for SEO
1213

1314
![Content Wind](https://fastly.picsum.photos/id/866/536/354.jpg?hmac=tGofDTV7tl2rprappPzKFiZ9vDh5MKj39oa2D--gqhA)

Diff for: package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@
2424
"tailwind.config.ts"
2525
],
2626
"dependencies": {
27-
"@nuxt/content": "^2.10.0",
28-
"@nuxthq/studio": "^1.0.6",
27+
"@nuxt/content": "^2.11.0",
28+
"@nuxthq/studio": "^1.0.10",
2929
"@nuxtjs/color-mode": "^3.3.2",
30-
"@nuxtjs/tailwindcss": "^6.10.1",
30+
"@nuxtjs/tailwindcss": "^6.11.0",
3131
"@tailwindcss/typography": "^0.5.10",
32-
"nuxt-icon": "^0.6.7"
32+
"nuxt-icon": "^0.6.8"
3333
},
3434
"devDependencies": {
3535
"@nuxt/eslint-config": "^0.2.0",
36-
"@types/node": "^20.10.5",
36+
"@types/node": "^20.11.5",
3737
"eslint": "^8.56.0",
38-
"nuxt": "^3.8.2",
38+
"nuxt": "^3.9.3",
3939
"release-it": "^17.0.1",
4040
"typescript": "^5.3.3"
4141
},

0 commit comments

Comments
 (0)