Unified · Split
Binary file not shown.
Binary file not shown.
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | [ |
| 2 | 2 | [ |
| 3 | 3 | "2016-02-15", |
| 4 | − "New documentations: <a href=\"/cakephp/\">CakePHP</a> and <a href=\"/chef/\">Chef</a>" | |
| 4 | + "New documentations: <a href=\"/cakephp/\">CakePHP</a>, <a href=\"/chef/\">Chef</a> and <a href=\"/ramda/\">Ramda</a>" | |
| 5 | 5 | ], [ |
| 6 | 6 | "2016-01-31", |
| 7 | 7 | "New documentations: <a href=\"/erlang/\">Erlang</a> and <a href=\"/tcl_tk/\">Tcl/Tk</a>" |
| @@ -27,6 +27,7 @@ app.views.MongoosePage = · 26 unmodified lines | ||
| 27 | 27 | app.views.NodePage = |
| 28 | 28 | app.views.PhaserPage = |
| 29 | 29 | app.views.QPage = |
| 30 | +app.views.RamdaPage = | |
| 30 | 31 | app.views.RethinkdbPage = |
| 31 | 32 | app.views.SinonPage = |
| 32 | 33 | app.views.UnderscorePage = |
| @@ -1,6 +0,0 @@ | ||
| 1 | −#= require views/pages/base | |
| 2 | − | |
| 3 | −class app.views.RamdaPage extends app.views.BasePage | |
| 4 | − prepare: -> | |
| 5 | − @highlightCode @findAll('section > pre:last-child'), 'javascript' | |
| 6 | − return | |
| @@ -64,6 +64,7 @@ · 63 unmodified lines | ||
| 64 | 64 | 'pages/phpunit', |
| 65 | 65 | 'pages/postgres', |
| 66 | 66 | 'pages/q', |
| 67 | + 'pages/ramda', | |
| 67 | 68 | 'pages/rdoc', |
| 68 | 69 | 'pages/react', |
| 69 | 70 | 'pages/redis', |
| @@ -125,3 +125,4 @@ · 124 unmodified lines | ||
| 125 | 125 | ._icon-tcl_tk:before { background-position: 0 -10rem; } |
| 126 | 126 | ._icon-erlang:before { background-position: -1rem -10rem; } |
| 127 | 127 | ._icon-chef:before { background-position: -2rem -10rem; } |
| 128 | +._icon-ramda:before { background-position: -3rem -10rem; @extend %darkIconFix !optional; } | |
| @@ -1,33 +1,7 @@ | ||
| 1 | 1 | ._ramda { |
| 2 | 2 | @extend %simple; |
| 3 | − code { @extend %code; } | |
| 4 | − h2 + div > code { @extend %block-label, %label-blue; } | |
| 5 | − | |
| 6 | − h2 { | |
| 7 | − small { | |
| 8 | − font-size: small; | |
| 9 | − float: right; | |
| 10 | − } | |
| 11 | − } | |
| 12 | 3 | |
| 13 | − .see a { @extend %label; } | |
| 14 | − | |
| 15 | − .params { | |
| 16 | − .type { | |
| 17 | − font-style: italic; | |
| 18 | − text-transform: capitalize; | |
| 19 | − margin-right: 0.35em; | |
| 20 | − &::before { content: '<'; } | |
| 21 | − &::after { content: '>'; } | |
| 22 | − } | |
| 23 | − .panel-body { | |
| 24 | − margin-bottom: 1.5em; | |
| 25 | − .type { | |
| 26 | − padding: 0 0 0 2em; | |
| 27 | − } | |
| 28 | − .description > p { | |
| 29 | − display: inline-block; | |
| 30 | − } | |
| 31 | − } | |
| 32 | − } | |
| 4 | + code { @extend %code; } | |
| 5 | + h3 > small { float: right; } | |
| 6 | + ul { margin-top: 1em; } | |
| 33 | 7 | } |
| @@ -14,30 +14,19 @@ module Docs · 13 unmodified lines | ||
| 14 | 14 | added_in.parent = title |
| 15 | 15 | end |
| 16 | 16 | |
| 17 | − # Prepend links with 'R.' | |
| 18 | − css('h2 > a.name, .see a').each do |link| | |
| 19 | − link.content = 'R.' + link.content | |
| 20 | − end | |
| 21 | − | |
| 22 | 17 | css('.params').each do |node| |
| 23 | 18 | # Remove params expand link |
| 24 | 19 | node.inner_html = node.at_css('.details').inner_html |
| 25 | 20 | node.prepend_child "<h4>Parameters</h4>" |
| 26 | 21 | |
| 27 | − # Count params | |
| 28 | − if ul = node.at_css('ul') | |
| 29 | − ul.name = 'ol' | |
| 30 | − end | |
| 31 | − | |
| 32 | 22 | # change param names to <code> |
| 33 | 23 | node.css('span.name').each do |n| |
| 34 | 24 | n.name = 'code' |
| 35 | − n.remove_attribute 'class' | |
| 36 | 25 | end |
| 37 | 26 | |
| 38 | − # change returns to <h4> to make consistant look with params header | |
| 39 | − if returns = node.at_css('span.returns') | |
| 40 | − returns.name = 'h4' | |
| 27 | + if n = node.at_css('> .panel-body') | |
| 28 | + n.before(n.at_css('span.returns').tap { |_n| _n.name = 'h4' }) | |
| 29 | + n.replace("<ul><li>#{n.to_html}</li></ul>") | |
| 41 | 30 | end |
| 42 | 31 | end |
| 43 | 32 | |
| @@ -46,6 +35,32 @@ module Docs · 2 unmodified lines | ||
| 46 | 35 | node.content = node.content |
| 47 | 36 | end |
| 48 | 37 | |
| 38 | + css('div.see').each do |node| | |
| 39 | + node.name = 'p' | |
| 40 | + end | |
| 41 | + | |
| 42 | + css('.see a').each do |node| | |
| 43 | + node.replace "<code>#{node.to_html}</code>" | |
| 44 | + end | |
| 45 | + | |
| 46 | + css('h2 + div > code:only-child').each do |node| | |
| 47 | + node.parent.name = 'pre' | |
| 48 | + node.parent.content = node.content | |
| 49 | + end | |
| 50 | + | |
| 51 | + css('.card').each do |node| | |
| 52 | + node.at_css('h2')['id'] = node['id'] if node['id'] | |
| 53 | + node.before(node.children).remove | |
| 54 | + end | |
| 55 | + | |
| 56 | + css('.panel-body', 'div.params', 'div.description', 'h2 > a').each do |node| | |
| 57 | + node.before(node.children).remove | |
| 58 | + end | |
| 59 | + | |
| 60 | + css('h2').each do |node| | |
| 61 | + node.name = 'h3' | |
| 62 | + end | |
| 63 | + | |
| 49 | 64 | doc |
| 50 | 65 | end |
| 51 | 66 | end |
| @@ -2,11 +2,8 @@ module Docs · 1 unmodified line | ||
| 2 | 2 | class Ramda |
| 3 | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | 4 | def additional_entries |
| 5 | − css('ul.toc li').map do |item| | |
| 6 | − name = item['data-name'] | |
| 7 | − category = item['data-category'] | |
| 8 | − | |
| 9 | − ['R.' + name, name, category] | |
| 5 | + css('ul.toc li').map do |node| | |
| 6 | + ["R.#{node['data-name']}", node['data-name'], node['data-category']] | |
| 10 | 7 | end |
| 11 | 8 | end |
| 12 | 9 | end |
| @@ -1,10 +1,8 @@ | ||
| 1 | 1 | module Docs |
| 2 | 2 | class Ramda < UrlScraper |
| 3 | − self.name = 'Ramda' | |
| 4 | − self.slug = 'ramda' | |
| 5 | 3 | self.type = 'ramda' |
| 6 | 4 | self.release = '0.19.1' |
| 7 | − self.base_url = 'http://ramdajs.com/docs' | |
| 5 | + self.base_url = "http://ramdajs.com/#{release}/docs/" | |
| 8 | 6 | self.links = { |
| 9 | 7 | home: 'http://ramdajs.com/', |
| 10 | 8 | code: 'https://github.com/ramda/ramda/' |
Binary file not shown.
Binary file not shown.
| @@ -1 +1 @@ | ||
| 1 | −https://camo.githubusercontent.com/0b4c12a5daec02b72e6e6879861ac70f75046e65/687474703a2f2f72616d64612e6a637068696c6c697070732e636f6d2f6c6f676f2f72616d646146696c6c65645f323030783233352e706e67 | |
| 1 | +http://ramda.jcphillipps.com/logo/ramdaFilled_200x235.png | |
Binary file not shown.
Binary file not shown.