Skip to content

Commit a3000e1

Browse files
authored
Merge pull request #295 from cschleiden/docs-slate
Add docs site
2 parents e9dff1b + 3bd7700 commit a3000e1

File tree

18 files changed

+1147
-29
lines changed

18 files changed

+1147
-29
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
steps:
3232
- name: Checkout
3333
uses: actions/checkout@v3
34+
- name: build
35+
run: |
36+
sudo ./build.sh
37+
working-directory: ./docs
3438
- name: Setup Pages
3539
uses: actions/configure-pages@v3
3640
- name: Upload artifact

client/client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ import (
2323
"go.opentelemetry.io/otel/trace"
2424
)
2525

26+
// ErrWorkflowCanceled is returned when a workflow was already canceled.
2627
var ErrWorkflowCanceled = errors.New("workflow canceled")
28+
29+
// ErrWorkflowTerminated is returned when a workflow was already terminated.
2730
var ErrWorkflowTerminated = errors.New("workflow terminated")
2831

2932
type WorkflowInstanceOptions struct {
@@ -35,6 +38,7 @@ type Client struct {
3538
clock clock.Clock
3639
}
3740

41+
// New creates a new client for the given backend.
3842
func New(backend backend.Backend) *Client {
3943
return &Client{
4044
backend: backend,

docs/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Development
2+
3+
1. Run
4+
```bash
5+
./serve.sh
6+
```
7+
8+
2. Open http://localhost:4567/

docs/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
docker run --rm --name slate -p 4567:4567 \
4+
-v "$(pwd)/source/logo.png":/srv/slate/source/images/logo.png \
5+
-v "$(pwd)/source/index.html.md":/srv/slate/source/index.html.md \
6+
-v "$(pwd)/source/includes":/srv/slate/source/includes \
7+
-v "$(pwd)/build":/srv/slate/build slatedocs/slate build
8+
9+
cp ./images/* ./build/images/

docs/commands.drawio.png

-38.6 KB
Binary file not shown.

docs/commands.md

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

docs/high-level-arch.drawio.png

-25.1 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.

docs/images/logo.png

Loading

0 commit comments

Comments
 (0)