Skip to content

Commit 56ce6fe

Browse files
committed
refactor: remove unused CodeGroupWrapper component and related imports; update code group syntax in documentation
1 parent 4f3fa0f commit 56ce6fe

File tree

8 files changed

+12
-64
lines changed

8 files changed

+12
-64
lines changed

.astro/data-store.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/components/CodeGroupWrapper.astro

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

src/components/MDXComponents.tsx

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

src/components/MDXContent.astro

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

src/content/docs/framework/blog.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You should use the frontmatter on top of the file to define the article metadata
2020
> [!WARNING]
2121
> The `permalink` property is required. If you modify it, the URL of the article will change.
2222
23-
::: code-group labels=[frontmatter, schema]
23+
:::code-group labels=[frontmatter, schema]
2424
```mdx
2525
---
2626
title: "Article title"
@@ -86,10 +86,10 @@ The `authors` property is an array of author names.
8686
>
8787
<span class="absolute inset-0" aria-hidden="true" />
8888
</a>
89-
<p class="font-medium text-(--ui-text) peer-hover:text-(--ui-text-highlighted) transition-colors text-sm">
89+
<p class="font-medium text-(--ui-text) peer-hover:text-(--ui-text-highlighted) transition-colors text-sm !p-0">
9090
{author.name}
9191
</p>
92-
<p class="text-muted-foreground transition-colors text-xs">
92+
<p class="text-muted-foreground transition-colors text-xs !p-0">
9393
@{key}
9494
</p>
9595
</div>
@@ -128,7 +128,7 @@ The `authors` property is an object where the key is the author name and the val
128128
- `avatar` : The author avatar URL.
129129
- `href` : The author URL.
130130

131-
Ensuite vous pourrez taguer votre utilisateur dans le frontmatter de votre article.
131+
You can then tag your user in the frontmatter of your article.
132132

133133
```mdx
134134
---

src/content/docs/framework/docs.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ The documentation section allows you to create and manage your documentation.
1515
1616
## Create new collection
1717

18-
Pour créer une nouvelle collection, vous devez créer un nouveau dossier dans le dossier `content/docs`.
18+
To create a new collection, you need to create a new folder in the `content/docs` folder.
1919

20-
Dans un premier temps il vous faudra déclarer une nouvelle collection.
20+
First you need to declare a new collection.
2121

22-
#### Dans le fichier `src/content.config.ts`
22+
#### In the `src/content.config.ts` file
2323

2424
```ts
2525
const foo = defineCollection({
@@ -30,7 +30,7 @@ const foo = defineCollection({
3030
export const collections = { foo };
3131
```
3232

33-
#### Dans le fichier `explainer.config.ts`
33+
#### In the `explainer.config.ts` file
3434

3535
```ts
3636
import { CuboidIcon } from 'lucide-react'

src/content/docs/framework/installation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ npx create-astro@latest --template https://github.com/LeadcodeDev/explainer <pro
3030

3131
In your local repository, run the following command to install the dependencies.
3232

33-
::: code-group labels=[pnpm, npm, yarn]
33+
:::code-group labels=[pnpm, npm, yarn]
3434
```bash
3535
pnpm install
3636
```

src/lib/plugins/code-group/code-group-component.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ export function CodeGroup(props: CodeGroupProps) {
5353
}
5454

5555
const icons = {
56+
markdown: 'devicon:markdown',
57+
mdx: 'devicon:markdown',
5658
html: 'devicon:html5',
5759
css: 'devicon:css3',
5860
javascript: 'devicon:javascript',

0 commit comments

Comments
 (0)