-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
rmd_subdir in _bookdown.yml ignores plain Markdown files #956
Comments
Hi ! I had a look at this By default, if no Let's note you can use paths to the file in subdirectory using rmd_files: ["index.Rmd", "other/abstract.md"] @yihui in the book it is said
Will that What do you think on this one ? Thanks. |
Hi @cderv You are quite correct. If you use the The current
I believe using both would address your concerns about README.md files in the top-level directory without having to make any special exceptions. Therefore, I think the What do you think? |
IMO Currently, I see several solutions :
Maybe first option is the best to provide this feature for people who want it - but it adds another option 😕 |
@cderv I'll defer to your knowledge and experience here. Cheers! |
since atm bookdown does not track md files unless explicitly stated in rmd_files rstudio/bookdown#956
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Would you accept a PR to fix this? If so, which of the options would you like to be implemented? |
Sure we would accept PR. @yihui do you have any insight on a preferred solution ? Personally, the one with minimum impact to current project would be to prefer. So probably an opt-in to this. |
BTW - Here is my current workaround: In R:
In
|
Perhaps the first option? i.e., BTW, in litedown, I'll use both .Rmd and .md by default. The rules are here: https://github.com/yihui/litedown/blob/1c70dd31346fe902d765d0263d7fa70acd603c4c/R/site.R#L162-L166 |
PR here: #1483 |
Thanks @katrinabrock !! |
The
rmd_subdir
option in the_bookdown.yml
file only works for a subdirectory that contains R Markdown files (.Rmd), not for a subdirectory containing plain Markdown files (.md). However, the bookdown documentation seems to suggest that plain Markdown should work:By filing an issue to this repo, I promise that
xfun::session_info('bookdown')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/bookdown')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: