diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4d4274..872c041 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,6 @@ jobs: - name: Build and Run tests run: | - rm -rf _build/default/ mkdir $BISECT_DIR dune build @all @runtest --force --instrument-with bisect_ppx env: diff --git a/doc/Makefile b/doc/Makefile index 67fd465..6a56dd2 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -4,6 +4,7 @@ build: build-books build-site build-books: mdbook build book/introduction-to-mdexp + cd ../test && mdbook build build-site: zola build diff --git a/doc/config.toml b/doc/config.toml index 8bb4a37..1e668fc 100644 --- a/doc/config.toml +++ b/doc/config.toml @@ -2,7 +2,7 @@ base_url = "https://mbarbin.github.io/mdexp/" title = "mdexp" -description = "Literate Programming with Embedded Snapshots" +description = "Literate programming with embedded snapshots" # The default language default_language = "en" diff --git a/doc/content/_index.md b/doc/content/_index.md index e16c41e..ca39e23 100644 --- a/doc/content/_index.md +++ b/doc/content/_index.md @@ -1,5 +1,5 @@ +++ -title = "mdexp — Literate Programming with Embedded Snapshots" +title = "Literate programming with embedded snapshots" template = "index.html" sort_by = "weight" +++ diff --git a/doc/content/resources/_index.md b/doc/content/resources/_index.md index 5f11358..cadba63 100644 --- a/doc/content/resources/_index.md +++ b/doc/content/resources/_index.md @@ -13,3 +13,9 @@ what mdexp does and why it is useful. It walks through the core directives --- prose, code blocks, and snapshots --- with concrete examples in OCaml. **Authors:** Mathieu Barbin, Claude Opus 4.6 | **Audience:** New users + +## [Test Suite](../book/test-suite/) + +The internal test suite for mdexp, using mdexp of course. + +**Authors:** Mathieu Barbin, Claude Opus 4.7 | **Audience:** Mdexp developers and contributors diff --git a/doc/static/.gitignore b/doc/static/.gitignore new file mode 100644 index 0000000..3006b27 --- /dev/null +++ b/doc/static/.gitignore @@ -0,0 +1 @@ +book/ diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 0000000..70f5a96 --- /dev/null +++ b/test/Makefile @@ -0,0 +1,10 @@ +.PHONY: build serve clean + +build: + mdbook build + +serve: + mdbook serve --open + +clean: + mdbook clean diff --git a/test/README.md b/test/README.md index 4b64d8d..acd38e3 100644 --- a/test/README.md +++ b/test/README.md @@ -1,4 +1,4 @@ -# mdexp Test Suite +# Mdexp Test Suite This book contains the test suite for mdexp, organized as documentation. diff --git a/test/book.toml b/test/book.toml index d37a505..858905e 100644 --- a/test/book.toml +++ b/test/book.toml @@ -1,11 +1,11 @@ [book] -title = "mdexp Test Suite" +title = "Mdexp Test Suite" authors = ["Mathieu Barbin"] language = "en" src = "." [build] -build-dir = "book" +build-dir = "../doc/static/book/test-suite" [output.html] git-repository-url = "https://github.com/mbarbin/mdexp" @@ -13,3 +13,7 @@ default-theme = "light" preferred-dark-theme = "navy" theme = "../doc/book/shared-theme" additional-js = ["../doc/book/shared-theme/ansi-plugin.js"] + +[output.html.fold] +enable = true +level = 0