-
Notifications
You must be signed in to change notification settings - Fork 64.1k
Description
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
VERSIONwith the version ofjekylllisted on the Dependency versions page instead of thegithub-pagesversion.
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: