Skip to content

Commit 7f7b817

Browse files
authored
Merge pull request #857 from patchlevel/prepare-docs
Migrate docs from mkdocs to patchlevel.dev
2 parents 7637f45 + 6aab54d commit 7f7b817

39 files changed

Lines changed: 982 additions & 1229 deletions

.github/workflows/docs-build-try.yml

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

.github/workflows/docs-build.yml

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

.github/workflows/docs-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
dependencies:
2020
- "locked"
2121
php-version:
22-
- "8.5"
22+
- "8.4"
2323
operating-system:
2424
- "ubuntu-latest"
2525

.github/workflows/docs-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
-H "Authorization: Bearer ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}" \
2020
-H "X-GitHub-Api-Version: 2026-03-10" \
2121
https://api.github.com/repos/patchlevel/patchlevel.dev/actions/workflows/prod-deployment.yaml/dispatches \
22-
-d '{"ref":"main"}'
22+
-d '{"ref":"main"}'

bin/docs-extract-php-code

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (file_exists($targetDir)) {
2323
mkdir($targetDir);
2424

2525
$finder = new Symfony\Component\Finder\Finder();
26-
$finder->files()->in(__DIR__ . '/../docs/pages')->name('*.md');
26+
$finder->files()->in(__DIR__ . '/../docs')->name('*.md');
2727

2828
foreach ($finder as $file) {
2929
$fileName = pathinfo($file->getBasename(), PATHINFO_FILENAME);

bin/docs-inject-php-code

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if (!file_exists($targetDir)) {
2525
}
2626

2727
$finder = new Symfony\Component\Finder\Finder();
28-
$finder->files()->in(__DIR__ . '/../docs/pages')->name('*.md');
28+
$finder->files()->in(__DIR__ . '/../docs')->name('*.md');
2929

3030
foreach ($finder as $file) {
3131
$fileName = pathinfo($file->getBasename(), PATHINFO_FILENAME);
File renamed without changes.
Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ since only an aggregate-wide unique string is expected in the store.
77

88
This library provides you with a few options for generating the id.
99

10-
!!! warning
10+
:::warning
11+
Performance reasons, the default configuration of the store require an uuid string for `aggregate id`.
12+
But technically, for the library, it can be any string.
13+
If you want to use a custom id, you have to change the `aggregate_id_type` in the [store](store.md) configuration.
14+
:::
1115

12-
Performance reasons, the default configuration of the store require an uuid string for `aggregate id`.
13-
But technically, for the library, it can be any string.
14-
If you want to use a custom id, you have to change the `aggregate_id_type` in the [store](store.md) configuration.
15-
1616
## Uuid
1717

1818
The easiest way is to use an `uuid` as an aggregate ID.
@@ -41,11 +41,12 @@ use Patchlevel\EventSourcing\Aggregate\Uuid;
4141
$uuid = Uuid::generate();
4242
$uuid = Uuid::fromString('d6e8d7a0-4b0b-4e6a-8a9a-3a0b2d9d0e4e');
4343
```
44-
!!! Note
4544

46-
We implemented the version 7 of the uuid, because it is most suitable for event sourcing.
47-
More information about uuid versions can be found [here](https://uuid.ramsey.dev/en/stable/rfc4122.html).
48-
45+
:::note
46+
We implemented the version 7 of the uuid, because it is most suitable for event sourcing.
47+
More information about uuid versions can be found [here](https://uuid.ramsey.dev/en/stable/rfc4122.html).
48+
:::
49+
4950
## Custom ID
5051

5152
If you don't want to use an uuid, you can also use the custom ID implementation.
@@ -64,12 +65,13 @@ final class Profile extends BasicAggregateRoot
6465
private CustomId $id;
6566
}
6667
```
67-
!!! warning
6868

69-
If you want to use a custom id that is not an uuid,
70-
you need to change the `aggregate_id_type` to `string` in the store configuration.
71-
More information can be found [here](store.md).
72-
69+
:::warning
70+
If you want to use a custom id that is not an uuid,
71+
you need to change the `aggregate_id_type` to `string` in the store configuration.
72+
More information can be found [here](store.md).
73+
:::
74+
7375
So you can use any string as an id:
7476

7577
```php

0 commit comments

Comments
 (0)