lsms-worldbank / adodown

Tools for building Stata package documentation websites
https://lsms-worldbank.github.io/adodown/
3 stars 0 forks source link

Command to include logo in package #20

Open arthur-shaw opened 6 months ago

arthur-shaw commented 6 months ago

Inspired by usethis::use_logo(), this adodown command could do some or all of the following:

Here's an example of the Markdown/HTML needed; here's the result of the example.

kbjarkefur commented 6 months ago

I am mostly concerned about getting a version of adodown out that does not crash.

Re confirming the logo is the right dimensions/spec.

Put the logo in the right place in the package file system

Will this be for the web documentation as well? If not, then I think we can just write some documentation for how to do this, but not worrying about our R pacakge to do anything of that.


Let me know what you think!

arthur-shaw commented 6 months ago

Wups, it seems I put this issue in the wrong place. I'd meant for adodown to have a command for placing the image in the right place.

On the image location--agreed--let's go with src/dev/assets.

arthur-shaw commented 5 months ago

As an additional consideration, the image should be placed like this:

# pkg_name

<img src='src/dev/assets/logo.png' align="right" height="139" />

Avoid placing it like this (i.e., how it works in pkgdown), since doing so would put the image in the TOC of the Quarto site:

# pkg_name <img src='src/dev/assets/logo.png' align="right" height="139" />