Skip to content

Commit 661fff9

Browse files
authored
Merge pull request #21557 from dojutsu-user/update-test-with-jekyll-docs
Add a note for webrick under "Testing your GitHub Pages site locally with Jekyll"
2 parents 0a1d894 + 9e57644 commit 661fff9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

content/pages/setting-up-a-github-pages-site-with-jekyll/testing-your-github-pages-site-locally-with-jekyll.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@ Before you can use Jekyll to test a site, you must:
4848
> Server address: http://127.0.0.1:4000/
4949
> Server running... press ctrl-c to stop.
5050
```
51-
3. To preview your site, in your web browser, navigate to `http://localhost:4000`.
52-
53-
{% note %}
51+
{% note %}
5452

55-
**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`.
53+
**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.
54+
55+
To fix the error, try running `bundle add webrick`, then re-running `bundle exec jekyll serve`.
56+
{% endnote %}
5657

57-
{% endnote %}
58+
3. To preview your site, in your web browser, navigate to `http://localhost:4000`.
5859

5960
## Updating the {% data variables.product.prodname_pages %} gem
6061

0 commit comments

Comments
 (0)