Skip to content

Commit

Permalink
Add support for non-Tuple iterators, improve docs and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisYatunin committed Sep 8, 2024
1 parent 91a30eb commit ebca47c
Show file tree
Hide file tree
Showing 25 changed files with 2,491 additions and 441 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ jobs:
matrix:
version:
- '1.10'
- '~1.11.0-0'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
exclude:
- version: '~1.11.0-0'
os: macOS-latest # JET crashes on one unit test and hangs on another
- version: '~1.11.0-0'
os: windows-latest # JET crashes on 3 unit tests
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
Expand Down
9 changes: 8 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name = "UnrolledUtilities"
uuid = "0fe1646c-419e-43be-ac14-22321958931b"
authors = ["CliMA Contributors <[email protected]>"]
version = "0.1.2"
version = "0.1.3"

[compat]
julia = "1.10"
StaticArrays = "1"

[weakdeps]
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[extensions]
UnrolledUtilitiesStaticArraysExt = "StaticArrays"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="logo-white.png">
<source media="(prefers-color-scheme: dark)" srcset="logo-dark.png">
<source media="(prefers-color-scheme: light)" srcset="logo.png">
<img alt="Shows the logo of UnrolledUtilities.jl" src="logo.png" width="480px">
</picture>
Expand Down
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
UnrolledUtilities = "0fe1646c-419e-43be-ac14-22321958931b"
31 changes: 20 additions & 11 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,37 @@ using Documenter

include(joinpath("..", "test", "test_and_analyze.jl"))

comparison_table_file = joinpath("docs", "src", "comparison_table.md")

open(comparison_table_file, "w") do io
println(io, "# Comparison Table\n```@raw html")
println(io, "<div style=\"width: max(80vw, 100%)\">") # use 80% of viewport
print_comparison_table(io, true)
println(io, "</div>")
println(io, "```")
comparison_tables_file = joinpath("docs", "src", "comparison_tables.md")
preamble_file = joinpath("docs", "src", "comparison_tables_preamble.md")
cp(preamble_file, comparison_tables_file; force = true)
open(comparison_tables_file, "a") do io
for (title, comparison_table_dict) in comparison_table_dicts
print_comparison_table(title, comparison_table_dict, io)
end
end

makedocs(;
sitename = "UnrolledUtilities.jl",
modules = [UnrolledUtilities],
pages = ["Home" => "index.md", "Comparison Table" => "comparison_table.md"],
pages = [
"Home" => "index.md",
"Introduction" => "introduction.md",
"User Guide" => "user_guide.md",
"Developer Guide" => "developer_guide.md",
"Comparison Tables" => basename(comparison_tables_file),
],
format = Documenter.HTML(
prettyurls = get(ENV, "CI", nothing) == "true",
size_threshold_ignore = ["comparison_table.md"],
sidebar_sitename = false,
size_threshold_ignore = [
"introduction.md",
basename(comparison_tables_file),
],
),
clean = true,
)

rm(comparison_table_file)
rm(comparison_tables_file)

deploydocs(
repo = "github.com/CliMA/UnrolledUtilities.jl.git",
Expand Down
2 changes: 1 addition & 1 deletion logo-white.svg → docs/src/assets/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
131 changes: 131 additions & 0 deletions docs/src/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ebca47c

Please sign in to comment.