From 23d10a966eccdc64b1bf3de3f186c42a6dbbffe0 Mon Sep 17 00:00:00 2001 From: thurt Date: Sat, 6 Aug 2016 10:35:14 -0400 Subject: [PATCH 1/2] adds-symbols - initial commit --- custom.css | 10 +++++++++- docs/index.html.handlebars | 21 ++++++++++++++++++++- jsdoc/publish.js | 7 +++++++ 3 files changed, 36 insertions(+), 2 deletions(-) diff --git a/custom.css b/custom.css index 4f25919f..aa4342ce 100644 --- a/custom.css +++ b/custom.css @@ -17,4 +17,12 @@ width: 100%; word-wrap: break-word; } -/* End Fixes long function names ... */ \ No newline at end of file +/* End Fixes long function names ... */ + +/* reset
 formatting for .symbol class */
+.card .symbol {
+  margin: 0;
+  color: #333333;
+  background: white;
+}
+
diff --git a/docs/index.html.handlebars b/docs/index.html.handlebars
index e0ddc1bf..90ff11a0 100644
--- a/docs/index.html.handlebars
+++ b/docs/index.html.handlebars
@@ -107,7 +107,26 @@
             {{/if}}
 
             
{{{description}}}
- + + {{#if symb}} + + + + + + + + + {{#each symb}} + + + + + {{/each}} + +
InputOutput
{{input}}
{{output}}
+ {{/if}} + {{#if aka}}
Known in other languages or libraries as diff --git a/jsdoc/publish.js b/jsdoc/publish.js index f649d391..0c0c9b2c 100644 --- a/jsdoc/publish.js +++ b/jsdoc/publish.js @@ -90,6 +90,13 @@ var simplifyData = function(d) { see: d.see == null ? [] : simplifySee(d.see), sigs: valuesForTitle('sig', d.tags).map(prettifySig), since: d.since == null ? '' : d.since, + symb: valuesForTitle('symb', d.tags).map(function(symb) { + var split = symb.split('=').map(function(s) { return s.trim() }) + return { + input: split[0], + output: split[1] + } + }), typedefns: valuesForTitle('typedefn', d.tags).map(prettifySig), }; }; From 244111289a2847783841667b4abdfb20d189e606 Mon Sep 17 00:00:00 2001 From: thurt Date: Mon, 8 Aug 2016 14:01:58 -0400 Subject: [PATCH 2/2] moved custom.css to less/custom.less, added import directive for custom.less to less/ramda.less, removed link tag for custom.css in docs/index.html.handlebars --- docs/index.html.handlebars | 2 -- custom.css => less/custom.less | 1 - less/ramda.less | 1 + 3 files changed, 1 insertion(+), 3 deletions(-) rename custom.css => less/custom.less (89%) diff --git a/docs/index.html.handlebars b/docs/index.html.handlebars index 90ff11a0..4c31327e 100644 --- a/docs/index.html.handlebars +++ b/docs/index.html.handlebars @@ -5,8 +5,6 @@ Ramda Documentation - - diff --git a/custom.css b/less/custom.less similarity index 89% rename from custom.css rename to less/custom.less index aa4342ce..7b4d5178 100644 --- a/custom.css +++ b/less/custom.less @@ -1,7 +1,6 @@ /* Custimizations on top of base style.css - This file must be included *after* style.css */ diff --git a/less/ramda.less b/less/ramda.less index 7b1a1a56..2b0836aa 100644 --- a/less/ramda.less +++ b/less/ramda.less @@ -1,4 +1,5 @@ @import "node_modules/bootstrap/less/bootstrap"; +@import "custom"; @import "variables"; @import "layout"; @import "header";