Skip to content

Commit b26e9ce

Browse files
committed
issue #194 - configuration basics documentation
1 parent 7de47e1 commit b26e9ce

File tree

11 files changed

+1016
-592
lines changed

11 files changed

+1016
-592
lines changed

docs/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default defineConfig({
8585
items: [
8686
{ text: 'Backup & Restore', link: '/backup_restore' },
8787
{ text: 'Statistics', link: '/stats' },
88-
{ text: 'Bundle configuration', link: '/configuration' },
88+
{ text: 'Configuration basics', link: '/configuration/basics' },
8989
{ text: 'Configuration reference', link: '/configuration/reference' },
9090
]
9191
},

docs/content/anonymization/custom-anonymizers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To inspire you, browse existing *Anonymizers* in `vendor/makinacorpus/db-tools-b
3535

3636
::: tip
3737
You can tell *DbToolsBundle* your *Custom Anonymizers* live in a different directory
38-
with the [*Anonymizer paths* configuration](../configuration#anonymizer-paths).
38+
with the [*Anonymizer paths* configuration](../configuration/basics#anonymizer-paths).
3939
:::
4040

4141
::: tip

docs/content/anonymization/essentials.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ With the Symfony bundle, there is two ways to tell *DbToolsBundle* how it should
1313
2. you can declare it with a **YAML** file
1414

1515
::: tip
16-
The *DbToolsBundle* does not only work with Doctrine Entities to anonymize data. You can use it with
16+
*DbToolsBundle* does not only work with Doctrine Entities to anonymize data. You can use it with
1717
*any* database, all you need is a DBAL connection.
1818

19-
In such case, the [YAML configuration](../configuration#anonymization) is the only available option.
19+
In such case, the [YAML configuration](../configuration/basics#anonymization) is the only available option.
2020
:::
2121

22-
If Doctrine ORM is enabled, the *DbToolsBundle* will automatically look for attributes on your entities.
22+
If Doctrine ORM is enabled, *DbToolsBundle* will automatically look for attributes on your entities.
2323
If you want to use YAML configuration, look at the [Bundle Configuration
24-
section](../configuration#anonymization) to see how to configure it.
24+
section](../configuration/basics#anonymization) to see how to configure it.
2525

2626
:::info
2727
All anonymizers can be configured via attributes on Doctrine ORM entities, but inheritance
@@ -225,7 +225,7 @@ customer:
225225

226226
## Going further
227227

228-
The DbToolsBundle provides a bunch of *Anonymizers* that should cover most of your needs. You can find a
228+
*DbToolsBundle* provides a bunch of *Anonymizers* that should cover most of your needs. You can find a
229229
complete description of each one of them in the next section.
230230

231231
You can also add *Anonymizers* from [community packs](./packs). For example, to add the `pack-fr-fr` run:
@@ -234,7 +234,7 @@ You can also add *Anonymizers* from [community packs](./packs). For example, to
234234
composer require db-tools-bundle/pack-fr-fr
235235
```
236236

237-
If you can't find what you need from core anonymizers and in available packs, the *DbToolsBundle* allows
237+
If you can't find what you need from core anonymizers and in available packs, *DbToolsBundle* allows
238238
you to [create your own *Custom Anonymizers*](./custom-anonymizers).
239239

240240
::: tip

docs/content/backup_restore.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ your database but also a tiny backups manager which handle backup files for you.
55

66
## Backup command
77

8-
The backup command will use the [predefined or configured binary](./configuration#binaries) for your
8+
The backup command will use the [predefined or configured binary](./configuration/basics#binaries) for your
99
database vendor with correct parameters to dump your database.
1010

11-
Each time you launch the backup command, [a backup file is stored in a directory](./configuration#storage-directory) (See
11+
Each time you launch the backup command, [a backup file is stored in a directory](./configuration/basics#storage-directory) (See
1212
[Storage section](#storage) below for more information on how backup files are stored).
1313

14-
With time, this directory will grow, that's why a [backup expiration age](./configuration#storage-directory#backup-expiration-age)
14+
With time, this directory will grow, that's why a [backup expiration age](./configuration/basics#storage-directory#backup-expiration-age)
1515
was added. Every time you launch the command, at the end, it will be asked if you want to remove obsolete
1616
backup files (i.e. files that have passed their expiration date).
1717

@@ -60,7 +60,7 @@ php bin/console db-tools:backup --connection other_connection_name
6060

6161
### Excluded tables
6262

63-
You may have configured [tables to be exclude in the bundle configuration](./configuration#excluded-tables).
63+
You may have configured [tables to be exclude in the bundle configuration](./configuration/basics#excluded-tables).
6464
If so, these tables will be automatically excluded each time you launch the command.
6565

6666
But if you want to temporarily exclude some tables, run the command with the `--excluded-table` option:
@@ -132,11 +132,11 @@ php bin/console db-tools:backup --extra-options "--opt1 val1 --opt2 val2 --flag"
132132
</div>
133133

134134
Unless you specify the `--ignore-default-options` option, the custom options
135-
will be added to the [default options](./configuration#default-binary-options).
135+
will be added to the [default options](./configuration/basics#default-binary-options).
136136

137137
### Ignoring default options
138138

139-
If necessary, [default options](./configuration#default-binary-options) can be
139+
If necessary, [default options](./configuration/basics#default-binary-options) can be
140140
ignored for a backup by using the `--ignore-default-options` option:
141141

142142
<div class="standalone">
@@ -158,7 +158,7 @@ php bin/console db-tools:backup --ignore-default-options
158158

159159
## Restore command
160160

161-
The restore command will use [predefined or configured binary](./configuration#binaries) for your database vendor with correct parameters
161+
The restore command will use [predefined or configured binary](./configuration/basics#binaries) for your database vendor with correct parameters
162162
to restore your database from an existing backup files.
163163

164164
<div class="standalone">
@@ -280,11 +280,11 @@ php bin/console db-tools:restore --extra-options "--opt1 val1 --opt2 val2 --flag
280280
</div>
281281

282282
Unless you specify the `--ignore-default-options` option, the custom options
283-
will be added to the [default options](./configuration#default-binary-options).
283+
will be added to the [default options](./configuration/basics#default-binary-options).
284284

285285
### Ignoring default options
286286

287-
If necessary, [default options](./configuration#default-binary-options) can be
287+
If necessary, [default options](./configuration/basics#default-binary-options) can be
288288
ignored for a restoration by using the `--ignore-default-options` option:
289289

290290
<div class="standalone">
@@ -307,11 +307,11 @@ php bin/console db-tools:restore --ignore-default-options
307307

308308
## Storage
309309

310-
As mentioned earlier on this page, the *DbToolsBundle* can list existing backup files
310+
As mentioned earlier on this page, *DbToolsBundle* can list existing backup files
311311
when you want to restore a previous one with the restore command.
312312

313313
All backups are stored in a directory. By default this directory is <span class="standalone">`./var/db_tools` (relative to the yaml config file)</span><span class="symfony">`%kernel.project_dir%/var/db_tools`</span>
314-
but [you can choose the directory you want](./configuration#storage-directory).
314+
but [you can choose the directory you want](./configuration/basics#storage-directory).
315315

316316
In this directory, each backup is put in sub-directories depending on the backup date. The backup's filename
317317
is generated from the backup date and the DBAL connection name of the database.

0 commit comments

Comments
 (0)