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

simple local example, doesn't work #61

Open
steveschow opened this issue Dec 20, 2023 · 0 comments
Open

simple local example, doesn't work #61

steveschow opened this issue Dec 20, 2023 · 0 comments

Comments

@steveschow
Copy link

I am unable to get this working. Error at end. Here are the steps I took:

  1. cloned this repo
  2. edited Gemfile to use "Jekyll" instead of "GitHub pages"
  3. also uncommented the Jekyll plugins group. Gemfile is shown below.
  4. ran bundle install to get dependencies
  5. Ran bundle exec Jekyll serve (or build) and got following errors.

Gemfile:

source "https://rubygems.org"
ruby RUBY_VERSION

 gem "jekyll", "4.0"
 

# to use GitHub Pages
#gem "github-pages", group: :jekyll_plugins

# If you have any plugins, put them here!
 group :jekyll_plugins do
    gem "jekyll-feed"
    gem "jekyll-sitemap"
    gem "jekyll-redirect-from"
    gem "jekyll-seo-tag"
 end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
  gem "tzinfo", "~> 1.2"
  gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?

Errors:

sjs:[~/Development/github/jekyll-doc-theme] (gh-pages *): bundle exec jekyll serve
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Configuration file: /Users/sjs/Development/github/jekyll-doc-theme/_config.yml
            Source: /Users/sjs/Development/github/jekyll-doc-theme
       Destination: /Users/sjs/Development/github/jekyll-doc-theme/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
Error reading file /Users/sjs/Development/github/jekyll-doc-theme/_layouts/default.html: no implicit conversion of Hash into Integer 
Error reading file /Users/sjs/Development/github/jekyll-doc-theme/_layouts/docs.html: no implicit conversion of Hash into Integer 
Error reading file /Users/sjs/Development/github/jekyll-doc-theme/_layouts/page.html: no implicit conversion of Hash into Integer 
Error reading file /Users/sjs/Development/github/jekyll-doc-theme/_layouts/post.html: no implicit conversion of Hash into Integer 
             Error: could not read file /Users/sjs/Development/github/jekyll-doc-theme/_posts/2017-02-01-welcome-to-jekyll.md: no implicit conversion of Hash into Integer
             Error: could not read file /Users/sjs/Development/github/jekyll-doc-theme/_posts/2017-05-03-jekyll-doc-theme.md: no implicit conversion of Hash into Integer
Error reading file /Users/sjs/Development/github/jekyll-doc-theme/assets/css/main.scss: no implicit conversion of Hash into Integer 
Error reading file /Users/sjs/Development/github/jekyll-doc-theme/assets/search.json: no implicit conversion of Hash into Integer 
Error reading file /Users/sjs/Development/github/jekyll-doc-theme/assets/404.html: no implicit conversion of Hash into Integer 
Error reading file /Users/sjs/Development/github/jekyll-doc-theme/assets/allposts.html: no implicit conversion of Hash into Integer 
Error reading file /Users/sjs/Development/github/jekyll-doc-theme/index.html: no implicit conversion of Hash into Integer 
             Error: could not read file /Users/sjs/Development/github/jekyll-doc-theme/_docs/customization.md: no implicit conversion of Hash into Integer
             Error: could not read file /Users/sjs/Development/github/jekyll-doc-theme/_docs/examples/bootstrap.md: no implicit conversion of Hash into Integer
             Error: could not read file /Users/sjs/Development/github/jekyll-doc-theme/_docs/examples/cheatsheet.md: no implicit conversion of Hash into Integer
             Error: could not read file /Users/sjs/Development/github/jekyll-doc-theme/_docs/examples/font-awesome.md: no implicit conversion of Hash into Integer
             Error: could not read file /Users/sjs/Development/github/jekyll-doc-theme/_docs/index.md: no implicit conversion of Hash into Integer
             Error: could not read file /Users/sjs/Development/github/jekyll-doc-theme/_docs/themes.md: no implicit conversion of Hash into Integer
       Jekyll Feed: Generating feed for posts
Could not generate source map SassC::NotRenderedError =>  
                    done in 0.156 seconds.
 Auto-regeneration: enabled for '/Users/sjs/Development/github/jekyll-doc-theme'
                    ------------------------------------------------
      Jekyll 4.0.0   Please append `--trace` to the `serve` command 
                     for any additional information or backtrace. 
                    ------------------------------------------------
/Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/jekyll-4.0.0/lib/jekyll/commands/serve/servlet.rb:3:in `require': cannot load such file -- webrick (LoadError)
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/jekyll-4.0.0/lib/jekyll/commands/serve/servlet.rb:3:in `<top (required)>'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/jekyll-4.0.0/lib/jekyll/commands/serve.rb:179:in `require_relative'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/jekyll-4.0.0/lib/jekyll/commands/serve.rb:179:in `setup'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/jekyll-4.0.0/lib/jekyll/commands/serve.rb:100:in `process'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `block in process_with_graceful_fail'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `each'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `process_with_graceful_fail'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/jekyll-4.0.0/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/jekyll-4.0.0/exe/jekyll:15:in `<top (required)>'
	from /Users/sjs/.rbenv/versions/3.2.2/bin/jekyll:25:in `load'
	from /Users/sjs/.rbenv/versions/3.2.2/bin/jekyll:25:in `<top (required)>'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.31/lib/bundler/cli/exec.rb:58:in `load'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.31/lib/bundler/cli/exec.rb:58:in `kernel_load'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.31/lib/bundler/cli/exec.rb:23:in `run'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.31/lib/bundler/cli.rb:478:in `exec'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.31/lib/bundler/cli.rb:31:in `dispatch'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.31/lib/bundler/cli.rb:25:in `start'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.31/exe/bundle:49:in `block in <top (required)>'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.31/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
	from /Users/sjs/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.31/exe/bundle:37:in `<top (required)>'
	from /Users/sjs/.rbenv/versions/3.2.2/bin/bundle:25:in `load'
	from /Users/sjs/.rbenv/versions/3.2.2/bin/bundle:25:in `<main>'
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

No branches or pull requests

1 participant