From 83283442125170dd55a875254245bd63255844b9 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 26 Aug 2015 22:11:44 +0300 Subject: Use `https` when possible. [ci skip] --- docs/_plugins/callout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/_plugins') diff --git a/docs/_plugins/callout.rb b/docs/_plugins/callout.rb index 536ca588e..0ed6687db 100644 --- a/docs/_plugins/callout.rb +++ b/docs/_plugins/callout.rb @@ -1,4 +1,4 @@ -# Source: http://stackoverflow.com/questions/19169849/how-to-get-markdown-processed-content-in-jekyll-tag-plugin +# Source: https://stackoverflow.com/questions/19169849/how-to-get-markdown-processed-content-in-jekyll-tag-plugin module Jekyll module Tags -- cgit v1.2.3 From 7a2fa5e60a2e0c6a493a7e7c427ebeb3355f8f16 Mon Sep 17 00:00:00 2001 From: "David\\ Beitey" Date: Tue, 8 Sep 2015 14:36:00 +1000 Subject: Specify configBridge as relative path to source This adjusts the load path for the ``configBridge.json`` file from one that's relative to the user running the command (eg ``jekyll serve``), to one that's relative to the ``source`` configuration setting for Jekyll. The result is that the user can now have a (customised) ``_config.yml`` for Jekyll anywhere on her filesystem and point to Bootstrap's ``docs`` directory to use as the ``source``. Previously, in order to customise it, the original ``_config.yml`` needed to be modified inside (a forked) Bootstrap, and the ``jekyll`` command could only be run at the root of the Bootstrap package as the original file path to ``configBridge.json`` was only valid there. The existing behaviour is not affected. --- docs/_plugins/bridge.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/_plugins') diff --git a/docs/_plugins/bridge.rb b/docs/_plugins/bridge.rb index 450a6cce3..a5d30a8f4 100644 --- a/docs/_plugins/bridge.rb +++ b/docs/_plugins/bridge.rb @@ -3,7 +3,8 @@ require 'yaml' module Bridge class Generator < Jekyll::Generator def generate(site) - site.data["configBridge"] = YAML.load_file("./grunt/configBridge.json") + path = File.join(site.source, "../grunt/configBridge.json") + site.data["configBridge"] = YAML.load_file(path) end end end \ No newline at end of file -- cgit v1.2.3 From 36e4c9bffcae40cde42b6baa28961a8979cc24d0 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 8 Sep 2015 08:16:07 +0300 Subject: Add missing end of file newlines. [ci skip] --- docs/_plugins/bridge.rb | 2 +- docs/_plugins/bugify.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/_plugins') diff --git a/docs/_plugins/bridge.rb b/docs/_plugins/bridge.rb index 450a6cce3..f2e606383 100644 --- a/docs/_plugins/bridge.rb +++ b/docs/_plugins/bridge.rb @@ -6,4 +6,4 @@ module Bridge site.data["configBridge"] = YAML.load_file("./grunt/configBridge.json") end end -end \ No newline at end of file +end diff --git a/docs/_plugins/bugify.rb b/docs/_plugins/bugify.rb index 3cee9e43f..e085b5a38 100644 --- a/docs/_plugins/bugify.rb +++ b/docs/_plugins/bugify.rb @@ -22,4 +22,4 @@ module Jekyll end end -Liquid::Template.register_filter(Jekyll::BugFilter) \ No newline at end of file +Liquid::Template.register_filter(Jekyll::BugFilter) -- cgit v1.2.3