Skip to content

Commit

Permalink
Linking to playground
Browse files Browse the repository at this point in the history
  • Loading branch information
polytypic committed Mar 17, 2017
1 parent 55bd81c commit cd951e8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ for manipulating non-JSON objects, such as [Immutable.js](#interfacing)
collections. A partial lens can *view* optional data, *insert* new data,
*update* existing data and *remove* existing data and can, for example, provide
*defaults* and maintain *required* data structure
parts. [Try Lenses!](https://calmm-js.github.io/partial.lenses/#)
parts. [Try Lenses!](https://calmm-js.github.io/partial.lenses/playground.html)

[![npm version](https://badge.fury.io/js/partial.lenses.svg)](http://badge.fury.io/js/partial.lenses)
[![Bower version](https://badge.fury.io/bo/partial.lenses.svg)](https://badge.fury.io/bo/partial.lenses)
Expand Down Expand Up @@ -192,7 +192,10 @@ bit with lenses.
> symbol, take you to an interactive version of this page where almost all of
> the code snippets are editable and evaluated in the browser. Note that due to
> the large number of snippets the interactive version of this page takes awhile
> to render.
> to render. There is also a
> separate
> [playground page](https://calmm-js.github.io/partial.lenses/playground.html)
> that allows you to quickly try out lenses.
As mentioned earlier, with lenses we can specify a path to focus on an element.
To specify such a path we use primitive lenses
Expand Down
9 changes: 6 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Try Partial Lenses with KLIPSE</title>
<title>Partial Lenses</title>
<link rel="icon" href="https://avatars1.githubusercontent.com/u/17234211">
<link rel="stylesheet" type="text/css" href="github.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/styles/googlecode.min.css">
Expand Down Expand Up @@ -41,7 +41,7 @@ <h1 id="-a-id-partial-lenses-a-partial-lenses-middot-gitter-https-img-shields-io
collections. A partial lens can <em>view</em> optional data, <em>insert</em> new data,
<em>update</em> existing data and <em>remove</em> existing data and can, for example, provide
<em>defaults</em> and maintain <em>required</em> data structure
parts. <a href="#">Try Lenses!</a></p>
parts. <a href="playground.html">Try Lenses!</a></p>
<p><a href="http://badge.fury.io/js/partial.lenses"><img src="https://badge.fury.io/js/partial.lenses.svg" alt="npm version"></a>
<a href="https://badge.fury.io/bo/partial.lenses"><img src="https://badge.fury.io/bo/partial.lenses.svg" alt="Bower version"></a>
<a href="https://travis-ci.org/calmm-js/partial.lenses"><img src="https://travis-ci.org/calmm-js/partial.lenses.svg?branch=master" alt="Build Status"></a>
Expand Down Expand Up @@ -272,7 +272,10 @@ <h3 id="getting-started">Getting started</h3>
symbol, take you to an interactive version of this page where almost all of
the code snippets are editable and evaluated in the browser. Note that due to
the large number of snippets the interactive version of this page takes awhile
to render.</p>
to render. There is also a
separate
<a href="playground.html">playground page</a>
that allows you to quickly try out lenses.</p>
</blockquote>
<p>As mentioned earlier, with lenses we can specify a path to focus on an element.
To specify such a path we use primitive lenses
Expand Down
4 changes: 2 additions & 2 deletions docs/playground.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Try Partial Lenses with KLIPSE</title>
<title>Partial Lenses Playground</title>
<link rel="icon" href="https://avatars1.githubusercontent.com/u/17234211">
<link rel="stylesheet" type="text/css" href="github.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/styles/googlecode.min.css">
Expand All @@ -12,7 +12,7 @@
<script type="text/javascript" src="start.js" async></script>
</head>
<body class="markdown-body">
<h1>Partial Lenses playground &middot; <a href="https://gitter.im/calmm-js/chat"><img src="https://img.shields.io/gitter/room/calmm-js/chat.js.svg" alt="Gitter"></a> <a href="https://github.com/calmm-js/partial.lenses"><img src="https://img.shields.io/github/stars/calmm-js/partial.lenses.svg?style=social" alt="GitHub stars"></a></h1>
<h1>Partial Lenses Playground &middot; <a href="https://gitter.im/calmm-js/chat"><img src="https://img.shields.io/gitter/room/calmm-js/chat.js.svg" alt="Gitter"></a> <a href="https://github.com/calmm-js/partial.lenses"><img src="https://img.shields.io/github/stars/calmm-js/partial.lenses.svg?style=social" alt="GitHub stars"></a></h1>
<p>Try partial lenses below:</p>
<pre><code class="hljs lang-js">L.modify([L.rewrite(R.join("")), L.elems, L.when((_, i) => i)],
c => "-" + c,
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-docs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

const title = "Try Partial Lenses with KLIPSE"
const title = "Partial Lenses"
const icon = "https://avatars1.githubusercontent.com/u/17234211"
const github = "https://github.com/calmm-js/partial.lenses"
const site = "https://calmm-js.github.io/partial.lenses/"
Expand Down

0 comments on commit cd951e8

Please sign in to comment.