Skip to content

Commit

Permalink
Fix an issue with my approach to making index.html
Browse files Browse the repository at this point in the history
Bookdown still wants to use the README.md title so I did copy rather
than a rename so both HTML files exist.
  • Loading branch information
amoeba committed Jul 30, 2019
1 parent 808fb1f commit 33d7f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/build_book.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

bookdown::render_book("index.Rmd", "bookdown::gitbook")

# Rename the HTML Bookdown produces from the ../README.md file to index.html
file.rename("_book/eml-ecological-metadata-language.html", "_book/index.html")
# Copy the HTML Bookdown produces from the ../README.md file to index.html
file.copy("_book/eml-ecological-metadata-language.html", "_book/index.html")

# Copy the Oxygen XML schema docs into the book
system(paste("cp -r", "./schema", "./_book/schema"))

0 comments on commit 33d7f6b

Please sign in to comment.