This commit is contained in:
t-bltg 2022-04-05 14:01:21 +02:00
parent f1f6a368c5
commit b998fc56f4
2 changed files with 14 additions and 12 deletions

View File

@ -9,7 +9,7 @@ on:
jobs: jobs:
Build_docs: Build_docs:
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
@ -29,17 +29,14 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get update -y 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 \ ttf-mscorefonts-installer \
poppler-utils \ poppler-utils \
pdf2svg \
texlive-latex-base \
texlive-binaries \
texlive-pictures \
texlive-latex-extra \
texlive-luatex \
ghostscript-x \ ghostscript-x \
libgconf2-4 \ libgconf-2-4 \
qt5-default \
pdf2svg \
gnuplot gnuplot
- name: Install fonts - name: Install fonts
run: | run: |
@ -49,7 +46,6 @@ jobs:
url="$repo/releases/download/$ver/JuliaMono-ttf.tar.gz" url="$repo/releases/download/$ver/JuliaMono-ttf.tar.gz"
echo "downloading & extract url=$url" echo "downloading & extract url=$url"
wget -q "$url" -O - | tar -xz -C ~/.fonts wget -q "$url" -O - | tar -xz -C ~/.fonts
ls ~/.fonts
sudo fc-cache -vr sudo fc-cache -vr
fc-list | grep 'JuliaMono' fc-list | grep 'JuliaMono'
- name: Build documentation - name: Build documentation

View File

@ -294,7 +294,10 @@ function _show(io::IO, ::MIME"image/png", plt::Plot{UnicodePlotsBackend})
end end
Base.show(plt::Plot{UnicodePlotsBackend}) = show(stdout, plt) 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) # NOTE: _show(...) must be kept for Base.showable (src/output.jl)
function _show(io::IO, ::MIME"text/plain", plt::Plot{UnicodePlotsBackend}) 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 end
# we only support MIME"text/plain", hence display(...) falls back to plain-text on stdout # 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