How to render documents in sub-directories with rmarkdown::render_site()?

Viewed 918

For example I have a markdown file called index.md in the root folder and another markdown file in a subfolder called docs/tools/git.md. When I run render_site(), index.html is generated from index.md, but no document is generated from docs/tools/git.md.

The help page of rmardown::render_site says:

R Markdown (.Rmd) and plain markdown (.md) files in the root directory are rendered.

I have tried to add include: ["docs/tools/git.md"] to the _site.yml but this doesn't help.

This question is related, but I already know how to work with sub directories in knitr.

What I want to know is how to render documents in sub-directories with rmarkdown::render_site()?

0 Answers
Related