diff --git a/docs/_docs/github-pages.md b/docs/_docs/github-pages.md index 30c32d26..298e4a8e 100644 --- a/docs/_docs/github-pages.md +++ b/docs/_docs/github-pages.md @@ -123,7 +123,7 @@ to see more detailed examples. Once the project is configured with the github-pages environment, it's quite hard to switch back and forth with the local settings and the production-level settings. For that we can use certain CLI options to make the workflow hassle-free. -``` +```sh bundle exec jekyll serve --baseurl="" ``` diff --git a/docs/_docs/index.md b/docs/_docs/index.md index af97b79c..83c3e573 100644 --- a/docs/_docs/index.md +++ b/docs/_docs/index.md @@ -24,19 +24,19 @@ See [Requirements]({{ '/docs/installation/#requirements' | relative_url }}) for 1. Install all [prerequisites]({{ '/docs/installation/' | relative_url }}). 2. Install the jekyll and bundler [gems]({{ '/docs/ruby-101/#gems' | relative_url }}). -``` +```sh gem install jekyll bundler ``` 3. Create a new Jekyll site at `./myblog`. -``` +```sh jekyll new myblog ``` 4. Change into your new directory. -``` +```sh cd myblog ``` 5. Build the site and make it available on a local server. -``` +```sh bundle exec jekyll serve ``` 6. Browse to [http://localhost:4000](http://localhost:4000){:target="_blank"}