Skip to content

Commit

Permalink
retrigger actions
Browse files Browse the repository at this point in the history
  • Loading branch information
exnersim committed Jan 15, 2025
1 parent 9c10817 commit 612cd85
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ example_pages = [
"Multiprocessing" => joinpath("examples", "multiprocessing.md"),
"Pluto Workshops" => joinpath("examples", "workshops.md"),
"FMIExport Examples" => [
"Export Bouncing Ball" => joinpath("examples", "fmiexport_examples", "Export-BouncingBall.md"),
]
"Export Bouncing Ball" =>
joinpath("examples", "fmiexport_examples", "Export-BouncingBall.md"),
],
]

function recursive_second(vec)
Expand All @@ -36,7 +37,7 @@ function recursive_second(vec)
append!(s, recursive_second(e[2]))
end
end
return s
return s
end
function recursive_second_filter!(f, a)
deleteat = []
Expand All @@ -55,10 +56,19 @@ function recursive_second_filter!(f, a)
deleteat!(a, deleteat)
return a
end
mdFilesInExampleDir = filter(f -> endswith(f, ".md"), collect(Iterators.flatten([(length(item[3]) > 0) ? [joinpath(item[1],f) for f in item[3]] : [] for item in walkdir(joinpath("docs", "src", "examples"))])))
mdFilesInExampleDir = filter(
f -> endswith(f, ".md"),
collect(
Iterators.flatten([
(length(item[3]) > 0) ? [joinpath(item[1], f) for f in item[3]] : [] for
item in walkdir(joinpath("docs", "src", "examples"))
]),
),
)
#check if all md files in examples are included in docs
for md in mdFilesInExampleDir
if !occursin("README", md) && all([!endswith(md, file) for file in recursive_second(example_pages)])
if !occursin("README", md) &&
all([!endswith(md, file) for file in recursive_second(example_pages)])
print(
string(
"::warning title=Example-Warning::example \"",
Expand Down

0 comments on commit 612cd85

Please sign in to comment.