|
1 | 1 | # How to Build this site: |
2 | 2 |
|
3 | | -This site is built with R Markdown's website feature. [Read more about websites](http://rmarkdown.rstudio.com/lesson-13.html). |
| 3 | +This site is built with the [Distill website](https://blog.rstudio.com/2020/12/07/distill/) feature of RStudio. |
4 | 4 |
|
5 | | -1. Clone from Github to RStudio. Manipulate .Rmd files as needed. |
| 5 | +1. Use the "Build Website" button. Fromn the Build Tab (in the upper-right quadrant of the RStudio IDE) > Build Website |
6 | 6 |
|
7 | | -2. Use the "Build Website" button. Fromn the Build Tab (in the upper-right quadrant of the RStudio IDE) > Build Website |
8 | | - |
9 | | - - Some of these options, below, might also work. |
| 7 | + - Some of these options, below, might also work |
10 | 8 | - knit Rmd docs one at a time from within the script editor |
11 | | - - In console: `rmarkdown::render_site(encoding = 'UTF-8')` |
12 | 9 |
|
13 | | -3. Hosted by Netlify.com |
14 | | - |
15 | | - 1. After committing and pushing to github |
16 | | - 1. Login as the owner of the GitHub repo |
17 | | - 1. Separate tab, login to Netlify.com |
18 | | - 1. Associate Netlify New Site deploy with the GitHub Repo |
19 | | - 1. Associate Netlify to the `docs` subdir of the gitHub repo |
20 | | - 1. Now each GitHub commit will result in a new deploy on Netlify. |
21 | | - 1. You May want to check how the domains are handled on Netlify. And, you may want to check how redirects are handled, e.g. netlify.toml |
22 | | - |
23 | | - |
24 | | -**UPDATE-OLD No Longer in effect**, but keeping around b/c the code might be useful to me again some day. This script using `library(fs)` that creates a link from ~/blogdown/static/map to the "docs" directory. This script uses `library(here)` and `library(usethis)` to create a sym-link from one repo to another on my local file system. But this is clunky and so I've moved to the above, step 3 above. (`_ZZ_move_HTML-docs_to_blog-dir.Rmd`) |
| 10 | +3. Serve web pages via Netlify.com |
25 | 11 |
|
26 | | - - e.g. github repo served by Netlify |
27 | | - - in this case: rfun (blogdown-rfun2 on github) |
28 | | - - I'm manually copying the /docs directory into the *static/git* directory in rfun - https://github.com/data-and-visualization/blogdown2-rfun |
| 12 | + - See Also the netlify.toml config file |
0 commit comments