Skip to content

Instructions for installing the github-pages gem are confusing #2177

@monfresh

Description

@monfresh

What article on docs.github.com is affected?

Creating a GitHub Pages site with Jekyll

What part(s) of the article would you like to see updated?

Steps 8 - 10 are confusing. If you search for could not find gem github-pages in your favorite search engine, you'll find that the instructions caused people to do one or more of the following things:

  • they didn't uncomment the # gem "github-pages" line
  • they tried to run bundle update github-pages
  • they replaced VERSION with the version of jekyll listed on the Dependency versions page instead of the github-pages version.

Step 7 is also both confusing and incorrect. Running jekyll 3.9.0 new . does not work. The jekyll new command does not accept a version number, at least not like it is documented in GitHub docs. Also, the Bundler section is more confusing than helpful because for bundle exec to work, a Gemfile must exist in the directory, but the instructions don’t mention that. Instead of adding more steps, I think it's best to simplify step 7 to just jekyll new ., which will create the Jekyll site using whatever version of Jekyll is currently installed (most likely 4.2.0).

In step 8, they are told to comment out the jekyll gem, so it doesn't matter if they used a more recent version of jekyll to create the site initially. What matters is that after they save the Gemfile, they need to run bundle update because github-pages only supports jekyll 3.9.0 currently. Running bundle install will result in dependency issues.

See the linked PR below that I submitted to fix this.

Additional information

Examples of people who got stuck because of the documentation:

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamhelp wantedAnyone is welcome to open a pull request to fix this issueneeds content strategyWait to open a PR until there's an approved content strategy in the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions