The logo on my pkgdown website is failing to load, but it appears on the Readme.

Hi,

The logo on my pkgdown website is failing to load, but it appears on the Readme. I am using the latest version of pkgdown (2.0.1).

Please help me debug this issue.

Thanks

2 Likes

The README itself seems fine, but i note you’ve got the entire docs folder in your default (“master”) branch, and that also includes copies of all pgkdown files including logo.png. That folder should be on the gh-pages branch only, and is updated by the pkgdown workflow, so I’d try removing that first?

3 Likes

There’s no package URL in the configuration file, I think that’s also why the image is missing from the homepage.

See https://github.com/Shelmith-Kariuki/rddharmony/pull/1 (and pkgdown::pkgdown_sitrep() would check the URL presence by the way).

I’d second @mpadge’s advice regarding deleting the docs folder. You might want to re-run use_github_action("pkgdown") and overwrite the existing workflow file as it seems a few things have changed in the pkgdown workflow template (nothing dramatic but better to use the latest version I think).

3 Likes

Thank you so much @mpadge. I will work on that this weekend. I keep learning every day.

1 Like

Thank you so much @maelle. I will work on the changes and get back to you.

2 Likes