Skip to content

Commit c9c1434

Browse files
committed
ci: mp-units demo
1 parent 940c33f commit c9c1434

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,13 +697,20 @@ jobs:
697697
ref: develop
698698
path: nlohmann-json
699699

700+
- name: Clone MpUnits
701+
uses: actions/checkout@v4
702+
with:
703+
repository: mpusz/mp-units
704+
ref: master
705+
path: mp-units
706+
700707
- name: Patch Demo Projects
701708
shell: bash
702709
run: |
703710
set -euo pipefail
704711
set -x
705712
706-
for project in beman-optional fmt nlohmann-json; do
713+
for project in beman-optional fmt nlohmann-json mp-units; do
707714
src="./examples/third-party/$project"
708715
dst="./$project"
709716
@@ -737,6 +744,8 @@ jobs:
737744
mrdocs --config="$(pwd)/beman-optional/docs/mrdocs.yml" --output="$(pwd)/demos/beman-optional/$variant/$generator" --multipage=$multipage --generator="$generator" --log-level=debug
738745
# nlohmann-json demo
739746
mrdocs --config="$(pwd)/nlohmann-json/docs/mrdocs.yml" --output="$(pwd)/demos/nlohmann-json/$variant/$generator" --multipage=$multipage --generator="$generator" --log-level=debug
747+
# mp-units demo
748+
mrdocs --config="$(pwd)/mp-units/docs/mrdocs.yml" --output="$(pwd)/demos/mp-units/$variant/$generator" --multipage=$multipage --generator="$generator" --log-level=debug
740749
# fmt demo
741750
mrdocs --config="$(pwd)/fmt/doc/mrdocs.yml" --output="$(pwd)/demos/fmt/$variant/$generator" --multipage=$multipage --generator="$generator" --log-level=debug
742751
# mrdocs documenting mrdocs demo
@@ -745,7 +754,7 @@ jobs:
745754
746755
# Render the asciidoc files to html using asciidoctor
747756
if [[ ${{ runner.os }} == 'Linux' ]]; then
748-
for project in boost-url beman-optional mrdocs fmt nlohmann-json; do
757+
for project in boost-url beman-optional mrdocs fmt nlohmann-json mp-units; do
749758
root="$(pwd)/demos/$project/$variant"
750759
src="$root/adoc"
751760
dst="$root/adoc-asciidoc"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
source-root: ..
2+
input:
3+
- ../src/core/include
4+
includes:
5+
- ../src/core/include
6+
file-patterns:
7+
- '*.h'
8+
include-symbols:
9+
- 'mp_units::**'
10+
implementation-defined:
11+
- 'mp_units::detail'
12+
multipage: true
13+
generator: adoc

examples/third-party/projects.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
"branch": "main",
1414
"config": "docs/mrdocs.yml"
1515
},
16+
{
17+
"name": "MpUnits",
18+
"id": "mp-units",
19+
"repository": "https://github.com/mpusz/mp-units",
20+
"branch": "master",
21+
"config": "docs/mrdocs.yml"
22+
},
1623
{
1724
"name": "fmt",
1825
"id": "fmt",

0 commit comments

Comments
 (0)