Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand All @@ -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"
Expand Down
13 changes: 13 additions & 0 deletions examples/third-party/mp-units/docs/mrdocs.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions examples/third-party/projects.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading