Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Documenter.jl v1 and Julia v1.10 #3416

Merged
merged 5 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
3 changes: 2 additions & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

[compat]
Documenter = "0.27"
Documenter = "1"
julia = "1.10" # For jldoctest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know why this is required? Do you know how to use the latest stable release? (so that we do not have to update this file with every Julia release?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know why this is required? Do you know how to use the latest stable release?

Actually, I don't know. Perhaps caches are related and adding the julia compat resolved the version, I guess.

so that we do not have to update this file with every Julia release?)

This compat also accepts v1.11 and higher, so we don't have to update with every Julia release.
This entry should be updated when REPL outputs are changed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This entry should be updated when REPL outputs are changed.

This is the issue - we will not know if they had changed if we fix Julia version here.

8 changes: 4 additions & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ makedocs(
format = Documenter.HTML(
canonical = "https://juliadata.github.io/DataFrames.jl/stable/",
assets = ["assets/favicon.ico"],
edit_link = "main"
edit_link = "main",
size_threshold_ignore = ["man/basics.md", "lib/functions.md"],
bkamins marked this conversation as resolved.
Show resolved Hide resolved
),
pages = Any[
"Introduction" => "index.md",
Expand All @@ -42,11 +43,10 @@ makedocs(
hide("Internals" => "lib/internals.md"),
]
],
strict = true
)

# Deploy built documentation from Travis.
# =======================================
# Deploy built documentation.
# ===========================

deploydocs(
# options
Expand Down
4 changes: 2 additions & 2 deletions docs/src/man/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ A particular common case of a collection that supports the
a vector of `NamedTuple`s:
```jldoctest dataframe
julia> v = [(a=1, b=2), (a=3, b=4)]
2-element Vector{NamedTuple{(:a, :b), Tuple{Int64, Int64}}}:
2-element Vector{@NamedTuple{a::Int64, b::Int64}}:
(a = 1, b = 2)
(a = 3, b = 4)

Expand All @@ -460,7 +460,7 @@ You can also easily convert a data frame back to a vector of `NamedTuple`s:
julia> using Tables

julia> Tables.rowtable(df)
2-element Vector{NamedTuple{(:a, :b), Tuple{Int64, Int64}}}:
2-element Vector{@NamedTuple{a::Int64, b::Int64}}:
(a = 1, b = 2)
(a = 3, b = 4)
```
2 changes: 1 addition & 1 deletion src/abstractdataframe/iteration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ julia> eachrow(df)
4 │ 4 14

julia> copy.(eachrow(df))
4-element Vector{NamedTuple{(:x, :y), Tuple{Int64, Int64}}}:
4-element Vector{@NamedTuple{x::Int64, y::Int64}}:
(x = 1, y = 11)
(x = 2, y = 12)
(x = 3, y = 13)
Expand Down
Loading