-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
Problem with blogdown::new_site using starter-hugo-academic #638
Comments
Same problem from a Windows system with the dev version of Rstudio. The problem looks common among users. See the discussion starting also by Jen here rbind/apreshill#44 (comment). I used to be a user of the |
I can confirm this is an issue currently. For context, Academic is a theme that requires Go to work because it is using Hugo Modules, so officially the installation step have a prerequisite for Go to be installed when working locally : https://wowchemy.com/docs/getting-started/install-hugo-extended/#prerequisites In blogdown, we have tried to bypass this so that Go is not needed. It was done in da068a7 It seems that it no more works as expected. The Go module in question is correctly downloaded from Github, but it is not extracted correctly because what we expect is not there anymore. I believe this has to do with a very recent change in hugo academic starter kit. So I think this is the cause of the issue with bookdown. We'll look into that |
After looking into this, I think it got more complicated to get around the Go requirement to make this theme works asis with Here are some notes on my deep dive into Go modules :) We need to take into account more cases about how Go modules is handled.
By using both files we should be able to download and install the right thing. Still a workaround though. Best thing would be to have a try at following the theme installation instruction with the go requirement. However, blogdown may still lack support for config directory #611 Anyway, i'll keep having a look into this. |
@cderv So, as of now, there's absolutely no way to create a site by blogdown using the Hugo Academic theme ? :( |
The main issue is that the Academic theme requires Go to be installed to create the site. This is because the Hugo theme is a Go module of the starter site (Hugo Modules. blogdown does not handle Go currently and use workaround. So it could probably work with Manual step, but I did not tried it (yet):
Maybe after this, it will work with blogdown. We are sorry for this inconvenience. The Academic theme went a direction with a Go dependency which is not great for our R tooling only. We are working on it to see how we can support again the Academic theme. In case you don't know, we have been working on a new theme with a lot a feature that could in some case replace the Academic theme: https://hugo-apero-docs.netlify.app/ @apreshill do you have more insights on current workaround for this ? |
If you must use Hugo Wowchemy, for now, you must follow the developer's installation instructions to a "T": https://wowchemy.com/docs/getting-started/install/ Blogdown had previously attempted to help shield users from the new Go module infrastructure that Wowchemy has adopted, which @cderv described above, and which I documented here: https://alison.rbind.io/blog/2020-12-new-year-new-blogdown/. That workflow unfortunately stopped working due to some upstream changes made in the Wowchemy repos. I was able to get a new site sort of hobbling along by following the Wowchemy install instructions, then manually moving the But I cannot work with the theme packaged as Go modules easily locally, so I did develop a Hugo theme that has very similar features: https://hugo-apero-docs.netlify.app/ There is a "get started" section here that attempts to be very thorough (feedback welcome): https://hugo-apero-docs.netlify.app/start/ Some example websites: https://hugo-apero-docs.netlify.app/project/ I also recently did a two-hour workshop for R-Ladies Tunis on how to use the theme- the workshop is freely available on YouTube: https://alison.rbind.io/talk/2021-iyo-tunis/ I know though that it feels not great to be told that you need to consider switching themes after investing lots of time, energy, and material development into the Hugo Academic theme. But this is where we sit now. We'll work to see if we can make it user-friendly again, but at the end of the day, these are ultimately decisions made by individual Hugo theme authors. |
After spending a couple of hours on investigating this issue, personally I'd strongly recommend that future users consider the Apero theme mentioned above instead of Wowchemy. However, the bad news is that I can probably save you one more time if you want to stick with the Wowchemy theme. This issue seems to be fixable to me, but I can't guarantee that it won't happen again in the future. At some point, I might have to just give up and let users follow the official instructions to install extra system dependencies like Go and GIT... |
Should be fixed now. Please try the development version of blogdown: remotes::install_github('rstudio/blogdown') Thanks! |
@yihui I used the development version (i.e. I used Just asking, if I install |
@jyotishkarc do you still have the same error ? I just bump the dev version number following the above fix. Please try reinstall using remotes::install_github('rstudio/blogdown') then Restart R and check the package version. It should be like this: > packageVersion("blogdown")
[1] ‘1.3.4’ When I install the dev version, it is working as expected. If it still don't, please share some details. Thanks!
No after installation using |
It works !!!! Thank you so much @yihui and @cderv . I guess there were some problems while I installed Anyway, it is working now. Many thanks. Regards, |
I'm sorry to ask this here, but I'm having problems while trying to deploy my newly created site using GitHub pages (I don't want to use Netlify). Can someone help me regarding this, or maybe tell me about some appropriate place where I may get some help ? Also, is there a place where I can ask questions about this ? I was having some problems while customizing the site too. |
@juniperover here is a tutorial I found: |
@jyotishkarc you can ask question in https://community.rstudio.com for example. One difference with Netlify is that you would need to build the blog locally to generate the generated website folder and commit it (in gh-pages or a hosted folder), where Netlify can build the website itself with Hugo and so only need your source files to be commited. Also as @izhenyang mentioned, there should be some tutorial on the web to help you. If they have a comment feature, you can also try to ask for advice there if you have questions about the post. GH issues is unfortunately not the best place to ask for help by the community. Prefer Q&A website. Twitter is also a place you can easily find help as the #rstat community is very active and welcoming. Hope it helps! |
I have posted this issue at the Hugo community here: HugoBlox/hugo-blox-builder#2368 (comment)
I'm trying to use blogdown (v. 1.3.2) in RStudio (v. 1.4.1717/R version 4.1.0) on Mac Big Sur.
When invoking the new_site command, I get the following error message:
It appears that the site contents have been moved around so that a path is broken? Any advice or hope for a fix? TIA.
Here's the requested session info:
Checklist
When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. Have you:
[x ] formatted your issue so it is easier for us to read?
used
blogdown::check_site()
function to diagnose your site and corrected potential problems? N/A -- can't even get to the point of having a site to checkincluded a minimal, self-contained, and reproducible example? N/A -- I am stuck before the process begins
[ x] pasted the output from
xfun::session_info('blogdown')
in your issue?[x ] upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?
installed and tested your bug with the development version of the blogdown package using
remotes::install_github('rstudio/blogdown')
? this is the version I had just installed at the time I encountered the error-->
The text was updated successfully, but these errors were encountered: