-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Quarto website not rendering custom theme from GitHub Action #95
Comments
Could you share the project configuration and a sample QMD that is causing the issue? One common issue is specifying the theme on an individual page rather than globally in the project In Quarto 1.4 we did add a warning for this case to alert users to this situation... |
Thank you for your prompt reply. format:
html:
minimal: true
from: markdown+emoji
date-modified: last-modified
highlight: null
mathjax: null
html-math-method: plain
theme:
light: [scss/common.scss,scss/light.scss]
dark: [scss/common.scss,scss/dark.scss] Let me specify that the issue occurs on all pages. |
OK well that should confirm it isn't related to per page themes - thanks for that. It isn't a ton to go on (and the fact that it isn't working on any version of Quarto that you are trying making) without being able to troubleshoot specifically (especially since changing Quarto versions doesn't appear to resolve the issue). Some ideas to help troubleshoot:
Sorry I don't have a quick answer but I'm not sure what could be causing this across Quarto versions. FWIW we use a custom theme on the |
I did a quick history check. I will try your suggestions after the holidays. |
Can you share the netlify configuration in your github action ? As this happens only from Action and this is not clear how quarto is involved, I wonder if this can come from the way We use an netlify JS client library but an old version as we deploy with it, and now deployment is integrated with the CLI. Can you try the following to help see if this could be that
We use this workflow for deploying our preview version (for PR) in Quarto web. See example at: https://github.com/quarto-dev/quarto-web/blob/main/.github/workflows/preview.yml This is a long shot, as we use Otherwise, if we can have access to your repo, this would help have a look to see if something stands out and we could investigate. I feel that without a reproducible example to work with, it will be hard for us to investigate more |
First, best whish for this new year! I tried your suggestion by using " nwtgck/actions-netlify@v2" as the proposed example in Here is the snippet for the deployment. - name: Deploy to Netlify
id: netlify-deploy
uses: nwtgck/actions-netlify@v2
env:
NETLIFY_SITE_ID: XXXXX-XXXXX-XXXXX-XXXXX-XXXX
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
with:
publish-dir: './_site'
production-deploy: true
deploy-message: |
Deploy from GHA However, I am unsure why, but I have tested using |
I have a Quarto website with a custom theme (i.e.
custom.scss
) hosted on Netlify.Recently, I have a strange behavior when deploying with GitHub Action: my custom theme is no longer rendered! I checked the generated
bootstrap.min.css
and none of my customizations are there.Everything works fine when rendering locally (i.e.
quarto preview
) or publishing directly (i.e.quarto publish
) to Netlify: in both cases, my custom theme is properly generated and can be found inbootstrap.min.css
.Since publishing to Netlify from the shell command works fine (i.e. my custom theme can be found on my website), I don't think this is related to a Netlify caching issue, as reported on community.rstudio.
Example of local rendering or when published directly (i.e.
quarto publish
) to NetlifyBad result using GitHub Action
Below are the content of my
_deploy.yml
The text was updated successfully, but these errors were encountered: