You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on #39, I also noticed that the Sphinx team have a second container image, spinxdoc/sphinx-latexpdf which they maintain in parallel to sphinxdoc/sphinx. The image is, as they caution, huge (2GB!), but the tradeoff is that it contains nearly all of the packages that users who run apt install <incredible amounts of texlive stuff> will be downloading anyway, every time they use the action.
Presumably GitHub caches docker images, whereas the apt install into the container can't be cached, so using the image would seem like a more efficient way of using latexpdf for those who need it. It might be too heavy to use for everysphinx-action run, but perhaps it could be offered as an alternate image?
I was thinking about how that could be done, and I think this would work (in action.yml):
inputs:
# ...latexpdf:
description:
Use a container with latexpdf and dependencies pre-installedrequired: falsedefault: falseruns:
- using: 'docker'if: ${{ inputs.latexpdf == false }}image: 'Dockerfile'
- using: 'docker'if: ${{ inputs.latexpdf == true }}using 'Dockerfile.latexpdf'
If that doesn't fly, or is just too messy, then maybe even publishing a second action based on sphinx_action, but using sphinxdoc/sphinx-latexpdf, would be worth it?
The text was updated successfully, but these errors were encountered:
While working on #39, I also noticed that the Sphinx team have a second container image, spinxdoc/sphinx-latexpdf which they maintain in parallel to
sphinxdoc/sphinx
. The image is, as they caution, huge (2GB!), but the tradeoff is that it contains nearly all of the packages that users who runapt install <incredible amounts of texlive stuff>
will be downloading anyway, every time they use the action.Presumably GitHub caches docker images, whereas the apt install into the container can't be cached, so using the image would seem like a more efficient way of using latexpdf for those who need it. It might be too heavy to use for every
sphinx-action
run, but perhaps it could be offered as an alternate image?I was thinking about how that could be done, and I think this would work (in
action.yml
):If that doesn't fly, or is just too messy, then maybe even publishing a second action based on
sphinx_action
, but usingsphinxdoc/sphinx-latexpdf
, would be worth it?The text was updated successfully, but these errors were encountered: