Skip to content

Commit 19c7d46

Browse files
authored
Merge pull request #333 from jmid/fix-asciidoc
Fix asciidoc in README and add a workflow to check it
2 parents a8e8535 + 5823412 commit 19c7d46

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
run:
11+
name: Check asciidoc
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- run: sudo apt install asciidoc-base
16+
- run: asciidoc README.adoc
17+

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
- Adjust `stats` computation of average and standard deviation to
77
limit precision loss, print both using scientific notation, and
88
workaround MinGW float printing to also pass expect tests
9+
- Fix dune snippets missing a language specifier in README.adoc
10+
causing `asciidoc` to error
911

1012
## 0.24
1113

README.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ of interest:
2323
Jan Midtgaard (@jmid) has http://janmidtgaard.dk/quickcheck/index.html[a lecture] about
2424
property-based testing that relies on QCheck.
2525

26-
toc::[]
27-
2826
== Use
2927

3028
See the documentation. I also wrote
@@ -457,7 +455,7 @@ let _ = QCheck_runner.run_tests_main [test]
457455

458456
with the following `dune` file:
459457

460-
[source]
458+
[source,lisp]
461459
----
462460
(test
463461
(name test)
@@ -487,7 +485,7 @@ let _ = QCheck_base_runner.run_tests_main [test]
487485
and adjust the `dune` file accordingly to use `qcheck-core` and its
488486
`qcheck-core.runner` sub-package:
489487

490-
[source]
488+
[source,lisp]
491489
----
492490
(test
493491
(name test)

0 commit comments

Comments
 (0)