Merge pull request #1474 from MasterEnoc/liquid

Update liquid to 5.0
pull/1475/head
Simon Legner 4 years ago committed by GitHub
commit 86cdf86301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3186,6 +3186,19 @@ Prism.languages.sql = {
'punctuation': /[;[\]()`,.]/ 'punctuation': /[;[\]()`,.]/
}; };
Prism.languages.liquid = {
keyword:/\b(?:comment|endcomment|if|elsif|else|endif|unless|endunless|for|endfor|case|endcase|when|in|break|assign|continue|limit|offset|range|reversed|raw|endraw|capture|endcapture|tablerow|endtablerow)\b/,
number:/\b0b[01]+\b|\b0x(?:\.[\da-fp-]+|[\da-f]+(?:\.[\da-fp-]+)?)\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?[df]?/i,
operator:{
pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]?|\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m,
lookbehind:!0
},
function:{
pattern:/(^|[\s;|&])(?:append|prepend|capitalize|cycle|cols|increment|decrement|abs|at_least|at_most|ceil|compact|concat|date|default|divided_by|downcase|escape|escape_once|first|floor|join|last|lstrip|map|minus|modulo|newline_to_br|plus|remove|remove_first|replace|replace_first|reverse|round|rstrip|size|slice|sort|sort_natural|split|strip|strip_html|strip_newlines|times|truncate|truncatewords|uniq|upcase|url_decode|url_encode|include|paginate)(?=$|[\s;|&])/,
lookbehind:!0
}
};
(function (Prism) { (function (Prism) {
Prism.languages.typescript = Prism.languages.extend('javascript', { Prism.languages.typescript = Prism.languages.extend('javascript', {
@ -3305,4 +3318,3 @@ Prism.languages.sql = {
Prism.languages.yml = Prism.languages.yaml; Prism.languages.yml = Prism.languages.yaml;
}(Prism)); }(Prism));

@ -14,6 +14,11 @@ module Docs
node.content = node.content.strip node.content = node.content.strip
end end
css('pre.highlight').each do |node|
node['data-language'] = "liquid"
node['class'] = "language-liquid"
end
doc doc
end end
end end

@ -3,7 +3,7 @@ module Docs
self.name = 'Liquid' self.name = 'Liquid'
self.type = 'liquid' self.type = 'liquid'
self.base_url = 'https://shopify.github.io/liquid/' self.base_url = 'https://shopify.github.io/liquid/'
self.release = '4.0.0' self.release = '5.0.0'
self.links = { self.links = {
home: 'https://shopify.github.io/liquid/', home: 'https://shopify.github.io/liquid/',
code: 'https://github.com/Shopify/liquid' code: 'https://github.com/Shopify/liquid'
@ -24,5 +24,6 @@ module Docs
tags = get_github_tags('Shopify', 'liquid', opts) tags = get_github_tags('Shopify', 'liquid', opts)
tags[0]['name'][1..-1] tags[0]['name'][1..-1]
end end
end end
end end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 458 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 847 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Loading…
Cancel
Save