I am building my first site using r blogdown following Yihui's book.
It succeeded in the first deployment on netlify.
Then I tried to remove all example posts by deleting the folders of them which makes the contents an empty folder.
With blogdown::build_site(), it returns:
β Check complete: config.yaml
β Checking .gitignore
| Checking for items to remove...
β Nothing to see here - found no items to remove.
| Checking for items you can safely ignore...
β [TODO] You can safely add to .gitignore: .DS_Store, Thumbs.db
| Checking for items to ignore if you build the site on Netlify...
β Found! You have safely ignored: public
β [TODO] When Netlify builds your site, you can safely add to .gitignore: resources
β Check complete: .gitignore
β Checking Hugo
| Checking Hugo version...
β Found Hugo. You are using Hugo 0.80.0.
| Checking .Rprofile for Hugo version used by blogdown...
β blogdown is using Hugo 0.80.0 to build site locally.
β Check complete: Hugo
β Checking netlify.toml...
β Found HUGO_VERSION = 0.80.0 in [build] context of netlify.toml.
| Checking that Netlify & local Hugo versions match...
β It's a match! Blogdown and Netlify are using the same Hugo version (0.80.0).
| Checking that Netlify & local Hugo publish directories match...
β Good to go - blogdown and Netlify are using the same publish directory: public
β Check complete: netlify.toml
β Checking content files
| Checking for validity of YAML metadata in posts...
β All YAML metadata appears to be syntactically valid.
| Checking for previewed content that will not be published...
β Found 0 files with future publish dates.
β Found 0 files marked as drafts.
| Checking your R Markdown content...
β All R Markdown files have been knitted.
β All R Markdown output files are up to date with their source files.
| Checking for .html/.md files to clean up...
β Found 0 duplicate .html output files.
β Found 0 incompatible .html files to clean up.
| Checking for the unnecessary 'content/' directory in theme...
β Great! Your theme does not contain the content/ directory.
β Check complete: Content
Netlify failed again:
11:50:27 AM: Build ready to start
11:50:29 AM: build-image version: d84c79427e8f83c1ba17bcdd7b3fe38059376b68
11:50:29 AM: build-image tag: v3.6.1
11:50:29 AM: buildbot version: b5aa40ef41f8f8b302713d535e9a3180a3b0e301
11:50:29 AM: Building without cache
11:50:29 AM: Starting to prepare the repo for build
11:50:30 AM: No cached dependencies found. Cloning fresh repo
11:50:30 AM: git clone https://github.com/xiangli-xl/xiangli-xl.github.io
11:50:30 AM: Preparing Git Reference refs/heads/master
11:50:32 AM: Failing build: Failed to parse configuration
11:50:32 AM: Failed during stage 'Reading and parsing configuration files':
Base directory does not exist: /opt/build/repo/xiangli-xl.github.io
: exit status 1
11:50:32 AM: Finished processing build request in 2.581551856s