Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Keep procedure code blocks at the left margin

6d574becea8dcf72139479270da7c417ec5330de · Keenan Nemetz · 20d ago · parent a0172426

Keep procedure code blocks at the left margin

The site builds with Python-Markdown's fenced_code extension, which only
recognizes a fence that starts at column 0. Four pages nested a fenced block
under an ordered list item instead, so the fence was parsed as inline code and
the page showed the language token and the commands joined into one pill:
`sh vole workflow check vole workflow list`.

Number each affected procedure's steps with headings, the idiom quickstart.md
already uses, and keep the fence at the left margin. The prose that followed a
block stays with its step. DEVELOPMENT.md now records the constraint, because
the Markdown is valid CommonMark and renders correctly through the forge's
goldmark, which is why nothing caught it before.

Refs: 01M7BHJX0D3HBF01Y04YZM8GYB

docs/workflows.md +56−54

@@ -13,60 +13,62 @@ limit, and validation rule.
13 13 Start from a repository clone. To run the workflow locally, you also need Docker,
14 14 rootless Podman, or nerdctl.
15 15
16 1. Create `.vole/workflows/verify.yaml`:
17
18 ```yaml
19 version: 1
20 name: Verify
21 on:
22 push:
23 branches: [main]
24 jobs:
25 test:
26 runs-on: [linux]
27 image: golang:1.27-bookworm
28 network: bridge
29 steps:
30 - name: test
31 run: go test ./...
32 ```
33
34 `network: bridge` lets the job download Go modules. A job without it receives
35 the network its runner offers, which is none by default. `runs-on` is
36 optional; when present, a runner must have every listed label.
37
38 2. Validate the file and inspect its triggers:
39
40 ```sh
41 vole workflow check
42 vole workflow list
43 ```
44
45 For one valid workflow, the check prints:
46
47 ```text
48 ok: 1 workflow(s)
49 ```
50
51 3. Run the job against your working tree:
52
53 ```sh
54 vole workflow run verify -j test
55 ```
56
57 Vole executes the steps in the named image, not directly on your machine. It
58 mounts your uncommitted files, stops at the first failure, and returns that
59 step's exit status. Use `--container-runtime podman` to select Podman instead
60 of the default Docker.
61
62 Local runs ignore triggers and `runs-on`, and do not publish artifacts or
63 sites. Jobs run in declaration order and share the working tree; pushed jobs
64 are independent and start from clean checkouts. See
65 [Local execution differences](reference/workflow-reference.md#validation-and-pinning)
66 and [Run a job locally](#run-a-job-locally).
67
68 4. Commit and push the workflow. Vole validates it again in pre-receive, queues
69 matching jobs, and records each job as a separate run.
16 ### 1. Create `.vole/workflows/verify.yaml`
17
18 ```yaml
19 version: 1
20 name: Verify
21 on:
22 push:
23 branches: [main]
24 jobs:
25 test:
26 runs-on: [linux]
27 image: golang:1.27-bookworm
28 network: bridge
29 steps:
30 - name: test
31 run: go test ./...
32 ```
33
34 `network: bridge` lets the job download Go modules. A job without it receives the
35 network its runner offers, which is none by default. `runs-on` is optional; when
36 present, a runner must have every listed label.
37
38 ### 2. Validate the file and inspect its triggers
39
40 ```sh
41 vole workflow check
42 vole workflow list
43 ```
44
45 For one valid workflow, the check prints:
46
47 ```text
48 ok: 1 workflow(s)
49 ```
50
51 ### 3. Run the job against your working tree
52
53 ```sh
54 vole workflow run verify -j test
55 ```
56
57 Vole executes the steps in the named image, not directly on your machine. It
58 mounts your uncommitted files, stops at the first failure, and returns that step's
59 exit status. Use `--container-runtime podman` to select Podman instead of the
60 default Docker.
61
62 Local runs ignore triggers and `runs-on`, and do not publish artifacts or sites.
63 Jobs run in declaration order and share the working tree; pushed jobs are
64 independent and start from clean checkouts. See
65 [Local execution differences](reference/workflow-reference.md#validation-and-pinning)
66 and [Run a job locally](#run-a-job-locally).
67
68 ### 4. Commit and push the workflow
69
70 Vole validates it again in pre-receive, queues matching jobs, and records each
71 job as a separate run.
70 72
71 73 ## Run a job locally
72 74