docker / get-involved

Get Involved with Docker
https://docker.github.io/get-involved
Apache License 2.0
24 stars 31 forks source link

Unable to host website locallly #25

Closed gauravgahlot closed 3 years ago

gauravgahlot commented 3 years ago

Hugo version:

  ~/go/src/github.com/gauravgahlot/get-involved (master) ✔ 
➜ hugo version  
hugo v0.82.0-9D960784+extended linux/amd64 BuildDate=2021-03-21T17:28:04Z VendorInfo=gohugoio

Error:

  ~/go/src/github.com/gauravgahlot/get-involved (master) ✔ 
➜ hugo server -D
Start building sites … 
Built in 1079 ms
Error: Error building site: "/home/quickdev/go/src/github.com/gauravgahlot/get-involved/content/en/_index.html:7:1": failed to extract shortcode: template for shortcode "blocks/cover" not found
ajeetraina commented 3 years ago

Hello @gauravgahlot

Follow the below steps:

Step 1: Clone the repository

git clone --recurse-submodules --depth 1 https://github.com/docker/get-involved

Cloning into 'get-involved'...
remote: Enumerating objects: 461, done.
remote: Counting objects: 100% (461/461), done.
remote: Compressing objects: 100% (353/353), done.
remote: Total 461 (delta 28), reused 348 (delta 14), pack-reused 0
Receiving objects: 100% (461/461), 22.01 MiB | 16.21 MiB/s, done.
Resolving deltas: 100% (28/28), done.
Submodule 'themes/docsy' (https://github.com/google/docsy.git) registered for path 'themes/docsy'
Cloning into '/Users/ajeetraina/projects/get-involved/themes/docsy'...
remote: Enumerating objects: 5377, done.        
remote: Counting objects: 100% (394/394), done.        
remote: Compressing objects: 100% (175/175), done.        
remote: Total 5377 (delta 245), reused 314 (delta 191), pack-reused 4983        
Receiving objects: 100% (5377/5377), 7.85 MiB | 8.59 MiB/s, done.
Resolving deltas: 100% (3110/3110), done.
Submodule path 'themes/docsy': checked out '0089b2e0a904dc30e2fb3b59e9745ce589e2f90b'
Submodule 'assets/vendor/Font-Awesome' (https://github.com/FortAwesome/Font-Awesome.git) registered for path 'themes/docsy/assets/vendor/Font-Awesome'
Submodule 'assets/vendor/bootstrap' (https://github.com/twbs/bootstrap.git) registered for path 'themes/docsy/assets/vendor/bootstrap'
Cloning into '/Users/ajeetraina/projects/get-involved/themes/docsy/assets/vendor/Font-Awesome'...
remote: Enumerating objects: 115923, done.        
remote: Total 115923 (delta 0), reused 0 (delta 0), pack-reused 115923        
Receiving objects: 100% (115923/115923), 95.61 MiB | 16.47 MiB/s, done.
Resolving deltas: 100% (70218/70218), done.
Cloning into '/Users/ajeetraina/projects/get-involved/themes/docsy/assets/vendor/bootstrap'...
remote: Enumerating objects: 166227, done.        
remote: Counting objects: 100% (1150/1150), done.        
remote: Compressing objects: 100% (611/611), done.        
remote: Total 166227 (delta 618), reused 828 (delta 429), pack-reused 165077        
Receiving objects: 100% (166227/166227), 176.19 MiB | 19.54 MiB/s, done.
Resolving deltas: 100% (109048/109048), done.
Submodule path 'themes/docsy/assets/vendor/Font-Awesome': checked out '951a0d011f8c832991750c16136f8e260efa60b5'
Submodule path 'themes/docsy/assets/vendor/bootstrap': checked out 'a716fb03f965dc0846df479e14388b1b4b93d7ce'
ajeetraina@Ajeets-MacBook-Pro projects % cd get-involved 
ajeetraina@Ajeets-MacBook-Pro get-involved % hugo server                  
Start building sites … 
WARN 2021/04/18 20:09:24 "/Users/ajeetraina/projects/get-involved/content/en/docs/_index.md:1:1": duplicate menu entry with identifier "Home" in menu "main"

                   | EN   
-------------------+------
  Pages            | 207  
  Paginator pages  |   0  
  Non-page files   | 150  
  Static files     |  40  
  Processed images |   2  
  Aliases          |   0  
  Sitemaps         |   1  
  Cleaned          |   0  

Built in 813 ms
Watching for changes in /Users/ajeetraina/projects/get-involved/{assets,content,i18n,layouts,package.json,static,themes}
Watching for config changes in /Users/ajeetraina/projects/get-involved/config.toml, /Users/ajeetraina/projects/get-involved/config/_default, /Users/ajeetraina/projects/get-involved/themes/docsy/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at //localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Change detected, rebuilding site.
2021-04-18 20:09:37.608 +0530
WARN 2021/04/18 20:09:38 "/Users/ajeetraina/projects/get-involved/content/en/docs/_index.md:1:1": duplicate menu entry with identifier "Home" in menu "main"
Rebuilt in 736 ms
gauravgahlot commented 3 years ago

Yeah, I found that too. I'm sending a PR that adds this step to contributor guidelines.

ajeetraina commented 3 years ago

@gauravgahlot Cool. Looking forward to your contributions.