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

support installing Hugo from a local file #288

Merged
merged 1 commit into from
Apr 2, 2018

Conversation

shrektan
Copy link
Contributor

@shrektan shrektan commented Apr 2, 2018

All the Hugo websites and the download links are not accessible directly by us or very slow... We need to download the Hugo file by other solution and install it. Also, it will be useful when a user wants to install Hugo but not be able to reach GitHub behind the company's firewall.

Well at the time of writing, I realized that the user can simply call `blogdown:::install_hugo_bin(path)... So feel free to close the PR if you think is unnecessary. :P

Copy link
Member

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a good idea, but I'll tweak the implementation a little bit after merging it. Thanks!

@yihui yihui mentioned this pull request Apr 2, 2018
1 task
@yihui yihui added this to the v0.6 milestone Apr 2, 2018
@yihui yihui merged commit fa08d9d into rstudio:master Apr 2, 2018
yihui added a commit that referenced this pull request Apr 2, 2018
… that users can provide a local zip/tar.gz)
@yihui
Copy link
Member

yihui commented Apr 2, 2018

I have tweaked it so that you can just pass the file path to the first argument, e.g.,

blogdown::install_hugo('hugo_0.38_Windows-64bit.zip')

@shrektan
Copy link
Contributor Author

shrektan commented Apr 3, 2018

Cool, I like this.

@shrektan shrektan deleted the local_file branch April 3, 2018 00:13
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.

2 participants