3 Web Publishing
One of the easiest ways to share and get feedback on your thesis is by publishing it as its own website. bookdown—in tandem with GitHub and Netlify—makes this easy to do, even if you don’t have prior experience with web publishing:
Complete Steps 1-6 in [Getting Started With Git][With Git (Recommended)].
Create a Netlify account, using your GitHub account to sign up.
Create a new Netlify site without connecting to Git by dragging an empty folder into the “Want to deploy a new site without connecting to Git? Drag and drop your site folder here” box.
Add your Netlify API ID and a Netlify Authorization Token to your GitHub Secrets in your repository.
Modify the R version on line 16 of
.github/workflows/bookdown.yaml
to match the R version you plan to use for this project.Either (a) use
renv::restore()
to re-install the exact packages declared in the project lockfilerenv.lock
4, or (b) userenv::init()
to re-initialize the project with a brand new project library5.Commit and push any changes to your repository—this will trigger GitHub Actions to build your book and deploy it to Netlify.
Replace the GitHub Actions build status badge and Netlify deployment status badge in
README.md
with the badge URLs from your own GitHub repository and Netlify site.