Skip to content

Conversation

@salim-b
Copy link
Contributor

@salim-b salim-b commented Feb 23, 2021

looking for a _pkgdown.yml, _pkgdown.yaml, pkgdown/_pkgdown.yml and/or inst/_pkgdown.yml file

looking for a `_pkgdown.yml`, `_pkgdown.yaml`, `pkgdown/_pkgdown.yml` and/or `inst/_pkgdown.yml` file
@krlmlr
Copy link
Member

krlmlr commented Feb 24, 2021

Thanks! I'll pick it up when I next work on rprojroot/here.

@jennybc
Copy link
Member

jennybc commented Feb 24, 2021

What's the scenario where the above makes something recognizably a project and no other existing criterion does?

Am I just failing to see a usage pattern that I happen not to share?

@salim-b
Copy link
Contributor Author

salim-b commented Feb 25, 2021

@jennybc I'd simply like to have a standardized way to check if a specific directory is set up for pkgdown. I could use it e.g. as follows:

is_pkgdown_dir <- function(path = ".") {
  rprojroot::is_pkgdown_project$testfun %>%
      purrr::map_lgl(~ .x(path = path)) %>%
      any()
}

@salim-b
Copy link
Contributor Author

salim-b commented Mar 10, 2022

Hey @krlmlr, any update on this?

@krlmlr krlmlr merged commit 43bce71 into r-lib:main Mar 25, 2022
@krlmlr
Copy link
Member

krlmlr commented Mar 25, 2022

Thanks!

@salim-b salim-b deleted the add-is-pkgdown branch March 25, 2022 21:45
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants