update
This commit is contained in:
parent
f1f6a368c5
commit
b998fc56f4
16
.github/workflows/docs.yml
vendored
16
.github/workflows/docs.yml
vendored
@ -9,7 +9,7 @@ on:
|
||||
|
||||
jobs:
|
||||
Build_docs:
|
||||
runs-on: ubuntu-18.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
@ -29,17 +29,14 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y qt5-default \
|
||||
sudo apt-get install -y \
|
||||
texlive-{latex-{base,extra},binaries,pictures,luatex} \
|
||||
ttf-mscorefonts-installer \
|
||||
poppler-utils \
|
||||
pdf2svg \
|
||||
texlive-latex-base \
|
||||
texlive-binaries \
|
||||
texlive-pictures \
|
||||
texlive-latex-extra \
|
||||
texlive-luatex \
|
||||
ghostscript-x \
|
||||
libgconf2-4 \
|
||||
libgconf-2-4 \
|
||||
qt5-default \
|
||||
pdf2svg \
|
||||
gnuplot
|
||||
- name: Install fonts
|
||||
run: |
|
||||
@ -49,7 +46,6 @@ jobs:
|
||||
url="$repo/releases/download/$ver/JuliaMono-ttf.tar.gz"
|
||||
echo "downloading & extract url=$url"
|
||||
wget -q "$url" -O - | tar -xz -C ~/.fonts
|
||||
ls ~/.fonts
|
||||
sudo fc-cache -vr
|
||||
fc-list | grep 'JuliaMono'
|
||||
- name: Build documentation
|
||||
|
||||
@ -294,7 +294,10 @@ function _show(io::IO, ::MIME"image/png", plt::Plot{UnicodePlotsBackend})
|
||||
end
|
||||
|
||||
Base.show(plt::Plot{UnicodePlotsBackend}) = show(stdout, plt)
|
||||
Base.show(io::IO, plt::Plot{UnicodePlotsBackend}) = _show(io, MIME("text/plain"), plt)
|
||||
function Base.show(io::IO, plt::Plot{UnicodePlotsBackend})
|
||||
prepare_output(plt)
|
||||
_show(io, MIME("text/plain"), plt)
|
||||
end
|
||||
|
||||
# NOTE: _show(...) must be kept for Base.showable (src/output.jl)
|
||||
function _show(io::IO, ::MIME"text/plain", plt::Plot{UnicodePlotsBackend})
|
||||
@ -361,4 +364,7 @@ function _show(io::IO, ::MIME"text/plain", plt::Plot{UnicodePlotsBackend})
|
||||
end
|
||||
|
||||
# we only support MIME"text/plain", hence display(...) falls back to plain-text on stdout
|
||||
_display(plt::Plot{UnicodePlotsBackend}) = (show(stdout, plt); println(stdout))
|
||||
function _display(plt::Plot{UnicodePlotsBackend})
|
||||
show(stdout, plt)
|
||||
println(stdout)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user