Skip to content

Commit 9de1d5f

Browse files
committed
update artifacts and docs
1 parent a9a1870 commit 9de1d5f

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

Artifacts.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[plotly_artifacts]
2-
git-tree-sha1 = "aa67a2d0c294419c5568a236d0fdf8de18af2bd6"
2+
git-tree-sha1 = "c89283c56ed8771a64f0c0e2d68f701c2ee65005"
33

44
[[plotly_artifacts.download]]
5-
sha256 = "9e8f6feca5d99705364e99f931e7b050965b23aed7599c3011a1408c2be75bda"
6-
url = "https://gist.github.com/joshday/9c5faed42fa19016ce0e5c5677c9ac4e/raw/aa67a2d0c294419c5568a236d0fdf8de18af2bd6.tar.gz"
5+
sha256 = "a1f86c107b645c4ace8713f071318f193777414601309d51d1b73a3c2be7395a"
6+
url = "https://gist.github.com/joshday/4aa57a979cf93d1b7a941282bb4dc5f2/raw/c89283c56ed8771a64f0c0e2d68f701c2ee65005.tar.gz"

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
1010
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
1111
EasyConfig = "acab07b0-f158-46d4-8913-50acef6d41fe"
1212
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
13+
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
1314

1415
[compat]
1516
Aqua = "0.8"
@@ -19,6 +20,7 @@ Dates = "1"
1920
Downloads = "1.6"
2021
EasyConfig = "0.1"
2122
JSON3 = "1.14"
23+
REPL = "1.11.0"
2224
julia = "1.7"
2325

2426
[extras]

deps/artifacts.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ plotly_url = "https://github.com/plotly/plotly.js/raw/$version/dist/plotly.min.j
1313
schema_url = "https://github.com/plotly/plotly.js/raw/$version/dist/plot-schema.json"
1414

1515
template_urls = Dict(
16-
t => "https://raw.githubusercontent.com/plotly/plotly.py/master/packages/python/plotly/plotly/package_data/templates/$t.json" for t in
16+
t => "https://raw.githubusercontent.com/plotly/plotly.py/refs/heads/main/plotly/package_data/templates/$t.json" for t in
1717
(:ggplot2, :gridon, :plotly, :plotly_dark, :plotly_white, :presentation, :seaborn, :simple_white, :xgridoff, :ygridoff)
1818
)
1919

docs/make.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ PlotlyLight.settings.use_iframe = true
66
makedocs(
77
sitename = "PlotlyLight",
88
modules = [PlotlyLight],
9-
format = Documenter.HTML(
10-
assets = [asset(PlotlyLight.plotly.url)]
11-
),
9+
format = Documenter.HTML(),
1210
pages = [
1311
"index.md",
1412
"plotly_basics.md",

src/PlotlyLight.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module PlotlyLight
33
using Artifacts: @artifact_str
44
using Downloads: download
55
using Dates
6+
using REPL
67

78
using JSON3: JSON3
89
using EasyConfig: Config
@@ -16,6 +17,9 @@ include("json.jl")
1617

1718
artifact(x...) = joinpath(artifact"plotly_artifacts", x...)
1819

20+
function __init__()
21+
end
22+
1923
#-----------------------------------------------------------------------------# plotly::PlotlyArtifacts
2024
Base.@kwdef struct PlotlyArtifacts
2125
version::VersionNumber = VersionNumber(read(artifact("version.txt"), String))
@@ -149,11 +153,9 @@ function Base.show(io::IO, ::MIME"text/html", o::Plot)
149153
show(io, MIME("text/html"), html_div(o))
150154
end
151155
Base.show(io::IO, ::MIME"juliavscode/html", o::Plot) = show(io, MIME("text/html"), o)
152-
Base.show(io::IO, ::MIME"text/plain", o::Plot) = Cobweb.preview(html_page(o), reuse=settings.reuse_preview)
153-
154-
# Base.display(::REPLDisplay, o::Plot) = Cobweb.preview(html_page(o), reuse=settings.reuse_preview)
155-
# Base.display(::REPLDisplay, ::MIME"text/plain", o::Plot) = Cobweb.preview(html_page(o), reuse=settings.reuse_preview)
156+
Base.show(io::IO, ::MIME"text/plain", o::Plot) = print(io, "PlotlyLight.jl Plot")
156157

158+
Base.display(::REPL.REPLDisplay, o::Plot) = Cobweb.preview(html_page(o); reuse=settings.reuse_preview)
157159

158160

159161
#-----------------------------------------------------------------------------# preset

0 commit comments

Comments
 (0)