ropensci-org / rotemplate

pkgdown template for rOpenSci packages :nail_care: :sparkles:
https://docs.ropensci.org/rotemplate
Other
25 stars 6 forks source link

On badges #95

Closed maelle closed 2 years ago

maelle commented 2 years ago

@mpadge @jeroen

pkgdown now no longer includes badges in the sidebar for released website.

How to include software review badges?

Visually, it could be a section like community but called "Software Review" with below the badges + a link to the issue not via the badge.

maelle commented 2 years ago

Example

issue_number <- 103
pkgdown::build_site(
  override = list(
    home = list(
      sidebar = list(
        structure = c("links", "license", "community", "citation", "authors", "softwarereview"),
        components = list(
          softwarereview = list(
            title = "Software Peer-Review",
            text = sprintf(
              "[![rOpenSci peer-review](https://badges.ropensci.org/%s_status.svg)](https://github.com/ropensci/software-review/issues/%s)",
              issue_number,
              issue_number
              )
          )
        )
      )
    )
  )
)

result

image

jeroen commented 2 years ago

@maelle I like that! Can we easily add this to build_ropensci_docs() in this pkg?

maelle commented 2 years ago

yes I'll try that!

mpadge commented 2 years ago

I agree - that looks great !