Closed chris-prener closed 6 years ago
Let's try to solve these issues one by one. The first one should be easy. The warning message about config.toml
means you need to do what the message tells you to do.
thanks @yihui - really appreciate your response. That is fixed now - no longer getting the warning. I checked the serve_site()
issue and it persists (not sure if its related to the first or not?). Thanks for your help!
Does the development version of servr help?
# restart R, and
devtools::install_github('yihui/servr')
it doesn't, unfortunately... the only pattern I can identify here is that it is related to pages stored in subdirectories of content/
. I have a couple of different blogdown
sites and the lack of output from serve_site()
is consistent across all of them. But the sites that use subdirectories for different pages are where I am no longer seeing changes to the .md
registered in the .html
. Thanks again for trying to help - these are sites for my courses and I'd love to get them up and running again!
The reason that serve_site()
no longer gives output in the console is because RStudio 1.1.447 has a bug about ANSI Escape Codes. You can either apply the fix here: https://github.com/rstudio/rstudio/issues/2248#issuecomment-371373135, or test RStudio daily: https://dailies.rstudio.com.
I guess the reason LiveReload no longer works is because you updated Hugo. Previously you were using Hugo 0.30:
Now you upgraded to 0.40.2:
I don't have time to check what exactly the change it was that caused the breakage (way too many changes between these two versions: https://github.com/gohugoio/hugo/releases), but a quick way to revert to the previous version of Hugo:
blogdown::install_hugo('0.30', force = T, use_brew = F)
I guess you installed Hugo via Homebrew, so you may also uninstall it (no need to keep two versions):
system('brew remove hugo')
Remember to restart R after installing/uninstalling Hugo.
You can also use different versions of Hugo for different websites; see the blogdown.hugo.dir
option at https://bookdown.org/yihui/blogdown/more-global-options.html (you can set it per project).
thanks @yihui - the life preserver here much appreciated. I'm happy to run on the older version of hugo so long as I can keep maintaining my sites!
Excellent! It is a huge advantage of Hugo that you can easily use a specific version of Hugo because it is just a single small standalone binary.
BTW, the course website looks gorgeous! I really like it.
Thanks @yihui - the site is a work in the progress but I'm really happy with how it is coming together!
hey @yihui - quick update - I had to deal with some Hugo related issues on a different site and discovered that the issues I had with Hugo v0.40.2 have been fixed in v0.40.3.
Very glad to hear that! Thanks for posting back!
Hey @yihui - thanks so much for such a fantastic package - I've been using it for a number of different sites and really love how it works.
However, I've started having some issues with both the CRAN and development versions of
blogdown
on a site. I've noticed thatserve_site()
no longer produces output in my console:If I run
blogdown
through a terminal, however, I get the expected updates each time the LiveReload occurs:This issue is consistent across multiple different blogdown sites.
Beyond this inconsistency,
serve_site()
no longer seems to be processing updated files. If I make a small change, like adding a word to any page other than the mainindex.md
file for my site, the change will not be rendered and I can't see it on the preview version in the Viewer tab or by opening up the preview version of the site in my browser. The same goes forbuild_site()
.This was all working as recently as three days ago, when I last updated the site in question. When I first ran into these issues and couldn't solve them, I updated my version of
R
to 3v.5 (I had been on v3.4.3) and updated to the latest release for RStudio v1.1.447. These updates did not help, nor did changing from the CRAN release version ofblogdown
to the development version. Other blogdown sites that I have to not appear to have this specific problem, but I don't get any error messages in either the console or the terminal when I go to serve the site.Here is my session info:
Thanks for your help attempting to locate what is happening here!