Skip to content

Commit

Permalink
fix examples for jekyll (doesn't like _build)
Browse files Browse the repository at this point in the history
  • Loading branch information
duckpilot committed Aug 18, 2010
1 parent 756009c commit da21dfa
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 11 deletions.
4 changes: 3 additions & 1 deletion examples/dom/canvas/Makefile
@@ -1,5 +1,7 @@
JS=canvas.js

all: myocamlbuild.ml
ocamlbuild canvas.js
ocamlbuild $(JS); ln -s _build/$(JS) .

clean:
ocamlbuild -clean
Expand Down
2 changes: 1 addition & 1 deletion examples/dom/canvas/index.html
Expand Up @@ -4,6 +4,6 @@
</head>
<body>
<canvas id="canvas" width="150" height="150"></canvas>
<script src="_build/canvas.js"></script>
<script src="canvas.js"></script>
</body>
</html>
4 changes: 3 additions & 1 deletion examples/dom/minesweeper/Makefile
@@ -1,5 +1,7 @@
JS=main.js

all: myocamlbuild.ml
ocamlbuild main.js
ocamlbuild $(JS); ln -s _build/$(JS) .

clean:
ocamlbuild -clean
Expand Down
2 changes: 1 addition & 1 deletion examples/dom/minesweeper/index.html
Expand Up @@ -5,7 +5,7 @@
<head>
<title>Hello world</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="_build/main.js"></script>
<script type="text/javascript" src="main.js"></script>
</head>
<body>
<div id="main"></div>
Expand Down
4 changes: 3 additions & 1 deletion examples/dom/sudoku/Makefile
@@ -1,5 +1,7 @@
JS=sudoku.js

all: myocamlbuild.ml
ocamlbuild sudoku.js
ocamlbuild $(JS); ln -s _build/$(JS) .

clean:
ocamlbuild -clean
Expand Down
2 changes: 1 addition & 1 deletion examples/dom/sudoku/index.html
Expand Up @@ -6,6 +6,6 @@
<h2>Sudoku</h2>
<div id="board"></div>
<button id="check">Check</button>
<script src="_build/sudoku.js"></script>
<script src="sudoku.js"></script>
</body>
</html>
10 changes: 7 additions & 3 deletions examples/index.html
Expand Up @@ -11,12 +11,16 @@ <h3>Dom</h3>
<li>
<a href="dom/canvas/index.html">canvas</a>, a simple example taken from
the <a href="https://developer.mozilla.org/En/Canvas_tutorial">Mozilla
canvas tutorial</a>. (<a href="dom/canvas/">source</a>)
canvas tutorial</a>. (<a href="dom/canvas/canvas.ml">source</a>)
</li>
<li>
<a href="dom/minesweeper/index.html">minesweeper</a>, adapted from
the <a href="http://www.pps.jussieu.fr/~canou/obrowser/examples/minesweeper/">O'Browser
example</a>. (<a href="dom/minesweeper/">source</a>)
example</a>. (<a href="dom/minesweeper/main.ml">source</a>)
</li>
<li>
<a href="dom/sudoku/index.html">sudoku</a>, Sudoku rule
checker. (<a href="dom/sudoku/sudoku.ml">source</a>)
</li>
</ul>

Expand All @@ -30,7 +34,7 @@ <h3>jQuery</h3>
adapted from
the <a href="http://docs.jquery.com/Tutorials:Live_Examples_of_jQuery">Live
Examples of jQuery</a> tutorial.
(<a href="jquery/live_examples/">source</a>)</li>
(<a href="jquery/live_examples/live_examples.ml">source</a>)</li>
</ul>

</body>
Expand Down
4 changes: 3 additions & 1 deletion examples/jquery/live_examples/Makefile
@@ -1,5 +1,7 @@
JS=live_examples.js

all: myocamlbuild.ml
ocamlbuild live_examples.js
ocamlbuild $(JS); ln -s _build/$(JS) .

clean:
ocamlbuild -clean
Expand Down
2 changes: 1 addition & 1 deletion examples/jquery/live_examples/index.html
Expand Up @@ -7,7 +7,7 @@
<title>Live Examples of jQuery</title>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="_build/live_examples.js"></script>
<script type="text/javascript" src="live_examples.js"></script>

<style type="text/css">
.changeP{
Expand Down

0 comments on commit da21dfa

Please sign in to comment.