From e7438db1defa53bfa2fa9eecf1a5c05eea261ad3 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Sun, 9 Oct 2016 15:42:10 +0200 Subject: [PATCH 1/2] Jekyll must be run with "bundle exec" command --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 867bb3a1..96afe56b 100644 --- a/README.markdown +++ b/README.markdown @@ -107,7 +107,7 @@ Assuming you're already within your project's clone directory, and you've alread Use the `--watch` flag to pick up changes to files as you make them, allowing you a nice edit-and-refresh workflow. - jekyll serve --watch + bundle exec jekyll serve --watch > **Important:** Because the `baseurl` is set explicitly within your project's `_config.yml` file, you'll need to fully-qualify the URL to view your project. For example, if your project is named "spring-xyz", your URL when running Jekyll locally will be . Don't forget the trailing slash! You'll get a 404 without it. From b2be58e5da6100a99b25910b0efbe2fa6e391864 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Thu, 23 Mar 2017 15:58:52 +0100 Subject: [PATCH 2/2] Add defensive check for empty repository key --- js/projectDocumentationWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/projectDocumentationWidget.js b/js/projectDocumentationWidget.js index 2e30a358..a52d9ba6 100644 --- a/js/projectDocumentationWidget.js +++ b/js/projectDocumentationWidget.js @@ -95,7 +95,7 @@ Spring.SnippetView = Backbone.View.extend({ this.combinedTemplate = _.template( "
" +
         downloadTemplate.find("code:first").html() +
-        "{@ if (repository) { @}" +
+        "{@ if (typeof(repository) != \"undefined\") { @}" +
         repositoryTemplate.find("code:first").html() +
         "{@ } @}" +
         "
"