Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
RootedTrees = "47965b36-3f3e-11e9-0dcf-4570dfd42a8c"
SymPy = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

Expand Down
15 changes: 15 additions & 0 deletions src/RootedTrees.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,21 @@ end

@deprecate elementary_differential(t::RootedTree) elementary_differential_latexstring(t)

@doc """
elementary_differential(t::RootedTree)

Deprecated alias for [`elementary_differential_latexstring`](@ref).

# Examples

```julia
using RootedTrees

t = rootedtree([1])
elementary_differential_latexstring(t)
```
""" elementary_differential

"""
elementary_differential_latexstring(t::RootedTree)

Expand Down
17 changes: 17 additions & 0 deletions test/qa/public_api_docs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using RootedTrees
using Test

@testset "public API documentation" begin
public_names = filter(!=(:RootedTrees), names(RootedTrees; all = false, imported = false))

missing_docs = Symbol[]
for name in public_names
binding = Docs.Binding(RootedTrees, name)
Docs.hasdoc(binding) || push!(missing_docs, name)
end
@test isempty(missing_docs)

api_page = read(joinpath(pkgdir(RootedTrees), "docs", "src", "api_reference.md"), String)
@test occursin("@autodocs", api_page)
@test occursin("Modules = [RootedTrees]", api_page)
end
2 changes: 2 additions & 0 deletions test/qa/qa.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using SciMLTesting, RootedTrees, Test
using JET

include("public_api_docs.jl")

run_qa(
RootedTrees;
explicit_imports = true,
Expand Down
Loading