From 65f1d2e565f4474f3bca09805e0b57d0fc50ad94 Mon Sep 17 00:00:00 2001 From: Alan de Freitas Date: Mon, 29 Sep 2025 15:47:02 -0500 Subject: [PATCH] ci: mp-units demo --- .github/workflows/ci.yml | 13 +++++++++++-- examples/third-party/mp-units/docs/mrdocs.yml | 13 +++++++++++++ examples/third-party/projects.json | 7 +++++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 examples/third-party/mp-units/docs/mrdocs.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ed4d9a6b..f3cb3ff6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -697,13 +697,20 @@ jobs: ref: develop path: nlohmann-json + - name: Clone MpUnits + uses: actions/checkout@v4 + with: + repository: mpusz/mp-units + ref: master + path: mp-units + - name: Patch Demo Projects shell: bash run: | set -euo pipefail set -x - for project in beman-optional fmt nlohmann-json; do + for project in beman-optional fmt nlohmann-json mp-units; do src="./examples/third-party/$project" dst="./$project" @@ -737,6 +744,8 @@ jobs: mrdocs --config="$(pwd)/beman-optional/docs/mrdocs.yml" --output="$(pwd)/demos/beman-optional/$variant/$generator" --multipage=$multipage --generator="$generator" --log-level=debug # nlohmann-json demo mrdocs --config="$(pwd)/nlohmann-json/docs/mrdocs.yml" --output="$(pwd)/demos/nlohmann-json/$variant/$generator" --multipage=$multipage --generator="$generator" --log-level=debug + # mp-units demo + mrdocs --config="$(pwd)/mp-units/docs/mrdocs.yml" --output="$(pwd)/demos/mp-units/$variant/$generator" --multipage=$multipage --generator="$generator" --log-level=debug # fmt demo mrdocs --config="$(pwd)/fmt/doc/mrdocs.yml" --output="$(pwd)/demos/fmt/$variant/$generator" --multipage=$multipage --generator="$generator" --log-level=debug # mrdocs documenting mrdocs demo @@ -745,7 +754,7 @@ jobs: # Render the asciidoc files to html using asciidoctor if [[ ${{ runner.os }} == 'Linux' ]]; then - for project in boost-url beman-optional mrdocs fmt nlohmann-json; do + for project in boost-url beman-optional mrdocs fmt nlohmann-json mp-units; do root="$(pwd)/demos/$project/$variant" src="$root/adoc" dst="$root/adoc-asciidoc" diff --git a/examples/third-party/mp-units/docs/mrdocs.yml b/examples/third-party/mp-units/docs/mrdocs.yml new file mode 100644 index 000000000..5dbd73c90 --- /dev/null +++ b/examples/third-party/mp-units/docs/mrdocs.yml @@ -0,0 +1,13 @@ +source-root: .. +input: + - ../src/core/include +includes: + - ../src/core/include +file-patterns: + - '*.h' +include-symbols: + - 'mp_units::**' +implementation-defined: + - 'mp_units::detail' +multipage: true +generator: adoc diff --git a/examples/third-party/projects.json b/examples/third-party/projects.json index 94929e659..d684ca9ec 100644 --- a/examples/third-party/projects.json +++ b/examples/third-party/projects.json @@ -13,6 +13,13 @@ "branch": "main", "config": "docs/mrdocs.yml" }, + { + "name": "MpUnits", + "id": "mp-units", + "repository": "https://github.com/mpusz/mp-units", + "branch": "master", + "config": "docs/mrdocs.yml" + }, { "name": "fmt", "id": "fmt",