Closed maelle closed 2 years ago
Maybe too much :thinking:
What does this do for packages that have their own logo in the readme such as https://docs.ropensci.org/targets/
Nothing because find.logo(path)
is not NULL.
And pkgdown strips the logo in the README https://github.com/r-lib/pkgdown/blob/dcec859cab08ff8852f5ee5ab09f3f57ec038805/R/tweak-page.R#L85
We should test this on a few ropensci repos with actual logo's because when I implemented this, that part in pkgdown didn't work very well. Some ropensci packages my have logo's in slightly different ways.
Also note that the old code is using find_old_footer_banner()
to remove a legacy banner which we used to add to readme files (the banner is both ugly and redundant on docs.ropensci.org).
I'll come back to this next week or later, but listing a few packages with logos
Does this PR fix https://docs.ropensci.org/tradestatistics/ ?
Does this PR fix docs.ropensci.org/tradestatistics ?
No I think that logo does not live at a path where pkgdown would find it.
Furthermore regarding the sponsor image, should it be tweaked by the author so that it's not at the top?
targets website would look fine with this.
@jeroen would you mind having a look at this again? Thank you!
You have tested this on a few sites with custom logos, right?
Fix #21
Inject the logo so that pkgdown uses it everywhere (in head metadata but also all pages). Now, the problem is that if you use
build_ropensci_docs()
locally you end up with the logo in man/figures.