Skip to content

Commit

Permalink
Add action to build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyzimarev committed Feb 15, 2024
1 parent 82511d6 commit f2d7f14
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 5 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish docs

on:
push:
branches:
- dev
paths:
- 'docs/**'

env:
INSTANCE: docs/e
ARTIFACT: webHelpE-all.zip
DOCKER_VERSION: 233.14389

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout repository
uses: actions/checkout@v4
-
name: Build Writerside docs using Docker
uses: JetBrains/writerside-github-action@v4
with:
instance: ${{ env.INSTANCE }}
artifact: ${{ env.ARTIFACT }}
docker-version: ${{ env.DOCKER_VERSION }}
-
name: Extract Files
run: 7z x artifacts/${{ env.ARTIFACT }} -ocf-pages
-
name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: eventuous-docs
directory: cf-pages
branch: dev
wranglerVersion: '3'
5 changes: 3 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
push:
branches:
- dev

paths-ignore:
- 'docs/**'
jobs:
nuget:
runs-on: self-hosted
Expand All @@ -18,7 +19,7 @@ jobs:
python-version: 3.8
-
name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
# -
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
python-version: 3.8
-
name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
-
Expand Down
4 changes: 2 additions & 2 deletions docs/topics/domain/Aggregate.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Find out about abstractions Eventuous provides to implement the pattern, with sa
</card-summary>
# Aggregate

> From version 0.14.0 using aggregates is **optional**. You can define your domain logic using [functional services](../application/func-service.md) instead.
> From version 0.14.0 using aggregates is **optional**. You can define your domain logic using [functional services](Functional-service.md) instead.
>
{style="note"}

Expand Down Expand Up @@ -160,7 +160,7 @@ public record BookingId(string Value) : AggregateId(Value);

The abstract record overrides its `ToString` to return the string value as-is. It also has an implicit conversion operator, which allows you to use a string value without explicitly instantiating the identity record. However, we still recommend instantiating the identity explicitly to benefit from type safety.

The aggregate identity type is only used by the [command service](../application/app-service.md) and for calculating the [stream name](../persistence/aggregate-stream.md) for loading and saving events.
The aggregate identity type is only used by the [command service](Command-service.md) and for calculating the [stream name](Event-streams.md) for loading and saving events.

## Aggregate factory

Expand Down

0 comments on commit f2d7f14

Please sign in to comment.