1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00
twbs--bootstrap/docs/_plugins/bridge.rb
XhmikosR d84c15f1d0 Merge pull request #17520 from davidjb/v4-dev-relative-grunt
Specify configBridge as relative path to source for Jekyll
2015-09-09 09:44:09 +03:00

10 lines
230 B
Ruby

require 'yaml'
module Bridge
class Generator < Jekyll::Generator
def generate(site)
path = File.join(site.source, "../grunt/configBridge.json")
site.data["configBridge"] = YAML.load_file(path)
end
end
end