Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace 'yihui/hugo-lithium-theme' with 'yihui/hugo-lithium' #291

Merged
merged 7 commits into from
Apr 18, 2018
Merged

replace 'yihui/hugo-lithium-theme' with 'yihui/hugo-lithium' #291

merged 7 commits into from
Apr 18, 2018

Conversation

rorynolan
Copy link
Contributor

@rorynolan rorynolan commented Apr 18, 2018

When I run blogdown::new_site() with the default theme = "yihui/hugo-lithium-theme", I get an error:

Rendering content/post/2015-07-23-r-rmarkdown.Rmd
Error: Unable to find theme Directory: /Users/rnolan/Dropbox/R/blog/themes/hugo-lithium-theme

Serving the directory /Users/rnolan/Dropbox/R/blog at http://127.0.0.1:5641
To stop the server, run servr::daemon_stop("4326078320") or restart your R session
Error in setwd(site.dir) : cannot change working directory

However I notice that even though there's no /Users/rnolan/Dropbox/R/blog/themes/hugo-lithium-theme, there is a /Users/rnolan/Dropbox/R/blog/themes/hugo-lithium. For reasons that I don't fully understand, when I run blogdown::new_site(theme = "yihui/hugo-lithium"), everything works fine. This may be because https://github.com/yihui/hugo-lithium-theme redirects to https://github.com/yihui/hugo-lithium, but I don't know. In any case, https://github.com/yihui/hugo-lithium seems to be in working order and I think it should all work fine with that as the new default.
Thanks Yihui and other authors and maintainers, your work makes our lives easier :)

When I run `blogdown::new_site()` with the default `theme = "yihui/hugo-lithium-theme"`, I get an error:
```
Rendering content/post/2015-07-23-r-rmarkdown.Rmd
Error: Unable to find theme Directory: /Users/rnolan/Dropbox/R/blog/themes/hugo-lithium-theme

Serving the directory /Users/rnolan/Dropbox/R/blog at http://127.0.0.1:5641
To stop the server, run servr::daemon_stop("4326078320") or restart your R session
Error in setwd(site.dir) : cannot change working directory
```
However I notice that even though there's no `/Users/rnolan/Dropbox/R/blog/themes/hugo-lithium-theme`, there is a `/Users/rnolan/Dropbox/R/blog/themes/hugo-lithium`. For reasons that I don't fully understand, when I run `blogdown::new_site(theme = "yihui/hugo-lithium-theme")`, everything works fine. This may be because https://github.com/yihui/hugo-lithium-theme redirects to https://github.com/yihui/hugo-lithium, but I don't know. In any case, https://github.com/yihui/hugo-lithium seems to be in working order and I think it should all work fine with that as the new default.
Thanks Yihui and other authors and maintainers, your work makes our lives easier :)
@rorynolan
Copy link
Contributor Author

Oops, hang on, some CI errors there that I think I can fix. Trying now.

@yihui yihui added this to the v0.6 milestone Apr 18, 2018
@yihui
Copy link
Member

yihui commented Apr 18, 2018

Ah. My bad. Thanks a lot for catching this issue!

@yihui
Copy link
Member

yihui commented Apr 18, 2018

I see you are tweaking the Rd file. If you install.packages("Rd2roxygen"), and use the button Install and Restart in RStudio, you will get my style. Thanks!

@yihui yihui merged commit c766c98 into rstudio:master Apr 18, 2018
yihui added a commit that referenced this pull request Apr 18, 2018
…` according to `newdir` because that is the actual folder name

this is a fundamental fix to #291
@rorynolan
Copy link
Contributor Author

Hi @yihui, there are also a few places in the blogdown book where "hugo-lithium-theme" needs to be changed to "hugo-lithium". Would you also like a PR to fix these?

@yihui
Copy link
Member

yihui commented Apr 19, 2018

@rorynolan Thanks! I have already changed them in the book in the commit 8ba2460 (I amended your PR). And the new version of blogdown is on CRAN now.

yihui added a commit that referenced this pull request Apr 19, 2018
@rorynolan
Copy link
Contributor Author

OK great work. Thanks for everything!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants