Repository navigation
Update documentation for render_book(). - #931
j-magnolia wants to merge 0 commit into
Conversation
|
Thanks ! |
| ## MINOR CHANGES | ||
|
|
||
| - The `--file-scope` behavior introduced in bookdown v0.20 is now disabled by default. This is due to broken TOC links for duplicate section names (e.g., "Exercises"; see #909) that have automatically generated identifiers. | ||
| - Updated documentation for `render_book` to make it clearer how options are set for the `output_format` parameter (See #930). |
There was a problem hiding this comment.
As below, syntax is
(thanks, @yourname, #prnumber)Thanks!
There was a problem hiding this comment.
I feel rmarkdown::render might be a better place to document this behavior: https://github.com/rstudio/rmarkdown/blob/204aa41faea12212dc80642f5a8e53e4e52e0999/R/render.R#L158-L165 because bookdown::render_book's output_format is eventualy passed to rmarkdown::render. The original issue #930 was not specific to bookdown but any R Markdown documents/projects.
What do you think?
|
I think @yihui makes sense in saying that the documentation fits better into rmarkdown, but it would be useful to put a modicum of documentation into bookdown alerting people to look at the rmarkdown documentation. If you all want, I can write up some small PRs, one for rmarkdown documenting this behavior and the other for bookdown alerting the user to go look in rmarkdown for details. I'll defer to what you all would like. |
|
Yeah it is right. This should be in # will use the default format defined in _output.yml
bookdown::render_book("index.Rmd")
# will use the options for format defines in yaml
bookdown::render_book("index.Rmd", "pdf_book")
# If you pass an output format, it must have all the options set
bookdown::render_book("index.Rmd", bookdown::pdf_book(toc = FALSE))and I would add the link to https://bookdown.org/yihui/bookdown/build-the-book.html in a reference part of this help page. We could also have |
|
Closed this and created a new PR #933 following the suggestions from the discussion above. I also created a PR in rmarkdown (rstudio/rmarkdown#1880) |
Add details about how the options are set for the output_format parameter to documentation for render_book() function. See discussion in comments to #930.