diff --git a/docs/content/1.get-started/1.installation.md b/docs/content/1.get-started/1.installation.md
index b6e1dfef0..e8ac76f0a 100644
--- a/docs/content/1.get-started/1.installation.md
+++ b/docs/content/1.get-started/1.installation.md
@@ -15,9 +15,9 @@ Docus is a pre-configured [Nuxt](https://nuxtjs.org) application, with [Windi CS
Start your documentation in a new GitHub repository by using our [GitHub template](https://github.com/nuxtlabs/docus-starter):
-:::button-link{size="medium" blank href="https://github.com/nuxtlabs/docus-starter/generate"}
+::button-link{size="medium" blank href="https://github.com/nuxtlabs/docus-starter/generate"}
Create a repo with the Docus starter
-:::
+::
### Download locally
@@ -33,23 +33,23 @@ This command will create a new folder named `docs/` and download the Docus start
Vercel lets you set up the starter on your favorite Git provider (GitHub, GitLab or Bitbucket) - and deploy for free.
-:::button-link{blank href="https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fnuxtlabs%2Fdocus-starter"}
+::button-link{blank href="https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fnuxtlabs%2Fdocus-starter"}
Create and deploy using Vercel
-:::
+::
**See it in action**:
-:::video-player{yml loop playsinline controls}
-poster: https://res.cloudinary.com/nuxt/video/upload/v1612886404/docus/docus-vercel_wwaryz.jpg
+::video-player{loop playsinline controls}
sources:
-
- src: https://res.cloudinary.com/nuxt/video/upload/q_auto/v1612886404/docus/docus-vercel_wwaryz.webm
type: video/webm
- src: https://res.cloudinary.com/nuxt/video/upload/q_auto/v1612886404/docus/docus-vercel_wwaryz.mp4
type: video/mp4
- src: https//res.cloudinary.com/nuxt/video/upload/q_auto/v1612886404/docus/docus-vercel_wwaryz.ogv
type: video/ogg
- :::
+poster: https://res.cloudinary.com/nuxt/video/upload/v1612886404/docus/docus-vercel_wwaryz.jpg
+---
+::
## Directory Structure
diff --git a/docs/content/2.usage/1.content.md b/docs/content/2.usage/1.content.md
index f9a72d6de..767e81805 100644
--- a/docs/content/2.usage/1.content.md
+++ b/docs/content/2.usage/1.content.md
@@ -19,9 +19,11 @@ category: 'Getting started'
Introducing my awesome Nuxt module!
```
-:::alert{type="info"}
+::alert
+type: info
+---
Checkout Nuxt Content documentation on [writing markdown content](https://content.nuxtjs.org/writing#markdown).
-:::
+::
## Front-matter
@@ -115,9 +117,9 @@ content/
setting.json
```
-:::alert{type="info"}
+::alert{type="info"}
As explained in the [Nuxt config](/get-started/configuration#nuxt) section, we use `defu.arrayFn` to merge your config. You can override the `i18n.locales` array by using a function, or you can pass an array to concat with the default one (which only includes the `en` locale).
-:::
+::
## Routing
@@ -127,7 +129,7 @@ Each markdown page in the `content/` directory will become a page and will be li
**Example**
-:::code-group
+::code-group
``` [Directory structure]
content/
@@ -141,6 +143,6 @@ content/
/setup
```
-:::
+::
> You can take a look at our [docs content folder](https://github.com/nuxt/content/tree/dev/docs/content/en) to see an example
diff --git a/docs/content/2.usage/2.components.md b/docs/content/2.usage/2.components.md
index cd2feb1f7..82a6687d5 100644
--- a/docs/content/2.usage/2.components.md
+++ b/docs/content/2.usage/2.components.md
@@ -4,125 +4,123 @@ You can create your own Vue components in the `components/` folder. Check out [t
### `alert`
-:::::code-group
+::code-group
-::::code-block{label="Preview" preview}
-:::alert{type="info" style="margin-top: 0;"}
-Check out an **info** alert with `code` and a [link](/).
-:::
+ ::code-block{label="Preview" preview}
+ ::alert{type="info" style="margin-top: 0;"}
+ Check out an **info** alert with `code` and a [link](/).
+ ::
-:::alert{type="success"}
-Check out a **success** alert with `code` and a [link](/).
-:::
+ ::alert{type="success"}
+ Check out a **success** alert with `code` and a [link](/).
+ ::
-:::alert{type="warning"}
-Check out a **warning** alert with `code` and a [link](/).
-:::
+ ::alert{type="warning"}
+ Check out a **warning** alert with `code` and a [link](/).
+ ::
-:::alert{type="danger" style="margin-bottom: 0;"}
-Check out a **danger** alert with `code` and a [link](/).
-:::
-::::
+ ::alert{type="danger" style="margin-bottom: 0;"}
+ Check out a **danger** alert with `code` and a [link](/).
+ ::
+ ::
-```md [Code]
-:::alert{type="info" style="margin-top: 0;"}
-Check out an **info** alert with `code` and a [link](/).
-:::
+ ```md [Code]
+ ::alert{type="info" style="margin-top: 0;"}
+ Check out an **info** alert with `code` and a [link](/).
+ ::
-:::alert{type="success"}
-Check out a **success** alert with `code` and a [link](/).
-:::
+ ::alert{type="success"}
+ Check out a **success** alert with `code` and a [link](/).
+ ::
-:::alert{type="warning"}
-Check out a **warning** alert with `code` and a [link](/).
-:::
+ ::alert{type="warning"}
+ Check out a **warning** alert with `code` and a [link](/).
+ ::
-:::alert{type="danger" style="margin-bottom: 0;"}
-Check out a **danger** alert with `code` and a [link](/).
-:::
-```
+ ::alert{type="danger" style="margin-bottom: 0;"}
+ Check out a **danger** alert with `code` and a [link](/).
+ ::
+ ```
-:::::
+::
-::props{of="components/atoms/Alert"}
+:props{of="components/atoms/Alert"}
### `list`
-:::::code-group
-::::code-block{label="Preview" active preview}
-
-:::list{type="primary"}
-- **Important**
-- Always
-:::
-
-:::list{type="success"}
-- Amazing
-- Congrats
-:::
-
-:::list{type="info"}
-- Do you know?
-- You can also do this
-:::
+::code-group
+ ::code-block{label="Preview" active preview}
-:::list{type="warning"}
-- Be careful
-- Use with precautions
-:::
+ ::list{type="primary"}
+ - **Important**
+ - Always
+ ::
-:::list{type="danger"}
-- Drinking too much
-- Driving drunk
-:::
+ ::list{type="success"}
+ - Amazing
+ - Congrats
+ ::
-::::
+ ::list{type="info"}
+ - Do you know?
+ - You can also do this
+ ::
-```md [Code]
-:::list{type="primary"}
-- **Important**
-- Always
-:::
+ ::list{type="warning"}
+ - Be careful
+ - Use with precautions
+ ::
-:::list{type="success"}
-- Amazing
-- Congrats
-:::
+ ::list{type="danger"}
+ - Drinking too much
+ - Driving drunk
+ ::
-:::list{type="info"}
-- Do you know?
-- You can also do this
-:::
+ ::
-:::list{type="warning"}
-- Be careful
-- Use with precautions
-:::
-
-:::list{type="danger"}
-- Drinking too much
-- Driving drunk
-:::
-```
+ ```md [Code]
+ ::list{type="primary"}
+ - **Important**
+ - Always
+ ::
+
+ ::list{type="success"}
+ - Amazing
+ - Congrats
+ ::
+
+ ::list{type="info"}
+ - Do you know?
+ - You can also do this
+ ::
+
+ ::list{type="warning"}
+ - Be careful
+ - Use with precautions
+ ::
+
+ ::list{type="danger"}
+ - Drinking too much
+ - Driving drunk
+ ::
+ ```
-:::::
+::
-::props{of="components/atoms/List"}
+:props{of="components/atoms/List"}
### `badge`
-::::code-group
-:::code-block{label="Preview" active preview}
-
-:badge[v1.2+]
+::code-group
+ ::code-block{label="Preview" active preview}
+ :badge[v1.2+]
+ ::
-:::
-
-```md [Code]
-:badge[v1.2+]
-```
+ ```md [Code]
+ :badge[v1.2+]
+ ```
-::::
+::
### `code-group`
@@ -135,86 +133,84 @@ This component uses `slots`. See [`code-block`](#code-block) below.
````html
ℹ️ Backslashes are for demonstration
-::::code-group
+::code-group
-:::code-block{label="Yarn" active}
+::code-block{label="Yarn" active}
```bash
yarn add docus
\```
-:::
+::
```bash [NPM]
npm install docus
\```
-::::
+::
````
**Result**
-::::code-group
+::code-group
-:::code-block{label="Yarn" active}
-```bash
-yarn add docus
-```
-:::
-
-```bash [NPM]
-npm install docus
-```
+ ```bash [Yarn]
+ yarn add docus
+ ```
+
+ ```bash [NPM]
+ npm install docus
+ ```
-::::
+::
-::props{of="components/atoms/CodeBlock"}
+:props{of="components/atoms/CodeBlock"}
### `inject-content`
Cross-reference other files within your documentation (such as example code you want to include on multiple pages or across all languages).
-::::code-group
- :::code-block{label="Preview" active preview}
- ::inject-content{query="2.usage/_example"}
- :::
+::code-group
+ ::code-block{label="Preview" active preview}
+ :inject-content{query="2.usage/_example"}
+ ::
```md [Code]
- ::inject-content{query="2.usage/_example"}
+ :inject-content{query="2.usage/_example"}
```
-::::
+::
-::props{of="components/atoms/InjectContent"}
+:props{of="components/atoms/InjectContent"}
### `code-sandbox`
Embed CodeSandbox easily in your documentation with great performances, using the [IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) to load when visible in the viewport.
-::::code-group
- :::code-block{label="Preview" active preview}
- ::code-sandbox{src="https://codesandbox.io/embed/nuxt-content-l164h?hidenavigation=1&theme=dark"}
- :::
+::code-group
+ ::code-block{label="Preview" active preview}
+ :code-sandbox{src="https://codesandbox.io/embed/nuxt-content-l164h?hidenavigation=1&theme=dark"}
+ ::
```md [Code]
- ::code-sandbox{src="https://codesandbox.io/embed/nuxt-content-l164h?hidenavigation=1&theme=dark"}
+ :code-sandbox{src="https://codesandbox.io/embed/nuxt-content-l164h?hidenavigation=1&theme=dark"}
```
-::::
+::
-::props{of="components/atoms/CodeSandbox"}
+:props{of="components/atoms/CodeSandbox"}
### `tweet`
Embed tweets easily in your documentation - with great performance. Tweets will be embedded statically without using any runtime JS.
-::::code-group
- :::code-block{label="Preview" active preview}
+::code-group
+ ::code-block{label="Preview" active preview}
- ::tweet{id="1314628331841761289"}
+ :tweet{id="1314628331841761289"}
- :::
+ ::
```md [Code]
- ::tweet{id="1314628331841761289"}
+ :tweet{id="1314628331841761289"}
```
-::::
+::
@@ -222,17 +218,17 @@ Embed tweets easily in your documentation - with great performance. Tweets will
List accepted properties of a component.
-::::code-group
- :::code-block{label="Preview" active preview}
+::code-group
+ ::code-block{label="Preview" active preview}
- ::props{of="components/atoms/CodeBlock"}
+ :props{of="components/atoms/CodeBlock"}
- :::
+ ::
```md [Code]
- ::props{of="components/atoms/CodeBlock"}
+ :props{of="components/atoms/CodeBlock"}
```
-::::
+::
-::props{of="components/atoms/Props"}
+:props{of="components/atoms/Props"}
diff --git a/docs/content/2.usage/3.assets.md b/docs/content/2.usage/3.assets.md
index 5b151a333..d295e0f4f 100644
--- a/docs/content/2.usage/3.assets.md
+++ b/docs/content/2.usage/3.assets.md
@@ -9,21 +9,17 @@ navigation:
You can add a `static/icon.png` image to enable [nuxt-pwa](https://pwa.nuxtjs.org) and generate a favicon automatically.
-
-
+::alert
`icon.png` should be a square of at least 512x512px.
-
-
+::
## Social preview
You can add a `static/preview.png` image to have a social preview image in your metas.
-
-
+::alert
`preview.png` should be at least 640×320px (1280×640px for the best results).
-
-
+::
## Images with dark mode
@@ -31,26 +27,18 @@ Docus supports light and dark mode 🌗.
In order to display an image for a specific mode, you can use `dark-img` and `light-img` classes.
-
-
-
-