In order to publish
bookdown successfully to Posit Connect, the code has to identify that you're working with a book not a regular R Markdown document.When publishing
bookdown to Posit connect, make sure that your primary Rmd file is called index.Rmd and contains this line in the YAML:site: bookdown::bookdown_siteThe RStudio IDE (including inside Posit Workbench) will recognize that you are dealing with a book, and two things will happen:
- The Build Pane will appear in the UI with the option to build the book
- During push-button publishing, the dialogue will say "Publish website with source code" instead of "Publish document with source code", assuming you are using the default gitbook output.
A similar process is used to publish R Markdown websites.