chibicode / duo

👬 A Simple Jekyll Theme.
https://chibicode.github.io/duo
Other
74 stars 31 forks source link

github-pages plugin requires Github credentials even for local builds #1

Open CristianCantoro opened 6 years ago

CristianCantoro commented 6 years ago

Hi,

I want to set-up a single-page website and I have used Solo in the past, but I saw that it is now deprecated, so I tried duo.

I have cloned this repo and tried to build the site:

$ bundle exec jekyll serve
Configuration file: /path/to/site/_config.yml
            Source: /path/to/site
       Destination: /path/to/site/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
   GitHub Metadata: No GitHub API authentication could be found. Some fields
                    may be missing or have incorrect data.
   GitHub Metadata: Error processing value 'description':
  Liquid Exception: No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configuration,
                    or set up an 'origin' git remote pointing to your github.com repository. in /_layouts/default.html
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configuration,
                    or set up an 'origin' git remote pointing to your github.com repository.

I have tried adding a blank repository setting in _config.yml [1] to solve the issue, i.e.:

repository:

However I was running into this other problem:

  Dependency Error: Yikes! It looks like you don't have jekyll-feed or one of its dependencies installed.
In order to use Jekyll as currently configured, you'll need to install this gem.
The full error message from Ruby is: 'cannot load such file -- jekyll-feed' If you run into trouble,
you can find helpful resources at https://jekyllrb.com/help/! 

A solution for this issue [1] has been to remove the github-pages plugin and the plugins from the Gemfile, so I deleted the following line:

gem 'github-pages', group: :jekyll_plugins

and added the following:

gem 'jekyll'
gem 'jekyll-feed'
gem 'jekyll-sitemap'
gem 'jekyll-seo-tag'
gem 'jemoji'
gem 'jekyll-readme-index'

and in the end I was able to build the site locally.

Thank you.

roycan commented 5 years ago

thank you! now gh-pages and local both work for me. :D