Skip to content

Commit

Permalink
Remove package interoperability tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobjpeters committed Aug 13, 2024
1 parent 95f7697 commit 434e8c6
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 71 deletions.
6 changes: 0 additions & 6 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
[deps]
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
Luxor = "ae8d54c2-7ccd-5906-9d76-62fc9837b5bc"
MakieTeX = "6d554a22-29e7-47bd-aee5-0c5f06619414"
TypstJlyfish = "95e5b356-b122-4883-a78a-3c8c946b7332"
Typstry = "f0ed7684-a786-439e-b1e3-3b82803b501e"

[compat]
CairoMakie = "0.12.3"
Documenter = "1"
Luxor = "3 - 4"
MakieTeX = "0.4.2"
TypstJlyfish = "0.1.0"
julia = "1.10"
39 changes: 25 additions & 14 deletions docs/source/guides/package_interoperability.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,35 @@ whereas IJulia.jl will support them in its next feature release.

`````@eval
using Markdown: Markdown
module X
include("../scripts/include_makie_tex.jl")
const s = read("../../../scripts/makie_tex.jl", String)
end
Markdown.parse("```julia-repl$(join(map(s -> "\njulia> " * s, split(strip(X.s), "\n")), "\n"))\n```")
`````
Markdown.parse("""```julia-repl
julia> using CairoMakie, MakieTeX
julia> f = Figure(; size = (100, 100))
![MakieTeX.jl](makie_tex.svg)
julia> LTeX(f[1, 1], TypstDocument(typst"\$ 1 / x \$"))
julia> save("makie_tex.svg", f)
```""")
`````

### TypstJlyfish.jl

`````@eval
module X
using Markdown: Markdown
include("../scripts/typst_jlyfish.jl")
const md = Markdown.parse("```typst\n$ts```\n```julia-repl\njulia> $_using\n\njulia> $compile\n```")
end
X.md
using Typstry: preamble
Markdown.parse("""```typst
$preamble#import "@preview/jlyfish:0.1.0": *
#read-julia-output(json("typst_jlyfish.json"))
#jl-pkg("Typstry")
#jl(`using Typstry; typst"\$1 / x\$"`)
```
```julia-repl
julia> using TypstJlyfish, Typstry
julia> TypstJlyfish.compile("typst_jlyfish.typ";
evaluation_file = "typst_jlyfish.json",
typst_compile_args = "--format=svg --font-path=\$julia_mono"
)
```""")
`````

![TypstJlyfish.jl](typst_jlyfish.svg)
5 changes: 0 additions & 5 deletions scripts/include_makie_tex.jl

This file was deleted.

5 changes: 0 additions & 5 deletions scripts/makie_tex.jl

This file was deleted.

18 changes: 0 additions & 18 deletions scripts/typst_jlyfish.jl

This file was deleted.

6 changes: 0 additions & 6 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
MakieTeX = "6d554a22-29e7-47bd-aee5-0c5f06619414"
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TypstJlyfish = "95e5b356-b122-4883-a78a-3c8c946b7332"
Typstry = "f0ed7684-a786-439e-b1e3-3b82803b501e"

[compat]
CairoMakie = "0.12.3"
Documenter = "1"
ExplicitImports = "1.6"
MakieTeX = "0.4.2"
TypstJlyfish = "0.1.0"
julia = "1.10"

[extras]
Expand Down
8 changes: 0 additions & 8 deletions test/interoperability/TestMakieTeX.jl

This file was deleted.

8 changes: 0 additions & 8 deletions test/interoperability/TestTypstJlyfish.jl

This file was deleted.

1 change: 0 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ test_strings(x, s; kwargs...) = @test TypstString(x; kwargs...) == s
"Utilities" => ["Aqua", "Documenter", "ExplicitImports"],
"Interface" => ["Strings", "Commands"],
"Extensions" => map(string, names),
"Interoperability" => ["MakieTeX", "TypstJlyfish"]
]
@info "Testing $description"
@testset "$description" begin
Expand Down

0 comments on commit 434e8c6

Please sign in to comment.