Skip to content

Commit 65797cc

Browse files
committed
convert liquid syntax markup to fence
1 parent 7b2a624 commit 65797cc

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

docs/_posts/2015-11-21-getting_started.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ Requires JRubyArt-1.0.1+ (hence jruby-9.0.3.0+)
1111

1212
### Install the generative gem
1313

14-
{% highlight bash %}
14+
```bash
1515
jruby -S gem install geomerative # safe way
1616
gem install geomerative # using rvm rbenv to use jruby instead of MRI
17-
{% endhighlight %}
17+
```
1818

1919
Create basic sketch
2020

21-
{% highlight bash %}
21+
```bash
2222
mkdir 'fred'
2323
mkdir 'fred/data'
2424
cp '/usr/share/fonts/TTF/FreeMono.ttf fred/data' # other fonts are available
2525
# '/usr/share/fonts/TTF/LiberationMono-Bold.ttf' Mac and Windows paths differ
2626
cd fred
2727
k9 create fred 600 400
28-
{% endhighlight %}
28+
```
2929

3030
Edit sketch as follows:-
3131

32-
{% highlight ruby %}
32+
```ruby
3333
require 'geomerative'
3434

3535
# Declare the objects we are going to use, so that they are accessible from
@@ -53,7 +53,7 @@ end
5353
def settings
5454
size(600, 400)
5555
end
56-
{% endhighlight %}
56+
```
5757

5858
![fred.png]({{site.github.url}}/assets/fred.png)
5959

docs/_posts/2015-11-25-bubbles.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To use the `RCommand` constant `UNIFORMLENGTH` in JRubyArt (and java constants i
1111

1212
To make processing methods available in the `FontAgent` class (`font_agent.rb`) we `include` the `Processing::Proxy` module that gives similar access to that of a java inner class as used in vanilla processing.
1313

14-
{% highlight ruby %}
14+
```ruby
1515
# --------- GEOMERATIVE EXAMPLES ---------------
1616
#
1717
# This sketch deforms the text using noise as the underlying
@@ -77,10 +77,10 @@ def key_pressed
7777
@step -= 1
7878
end
7979
end
80-
{% endhighlight %}
80+
8181

8282
### FontAgent class
83-
{% highlight ruby %}
83+
```ruby
8484
# FontAgent class handles motion and display
8585
class FontAgent
8686
include Processing::Proxy # gives java 'inner class like' access to App
@@ -106,6 +106,6 @@ class FontAgent
106106
ellipse(loc.x, loc.y, mot + step, mot + step)
107107
end
108108
end
109-
{% endhighlight %}
109+
110110
111111
![bubbles.png]({{ site.github.url }}/assets/bubbles.png)

docs/_posts/2015-11-26-extra_bright.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ date: 2015-11-26 13:48:13
77
### Extra Bright
88

99

10-
{% highlight ruby %}
10+
```ruby
1111
# --------- GEOMERATIVE EXAMPLES ---------------
1212
# //////////////////////////////////////////////
1313
# Title : TypoGeo_ExtraBright
@@ -66,10 +66,10 @@ def draw
6666
point.display(xr: xr, yr: yr, m_point: m_point)
6767
end
6868
end
69-
{% endhighlight %}
69+
7070

7171
### FontAgent class
72-
{% highlight ruby %}
72+
```ruby
7373
# FontAgent class handles motion and display
7474
class FontAgent
7575
include Processing::Proxy # gives java 'inner class like' access to App
@@ -98,6 +98,6 @@ class FontAgent
9898
ellipse(loc.x + rand(-xr..xr), loc.y + rand(-yr..yr), dia, dia)
9999
end
100100
end
101-
{% endhighlight %}
101+
102102
103103
![bright.png]({{ site.github.url }}/assets/bright.png)

docs/_posts/2015-11-26-text_merge.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords: tutorial, design, merge
99

1010
Bertrand Fevre should be particulary proud of this little gem, it is not immediately obvious why it should work.
1111

12-
{% highlight ruby %}
12+
```ruby
1313
#######################/
1414
# --------- GEOMERATIVE EXAMPLES ---------------
1515
#######################
@@ -104,7 +104,7 @@ def key_pressed
104104
save_frame(data_path('000_###.png'))
105105
end
106106
end
107-
{% endhighlight %}
107+
108108

109109
<iframe src="https://player.vimeo.com/video/56827310" width="500" height="276" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
110110
<!-- In case video goes missing

docs/_posts/2016-07-06-dymo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ categories: geomerativegem update
99

1010
To use the `RCommand` constant `UNIFORMLENGTH` in JRubyArt (and java constants in general with jruby) you would normally need to address it in the following way:- `Java::Generative::RCommand::UNIFORMLENGTH`. However in the geomerative gem we have done `package_include 'geomerative'` for you so you can get away with the short form `RCommand::UNIFORMLENGTH`, but you do need the `RCommand::` prefix. For processing constants the full form for the `RIGHT` constant would be `Java::ProcessingCore::PConstants::RIGHT` but because we hate typing we have made the processing constant `RIGHT` available without the `PConstants::` prefix. If you have namespace difficulties you can always fall back on the full forms.
1111

12-
{% highlight ruby %}
12+
```ruby
1313
# Louis Christodoulou (louis -at- louisc.co.uk)
1414
#
1515
# Very quickly thrown together code whilst learning how the
@@ -94,6 +94,6 @@ def get_angle(p1, p2)
9494
atan2(p2.y - p1.y, p2.x - p1.x)
9595
end
9696

97-
{% endhighlight %}
97+
9898

9999
![dymo.png]({{ site.github.url }}/assets/dymo.png)

0 commit comments

Comments
 (0)