From 3f98a743ed488c57a1336a85d9bd35d9e70d77ca Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Mon, 16 Apr 2018 12:54:39 +0530 Subject: [PATCH 1/2] Correct errors in troubleshooting.md --- docs/_docs/troubleshooting.md | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/docs/_docs/troubleshooting.md b/docs/_docs/troubleshooting.md index 23074f85..5e74b5a2 100644 --- a/docs/_docs/troubleshooting.md +++ b/docs/_docs/troubleshooting.md @@ -111,7 +111,7 @@ possible to run Jekyll as a non-superuser and without having to install gems to system-wide locations by adding the following lines to the end of your `.bashrc` file: -```sh +``` # Ruby exports export GEM_HOME=$HOME/gems @@ -133,20 +133,19 @@ currently-running shell. If you see the following error when running the `jekyll new` command, you can solve it by using the above-described procedure: -``` +```sh $ jekyll new test Running bundle install in /home/user/test... - Your user account isn't allowed to install to the system RubyGems. - You can cancel this installation and run: +You can cancel this installation and run: bundle install --path vendor/bundle - to install the gems into ./vendor/bundle/, or you can enter your password - and install the bundled gems to RubyGems using sudo. +to install the gems into ./vendor/bundle/, or you can enter your password +and install the bundled gems to RubyGems using sudo. - Password: +Password: ``` Once this is done, the `jekyll new` command should work properly for @@ -227,13 +226,13 @@ jekyll serve --baseurl '/blog' … then make sure that you access the site at: -```sh +``` http://localhost:4000/blog/index.html ``` It won’t work to just access: -```sh +``` http://localhost:4000/blog ``` @@ -252,7 +251,7 @@ specified elsewhere. **Note: From v3.3.0 onward, Jekyll does not process `node_modules` and certain subdirectories within `vendor`, by default. But, by having an `exclude:` array defined explicitly in the config file overrides this default setting, which results in some users to encounter an error in building the site, with the following error message:** -``` +```sh ERROR: YOUR SITE COULD NOT BE BUILT: ------------------------------------ Invalid date '<%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>': @@ -290,9 +289,8 @@ problems. ### Liquid -The latest version, version 2.0, seems to break the use of `{{ "{{" }}` in -templates. Unlike previous versions, using `{{ "{{" }}` in 2.0 triggers the -following error: +Liquid version 2.0, seems to break the use of `{{ "{{" }}` in templates. +Unlike previous versions, using `{{ "{{" }}` in 2.0 triggers the following error: ```sh '{{ "{{" }}' was not properly terminated with regexp: /\}\}/ (Liquid::SyntaxError) From 6fc2cfea6e789c9cf0d3f20ecbf63fca66460fae Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Mon, 16 Apr 2018 16:10:53 +0530 Subject: [PATCH 2/2] remove unnecessary characters --- docs/_docs/troubleshooting.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/_docs/troubleshooting.md b/docs/_docs/troubleshooting.md index 5e74b5a2..81924121 100644 --- a/docs/_docs/troubleshooting.md +++ b/docs/_docs/troubleshooting.md @@ -134,7 +134,8 @@ If you see the following error when running the `jekyll new` command, you can solve it by using the above-described procedure: ```sh -$ jekyll new test +jekyll new test + Running bundle install in /home/user/test... Your user account isn't allowed to install to the system RubyGems. @@ -289,7 +290,7 @@ problems. ### Liquid -Liquid version 2.0, seems to break the use of `{{ "{{" }}` in templates. +Liquid version 2.0 seems to break the use of `{{ "{{" }}` in templates. Unlike previous versions, using `{{ "{{" }}` in 2.0 triggers the following error: ```sh