Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
0815Creeper committed Sep 14, 2024
1 parent e5975de commit 7231939
Showing 1 changed file with 81 additions and 81 deletions.
162 changes: 81 additions & 81 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,104 +10,104 @@ using Documenter: GitHubActions
using Suppressor

example_pages = [
"Overview" => "examples/overview.md",
"Simulate" => "examples/simulate.md",
"Parameterize" => "examples/parameterize.md",
"Inputs" => "examples/inputs.md",
"Multiple instances" => "examples/multiple_instances.md",
"Modelica conference 2021" => "examples/modelica_conference_2021.md",
"Manipulation" => "examples/manipulation.md",
"Multithreading" => "examples/multithreading.md",
"Multiprocessing" => "examples/multiprocessing.md",
"Pluto Workshops" => "examples/workshops.md",
"Overview" => "examples/overview.md",
"Simulate" => "examples/simulate.md",
"Parameterize" => "examples/parameterize.md",
"Inputs" => "examples/inputs.md",
"Multiple instances" => "examples/multiple_instances.md",
"Modelica conference 2021" => "examples/modelica_conference_2021.md",
"Manipulation" => "examples/manipulation.md",
"Multithreading" => "examples/multithreading.md",
"Multiprocessing" => "examples/multiprocessing.md",
"Pluto Workshops" => "examples/workshops.md",
]

my_makedocs() = makedocs(
sitename = "FMI.jl",
format = Documenter.HTML(
collapselevel = 1,
sidebar_sitename = false,
edit_link = nothing,
size_threshold = 512000,
size_threshold_ignore = [
"deprecated.md",
"fmi2_lowlevel_library_functions.md",
"fmi3_lowlevel_library_functions.md",
],
),
modules = [FMI, FMIImport, FMICore, FMIBase],
checkdocs = :exports,
linkcheck = true,
warnonly = :linkcheck,
pages = Any[
"Introduction" => "index.md"
"Features" => "features.md"
"FAQ" => "faq.md"
"Examples" => example_pages
"User Level API - FMI.jl" => "library.md"
"Developer Level API" => Any[
"fmi version independent content"=>Any[
"fmi_lowlevel_library_constants.md",
"fmi_lowlevel_modeldescription_functions.md",
"fmi_lowlevel_library_functions.md",
],
"FMI2 specific content"=>Any[
"fmi2_lowlevel_library_constants.md",
"FMI2 Functions in FMI Import/Core .jl"=>Any[
"fmi2_lowlevel_modeldescription_functions.md",
"fmi2_lowlevel_library_functions.md",
"fmi2_lowlevel_ME_functions.md",
"fmi2_lowlevel_CS_functions.md",
],
],
"FMI3 specific content"=>Any[
"fmi3_lowlevel_library_constants.md",
"FMI3 Functions in FMI Import/Core .jl"=>Any[
"fmi3_lowlevel_modeldescription_functions.md",
"fmi3_lowlevel_library_functions.md",
"fmi3_lowlevel_ME_functions.md",
"fmi3_lowlevel_CS_functions.md",
"fmi3_lowlevel_SE_functions.md",
],
],
]
"API Index" => "index_library.md"
"FMI Tool Information" => "fmi-tool-info.md"
"Related Publication" => "related.md"
"Contents" => "contents.md"
hide("Deprecated" => "deprecated.md")
],
sitename = "FMI.jl",
format = Documenter.HTML(
collapselevel = 1,
sidebar_sitename = false,
edit_link = nothing,
size_threshold = 512000,
size_threshold_ignore = [
"deprecated.md",
"fmi2_lowlevel_library_functions.md",
"fmi3_lowlevel_library_functions.md",
],
),
modules = [FMI, FMIImport, FMICore, FMIBase],
checkdocs = :exports,
linkcheck = true,
warnonly = :linkcheck,
pages = Any[
"Introduction" => "index.md"
"Features" => "features.md"
"FAQ" => "faq.md"
"Examples" => example_pages
"User Level API - FMI.jl" => "library.md"
"Developer Level API" => Any[
"fmi version independent content"=>Any[
"fmi_lowlevel_library_constants.md",
"fmi_lowlevel_modeldescription_functions.md",
"fmi_lowlevel_library_functions.md",
],
"FMI2 specific content"=>Any[
"fmi2_lowlevel_library_constants.md",
"FMI2 Functions in FMI Import/Core .jl"=>Any[
"fmi2_lowlevel_modeldescription_functions.md",
"fmi2_lowlevel_library_functions.md",
"fmi2_lowlevel_ME_functions.md",
"fmi2_lowlevel_CS_functions.md",
],
],
"FMI3 specific content"=>Any[
"fmi3_lowlevel_library_constants.md",
"FMI3 Functions in FMI Import/Core .jl"=>Any[
"fmi3_lowlevel_modeldescription_functions.md",
"fmi3_lowlevel_library_functions.md",
"fmi3_lowlevel_ME_functions.md",
"fmi3_lowlevel_CS_functions.md",
"fmi3_lowlevel_SE_functions.md",
],
],
]
"API Index" => "index_library.md"
"FMI Tool Information" => "fmi-tool-info.md"
"Related Publication" => "related.md"
"Contents" => "contents.md"
hide("Deprecated" => "deprecated.md")
],
)

function deployConfig()
github_repository = get(ENV, "GITHUB_REPOSITORY", "")
github_event_name = get(ENV, "GITHUB_EVENT_NAME", "")
if github_event_name == "workflow_run"
github_event_name = "push"
end
github_ref = get(ENV, "GITHUB_REF", "")
return GitHubActions(github_repository, github_event_name, github_ref)
github_repository = get(ENV, "GITHUB_REPOSITORY", "")
github_event_name = get(ENV, "GITHUB_EVENT_NAME", "")
if github_event_name == "workflow_run"
github_event_name = "push"
end
github_ref = get(ENV, "GITHUB_REF", "")
return GitHubActions(github_repository, github_event_name, github_ref)
end

output = ""
try
global output = @capture_err begin
my_makedocs()
end;
global output = @capture_err begin
my_makedocs()
end
catch e
my_makedocs() # if it fails, re-run without capturing, so that its stderr appears in the console/logs
end
my_makedocs() # if it fails, re-run without capturing, so that its stderr appears in the console/logs
end

# errors = findall(r"Error:.*", output)
warns = findall(r"Warning:.*", output)

for w in warns
s = string("::warning title=Documenter-Warning::",output[w],"\r\n")
print(s)
s = string("::warning title=Documenter-Warning::", output[w], "\r\n")
print(s)
end

deploydocs(
repo = "github.com/ThummeTo/FMI.jl.git",
devbranch = "main",
deploy_config = deployConfig(),
repo = "github.com/ThummeTo/FMI.jl.git",
devbranch = "main",
deploy_config = deployConfig(),
)

0 comments on commit 7231939

Please sign in to comment.