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