From 35426725d915ef98989b5879d9d10b89d5d9ec92 Mon Sep 17 00:00:00 2001 From: "iulianOnofrei (U-lee-aan)" <5748627+revolter@users.noreply.github.com> Date: Fri, 31 May 2024 14:47:23 +0300 Subject: [PATCH] Added instruction for ignoring the Gemfile.lock file to prevent unsatisfiable dependencies warning in the creating-a-github-pages-site-with-jekyll page (#32352) Co-authored-by: Hector Alfaro --- .../creating-a-github-pages-site-with-jekyll.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/pages/setting-up-a-github-pages-site-with-jekyll/creating-a-github-pages-site-with-jekyll.md b/content/pages/setting-up-a-github-pages-site-with-jekyll/creating-a-github-pages-site-with-jekyll.md index 640712eda5..18a7913473 100644 --- a/content/pages/setting-up-a-github-pages-site-with-jekyll/creating-a-github-pages-site-with-jekyll.md +++ b/content/pages/setting-up-a-github-pages-site-with-jekyll/creating-a-github-pages-site-with-jekyll.md @@ -102,6 +102,12 @@ Before you can use Jekyll to create a {% data variables.product.prodname_pages % The correct version Jekyll will be installed as a dependency of the `github-pages` gem. 1. Save and close the Gemfile. 1. From the command line, run `bundle install`. +1. Open the `.gitignore` file that Jekyll created and ignore the gems lock file by adding this line: + + ```shell + Gemfile.lock + ``` + 1. Optionally, make any necessary edits to the `_config.yml` file. This is required for relative paths when the repository is hosted in a subdirectory. For more information, see "[AUTOTITLE](/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository)." ```yaml