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

fix download hugo url err #159

Merged
merged 3 commits into from
Dec 24, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions contribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ U should ensure NPM & Hugo binary [download url](https://github.com/gohugoio/hug
# 0. install npm & hugo if you don't have it

# Mac version (0.95 extend)
wget https://github.do/https://github.com/gohugoio/hugo/releases/download/v0.95.0/hugo_extended_0.95.0_macOS-64bit.tar.gz
JackyYangPassion marked this conversation as resolved.
Show resolved Hide resolved
wget https://github.com/gohugoio/hugo/releases/download/v0.95.0/hugo_extended_0.95.0_macOS-64bit.tar.gz

# Linux version (0.95 extend)
wget https://github.do/https://github.com/gohugoio/hugo/releases/download/v0.95.0/hugo_extended_0.95.0_Linux-64bit.tar.gz
wget https://github.com/gohugoio/hugo/releases/download/v0.95.0/hugo_extended_0.95.0_Linux-64bit.tar.gz

# 解压后 hugo 是单二进制文件, 可直接使用, 或推荐放 /usr/bin 及环境变量下.
sudo install hugo /usr/bin # 如果 mac 提示没有权限, 你可以直接使用它, 也可以 mv hugo /usr/bin 代替

# 1. download website's source code
git clone https://github.com/hugegraph/hugegraph-doc.git website
git clone https://github.com/hugegraph/hugegraph-doc.git master
JackyYangPassion marked this conversation as resolved.
Show resolved Hide resolved

# if download slowly or failed, try the proxy url
git clone https://api.mtr.pub/hugegraph/hugegraph-doc.git website # or https://github.do/https://github.com/hugegraph/hugegraph-doc.git
git clone https://api.mtr.pub/hugegraph/hugegraph-doc.git master # or https://github.do/https://github.com/hugegraph/hugegraph-doc.git

# 2. install npm dependencies in project root dir
cd website && npm install
cd master && npm install

# 3. just start server in localhost now (Don't need do anything else)
hugo server
Expand Down