Skip to content

Commit

Permalink
build/pkgs/sagemath_doc_*: Install links into SAGE_DOCS in postinst
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Oct 22, 2024
1 parent 58deba5 commit 58e30fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ jobs:
export SAGE_LIVE_DOC=yes
export SAGE_JUPYTER_SERVER=binder:sagemath/sage-binder-env/dev
./config.status && make SAGE_WHEELS=yes SAGE_EDITABLE=no sagemath_doc_html-no-deps sagemath_doc_pdf-no-deps
(cd local/var/lib/sage/ && zip /sage/sagemath_doc_wheels.zip wheels/sagemath_doc*.whl)
(cd venv/var/lib/sage/ && zip /sage/sagemath_doc_wheels.zip wheels/sagemath_doc*.whl)
shell: sh .ci/docker-exec-script.sh BUILD /sage {0}

- name: Copy live doc
Expand Down
7 changes: 7 additions & 0 deletions build/pkgs/sagemath_doc_html/spkg-postinst.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mkdir -p "${SAGE_DOC}"
cd "${SAGE_INST_LOCAL}/share/doc/sage"
for a in *; do
if [ -e "$a" -a ! -e "${SAGE_DOC}/$a" ]; then
ln -sf "${SAGE_INST_LOCAL}/share/doc/sage/$a" "${SAGE_DOC}/$a"
fi
done
1 change: 1 addition & 0 deletions build/pkgs/sagemath_doc_pdf/spkg-postinst.in

0 comments on commit 58e30fe

Please sign in to comment.