From 3539d8ac13bd9be54380cb8817b232d82635ce6a Mon Sep 17 00:00:00 2001 From: dojutsu-user Date: Sat, 22 Oct 2022 15:46:55 +0530 Subject: [PATCH] Add a note --- ...ting-your-github-pages-site-locally-with-jekyll.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/content/pages/setting-up-a-github-pages-site-with-jekyll/testing-your-github-pages-site-locally-with-jekyll.md b/content/pages/setting-up-a-github-pages-site-with-jekyll/testing-your-github-pages-site-locally-with-jekyll.md index 6c243ce6e488..54442f48241d 100644 --- a/content/pages/setting-up-a-github-pages-site-with-jekyll/testing-your-github-pages-site-locally-with-jekyll.md +++ b/content/pages/setting-up-a-github-pages-site-with-jekyll/testing-your-github-pages-site-locally-with-jekyll.md @@ -48,13 +48,14 @@ Before you can use Jekyll to test a site, you must: > Server address: http://127.0.0.1:4000/ > Server running... press ctrl-c to stop. ``` -3. To preview your site, in your web browser, navigate to `http://localhost:4000`. - -{% note %} + {% note %} -**Note:** If you are using Ruby 3.0 and Jekyll 4.2.x or older, you will need to add the `webrick` gem to your project's Gemfile prior to running `bundle install`. + **Note:** If you've installed Ruby 3.0 or later (which you may have if you installed the default version via Homebrew), you might get an error at this step. That's because these versions of Ruby no longer come with `webrick` installed. + + To fix the error, try running `bundle add webrick`, then re-running `bundle exec jekyll serve`. + {% endnote %} -{% endnote %} +3. To preview your site, in your web browser, navigate to `http://localhost:4000`. ## Updating the {% data variables.product.prodname_pages %} gem