Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev version not rendering correctly with GitHub Actions #1748

Closed
mfherman opened this issue Aug 18, 2021 · 2 comments
Closed

Dev version not rendering correctly with GitHub Actions #1748

mfherman opened this issue Aug 18, 2021 · 2 comments

Comments

@mfherman
Copy link

@mfherman mfherman commented Aug 18, 2021

I'm trying to set up GitHub Actions to build a pkgdown site for my package. I used this template and everything was working well. But, then I wanted to try to use the dev version of pkgdown because I love the new template. I am able to get actions to build the site with the dev version of pkgdown, but it seems like the references to the deps/ directory which contains bootstrap, jquery, etc. are incorrect and so the site is displayed with pretty much no formatting (see here).

When I examine the HTML generated by pkgdown, the links to the dependencies begin private/deps/..., but there is no private/ directory on the branch with the pkgdown site.

https://github.com/CSGJCResearch/csgjcr/blob/a7d30d2ab548d5f2273237e21932fa87ecb027a9/index.html#L11-L14

Additionally, when I build the site locally (i.e not using GH actions), it builds correctly and contains links to the correct folder with the dependencies.

I'm very much a GH actions beginner, so I'm not sure if it's something in the configuration there or a pkgdown issue.

I posted this question on RStudio Community, but haven't received any responses over there.

@maelle
Copy link
Collaborator

@maelle maelle commented Aug 23, 2021

👋 @mfherman!

I can't explore right now but I know of another package whose website seemed to build correctly on GHA, here's the workflow: https://github.com/OpenIntroStat/openintro/blob/master/.github/workflows/pkgdown.yaml 🤔

@mfherman
Copy link
Author

@mfherman mfherman commented Aug 23, 2021

It's working now 🎉! Honestly not sure where the issue was in the original workflow I was using to build and deploy the site, but using the one you linked to worked with my repo. Thanks @maelle!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants