Skip to content

Commit

Permalink
Merge pull request #51994 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Aug 13, 2024
2 parents 4cecfaf + 1bc312c commit 5e35b66
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,17 @@ Before you can use Jekyll to test a site, you must:

{% note %}

**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.
**Notes:**
* 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`.

* If your `_config.yml` file's `baseurl` field contains your GitHub repository's link, you can use the following command when building locally to ignore that value and serve the site on `localhost:4000/`:

```shell
bundle exec jekyll serve --baseurl=""
```

To fix the error, try running `bundle add webrick`, then re-running `bundle exec jekyll serve`.
{% endnote %}

1. To preview your site, in your web browser, navigate to `http://localhost:4000`.
Expand Down

0 comments on commit 5e35b66

Please sign in to comment.