Skip to content

Commit 75fb661

Browse files
authored
docs(structure): fix app config location
1 parent ecf5d8e commit 75fb661

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

docs/content/en/1.getting-started/4.project-structure.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Docus v4 is a **Nuxt layer** that extends your standard Nuxt application with do
1111

1212
When you create a new Docus project with `npx create-docus my-docs`, you get:
1313

14-
```
14+
```text
1515
my-docs/
1616
├── content/ # Your markdown content
1717
│ ├── index.md # Homepage
@@ -22,25 +22,24 @@ my-docs/
2222

2323
You can still use any feature or file of a classical Nuxt project:
2424

25-
```
25+
```text
2626
my-docs/
27-
├── app.config.ts # App configuration
2827
├── nuxt.config.ts # Nuxt configuration (add extra modules, components, etc.)
2928
├── app/ # App directory
29+
├── app.config.ts # App configuration
3030
│ ├── components/ # Components (add your own components)
3131
│ ├── layouts/ # Layouts (add your own layouts)
3232
│ └── pages/ # Pages (add your own pages)
3333
└── server/ # Server-side code (add your own server-side code)
3434
```
3535

36-
37-
3836
### `content/` directory
3937

4038
This is where you [write pages](/en/concepts/edition) in Markdown. Docus automatically generates routes based on your file structure.
4139

4240
**Single language structure:**
43-
```
41+
42+
```text
4443
content/
4544
├── index.md
4645
├── getting-started.md
@@ -50,7 +49,8 @@ content/
5049
```
5150

5251
**Multi-language structure (with i18n):**
53-
```
52+
53+
```text
5454
content/
5555
├── en/
5656
│ ├── index.md
@@ -72,7 +72,7 @@ Files contained within the `public/` directory are served at the root and are no
7272

7373
### `package.json`
7474

75-
This file contains all the dependencies and scripts for your application. The `package.json` of
75+
This file contains all the dependencies and scripts for your application. The `package.json` of
7676
a Docus application si really minimal and looks like:
7777

7878
```json [package.json]
@@ -112,9 +112,10 @@ This is where you can [configure Docus](/en/concepts/configuration) to fit your
112112

113113
Since Docus v4 is a Nuxt layer, you can use **any feature** of a standard Nuxt project:
114114

115-
```
115+
```text
116116
my-docs/
117117
├── app/ # App directory (optional)
118+
├── app.config.ts # App configuration
118119
│ ├── components/ # Custom Vue components
119120
│ ├── layouts/ # Custom layouts
120121
│ ├── pages/ # Custom Vue pages (outside of content)

docs/content/en/2.concepts/8.nuxt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Here’s a simple example of a custom `BrowserFrame` component created in the `c
5353
title?: string
5454
}>()
5555
</script>
56-
56+
5757
<template>
5858
<div class="w-fit rounded-xl border border-muted bg-accented shadow-md overflow-hidden px-2 pb-2">
5959
<div class="flex justify-between items-center px-2 py-2 bg-accented border-accented border-b">

docs/content/fr/1.getting-started/4.project-structure.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Docus v4 est un **layer Nuxt** qui étend votre application Nuxt standard avec d
1111

1212
Lorsque vous créez un nouveau projet Docus avec `npx create-docus my-docs`, voici la structure de base:
1313

14-
```
14+
```text
1515
my-docs/
1616
├── content/ # Votre contenu markdown
1717
│ ├── index.md # Page d'accueil
@@ -22,24 +22,24 @@ my-docs/
2222

2323
Vous pouvez toujours utiliser n'importe quelle fonctionnalité ou fichier d'un projet Nuxt classique :
2424

25-
```
25+
```text
2626
my-docs/
27-
├── app.config.ts # Configuration de l'application
28-
├── nuxt.config.ts # Configuration Nuxt (ajouter des modules, composants, etc.)
27+
├── nuxt.config.ts # Configuration Nuxt (ajouter des modules, composants...)
2928
├── app/ # Répertoire app
29+
├── app.config.ts # App configuration
3030
│ ├── components/ # Composants (ajoutez vos propres composants)
3131
│ ├── layouts/ # Layouts (ajoutez vos propres layouts)
3232
│ └── pages/ # Pages (ajoutez vos propres pages)
3333
└── server/ # Code côté serveur (ajoutez votre propre code côté serveur)
3434
```
3535

36-
3736
### Répertoire `content/`
3837

3938
C'est ici que vous [rédigez vos pages](/fr/concepts/edition) en Markdown. Docus génère automatiquement les routes basées sur votre structure de fichiers.
4039

4140
**Structure monolingue :**
42-
```
41+
42+
```text
4343
content/
4444
├── index.md
4545
├── getting-started.md
@@ -49,7 +49,8 @@ content/
4949
```
5050

5151
**Structure multilingue (avec i18n) :**
52-
```
52+
53+
```text
5354
content/
5455
├── en/
5556
│ ├── index.md
@@ -110,9 +111,10 @@ C'est ici que vous pouvez [configurer Docus](/fr/concepts/configuration) pour l'
110111

111112
Puisque Docus v4 est un layer Nuxt, vous pouvez utiliser **n'importe quelle fonctionnalité** d'un projet Nuxt standard :
112113

113-
```
114+
```text
114115
my-docs/
115116
├── app/ # Répertoire app (optionnel)
117+
│ ├── app.config.ts # App configuration
116118
│ ├── components/ # Composants Vue personnalisés
117119
│ ├── layouts/ # Layouts personnalisés
118120
│ ├── pages/ # Pages Vue personnalisées (en dehors du contenu)

0 commit comments

Comments
 (0)