The mlr-org.com website is created with Distill for R Markdown and published with GitHub Pages.
- Add a new post with
distill::create_post("Title of Post in Title Case"). The new post is created within the_posts/subdirectory. - Write the post. Place external images in the subdirectory.
- Call
rmarkdown::render("_posts/2022-02-22-example-post/example-post.Rmd")to render the post. - Run
rmarkdown::render_site(encoding = 'UTF-8')to render the website. The website is created within thedocs/directory. Openindex.htmlto check your post. - Run
rmarkdown::render("_posts/2022-02-22-example-post/example-post.Rmd")again or otherwise the rss feed is empty (https://github.com/rstudio/distill/issues/381) - Open a pull request and commit all changed files. Merged posts are published via GitHub Pages.
- The website consists of pages and blog posts.
- Pages are
.Rmdfiles located in the root directory (e.g.packages.Rmd). - Blog posts are stored in
_postandblog.Rmdautomatically list them. - Change the style only in
theme.cssand add comments to all changes. - The files in
docs/are the standalone static website which is published with GitHub Pages. Changes indocs/are overwritten byrmarkdown::render_site(). - See rstudio.github.io/distill to learn more about Distill.