eco-infra / ecoinfra

Emission prediction tool
https://eco-infra.com
Apache License 2.0
6 stars 3 forks source link

Jekyl failed to build #31

Closed iamdavidmt closed 2 weeks ago

iamdavidmt commented 4 months ago

Failed to build during deployment https://github.com/eco-infra/ecoinfra/actions/runs/8807103476/job/24173402761


/usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/theme.rb:84:in `rescue in gemspec': The just-the-docs theme could not be found. (Jekyll::Errors::MissingDependencyException)
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/theme.rb:81:in `gemspec'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/theme.rb:19:in `root'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/theme.rb:12:in `initialize'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/site.rb:439:in `new'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/site.rb:439:in `configure_theme'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/site.rb:55:in `config='
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/site.rb:23:in `initialize'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/commands/build.rb:30:in `new'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/commands/build.rb:30:in `process'
    from /usr/local/bundle/gems/github-pages-2[31](https://github.com/eco-infra/ecoinfra/actions/runs/8807103476/job/24173402761#step:4:32)/bin/github-pages:70:in `block (3 levels) in <top (required)>'
    from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
    from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
    from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
    from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
    from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
    from /usr/local/bundle/gems/github-pages-231/bin/github-pages:6:in `<top (required)>'
    from /usr/local/bundle/bin/github-pages:23:in `load'
    from /usr/local/bundle/bin/github-pages:23:in `<main>'
/usr/local/lib/ruby/2.7.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'just-the-docs' (>= 0) among 151 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/github/home/.gem/ruby/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/local/bundle', execute `gem env` for more information
    from /usr/local/lib/ruby/2.7.0/rubygems/dependency.rb:[32](https://github.com/eco-infra/ecoinfra/actions/runs/8807103476/job/24173402761#step:4:33)3:in `to_spec'
    from /usr/local/lib/ruby/2.7.0/rubygems/specification.rb:986:in `find_by_name'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/theme.rb:82:in `gemspec'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/theme.rb:19:in `root'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/theme.rb:12:in `initialize'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/site.rb:439:in `new'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/site.rb:439:in `configure_theme'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/site.rb:55:in `config='
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/site.rb:23:in `initialize'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/commands/build.rb:30:in `new'
    from /usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/commands/build.rb:30:in `process'
    from /usr/local/bundle/gems/github-pages-231/bin/github-pages:70:in `block (3 levels) in <top (required)>'
    from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
    from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
    from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
    from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/program.rb:[42](https://github.com/eco-infra/ecoinfra/actions/runs/8807103476/job/24173402761#step:4:43):in `go'
    from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
    from /usr/local/bundle/gems/github-pages-231/bin/github-pages:6:in `<top (required)>'
    from /usr/local/bundle/bin/github-pages:23:in `load'
    from /usr/local/bundle/bin/github-pages:23:in `<main>'
Error:  Logging at level: debug Configuration file: /github/workspace/./docs/_config.yml Theme: just-the-docs github-pages 231 | Error: The just-the-docs theme could not be found.```
iamdavidmt commented 4 months ago

Re-opening @rickwysocki - I can also take a look this weekend

rickwysocki commented 4 months ago

Gotcha. Just as a heads-up, you need to delete the index.html file. The index.md file is what will be served by Jekyll as the homepage but it's getting passed over because there are two index files.

iamdavidmt commented 2 weeks ago

Fixed