-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amend vignette-name rule for "Get Started"? #1166
Comments
Yes, that sounds reasonable, and a PR would be helpful, thanks! |
A related question/feature request (hence my asking here): could the "Get started" rule also apply to article names i.e. if there's a non-vignette article called pkg.Rmd, could it be detected? |
@maelle from a quick look at the code, I think should already be the case? Specifically, how is your article not a vignette? |
Sorry if I'm missing something. It's under vignettes/articles (website) |
I'm now also wondering whether it'd make sense to have these live under articles/filename.html instead of articles/articles/filename.html. 🤔 but this is getting off topic for this issue. For info I used |
Oh now I remembered; the vignette "name" includes the path, so you get |
Thank you 😺 |
As I am researching another naming issue for vignettes I stumbled on this. I can see how this solution could lead to naming collisions: acme.data could some perhaps later create an acmedata package? |
This question was spurred by this vignette naming discussion at r-lib/usethis#830 - the gist was:
If a package name has a dot, e.g.
acme.data
, we cannot have a vignette with the same name because vignette names cannot contain dots. The motivation was to have a "Get Started" article on a pkgdown site.As far as I know, the dot is the only legal delimiter character (non alphanumeric) in a package name.
To get around this, could the pkgdown rule be amended to "strip" any dots from package names?
This way, a package
acme.data
could have a pkgdown "Get Started" vignette namedacmedata.Rmd
.Here's (what I think is) the operative line:
pkgdown/R/navbar.R
Line 71 in d1d10cf
Could something like this be useful?
If so, happy to make a PR. Thanks!
The text was updated successfully, but these errors were encountered: