是否可以指定 rmd 文件渲染的顺序,按照 bookdown 的编译方式,从 index.Rmd 开始,其它页面按照指定的顺序来,比如有一个类似 _bookdown.yml 的文件
复现过程
# 生成一个自带的网站例子
rmarkdown:::site_skeleton(path = "minisite")
# 编译站点
rmarkdown::render_site(input = "minisite")
编译过程日志
Rendering: minisite/about.Rmd
|............................................................................................................................| 100%
ordinary text without R code
/Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS about.utf8.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output about.html --email-obfuscation none --standalone --section-divs --template /Library/Frameworks/R.framework/Versions/4.0/Resources/library/rmarkdown/rmd/h/default.html --no-highlight --variable highlightjs=1 --include-before-body /var/folders/j6/2zkth0qd5554mr82508xgj1c0000gn/T//RtmpdPDa60/rmarkdown-str60c96fc8e527.html --variable navbar=1 --variable body_padding=51 --variable header_padding=56 --variable 'theme:bootstrap' --include-in-header /var/folders/j6/2zkth0qd5554mr82508xgj1c0000gn/T//RtmpdPDa60/rmarkdown-str60c96e3c9cc6.html --mathjax --variable 'mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' --lua-filter /Library/Frameworks/R.framework/Versions/4.0/Resources/library/rmarkdown/rmd/lua/pagebreak.lua --lua-filter /Library/Frameworks/R.framework/Versions/4.0/Resources/library/rmarkdown/rmd/lua/latex-div.lua
Rendering: minisite/index.Rmd
|............................................................................................................................| 100%
ordinary text without R code
/Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS index.utf8.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output index.html --email-obfuscation none --standalone --section-divs --template /Library/Frameworks/R.framework/Versions/4.0/Resources/library/rmarkdown/rmd/h/default.html --no-highlight --variable highlightjs=1 --include-before-body /var/folders/j6/2zkth0qd5554mr82508xgj1c0000gn/T//RtmpdPDa60/rmarkdown-str60c97e988617.html --variable navbar=1 --variable body_padding=51 --variable header_padding=56 --variable 'theme:bootstrap' --include-in-header /var/folders/j6/2zkth0qd5554mr82508xgj1c0000gn/T//RtmpdPDa60/rmarkdown-str60c94f8b90ef.html --mathjax --variable 'mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' --lua-filter /Library/Frameworks/R.framework/Versions/4.0/Resources/library/rmarkdown/rmd/lua/pagebreak.lua --lua-filter /Library/Frameworks/R.framework/Versions/4.0/Resources/library/rmarkdown/rmd/lua/latex-div.lua
Output created: _site/index.html
目前逻辑上有点奇怪,似乎是按照目录下 rmd 文件的文件名的字母顺序来的