Skip to content

adds-symbols - initial commit #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions docs/index.html.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ramda Documentation</title>
<link rel="stylesheet" type="text/css" href="../style.css">
<!-- custom.css must go after base style.css -->
<link rel="stylesheet" type="text/css" href="../custom.css">
</head>
<body>
<input type="checkbox" id="open-nav">
Expand Down Expand Up @@ -107,7 +105,26 @@
{{/if}}

<div class="description">{{{description}}}</div>


{{#if symb}}
<table class="table table-sm">
<thead>
<tr>
<th>Input</th>
<th>Output</th>
</tr>
</thead>
<tbody>
{{#each symb}}
<tr>
<td><pre class="symbol">{{input}}</pre></td>
<td><pre class="symbol">{{output}}</pre></td>
</tr>
{{/each}}
</tbody>
</table>
{{/if}}

{{#if aka}}
<div class="aka">
Known in other languages or libraries as
Expand Down
7 changes: 7 additions & 0 deletions jsdoc/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
};
Expand Down
11 changes: 9 additions & 2 deletions custom.css → less/custom.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
Custimizations on top of base style.css

This file must be included *after* style.css
*/


Expand All @@ -17,4 +16,12 @@
width: 100%;
word-wrap: break-word;
}
/* End Fixes long function names ... */
/* End Fixes long function names ... */

/* reset <pre> formatting for .symbol class */
.card .symbol {
margin: 0;
color: #333333;
background: white;
}

1 change: 1 addition & 0 deletions less/ramda.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "node_modules/bootstrap/less/bootstrap";
@import "custom";
@import "variables";
@import "layout";
@import "header";
Expand Down