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 2a6262f
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#

import Pkg;
Pkg.develop(path = joinpath(@__DIR__, "../../FMI.jl"));
Pkg.develop(path=joinpath(@__DIR__, "../../FMI.jl"));
using Documenter, Plots, JLD2, DataFrames, CSV, MAT, FMI, FMIBase, FMIImport, FMICore
using Documenter: GitHubActions
using Suppressor
Expand All @@ -23,23 +23,23 @@ example_pages = [
]

my_makedocs() = makedocs(
sitename = "FMI.jl",
format = Documenter.HTML(
collapselevel = 1,
sidebar_sitename = false,
edit_link = nothing,
size_threshold = 512000,
size_threshold_ignore = [
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[
modules=[FMI, FMIImport, FMICore, FMIBase],
checkdocs=:exports,
linkcheck=true,
warnonly=:linkcheck,
pages=Any[
"Introduction" => "index.md"
"Features" => "features.md"
"FAQ" => "faq.md"
Expand Down Expand Up @@ -93,21 +93,21 @@ output = ""
try
global output = @capture_err begin
my_makedocs()
end;
end
catch e
my_makedocs() # if it fails, re-run without capturing, so that its stderr appears in the console/logs
end
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")
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 2a6262f

Please sign in to comment.