doc/docs/getting_started.html in motion-prime-0.4.3 vs doc/docs/getting_started.html in motion-prime-0.4.4
- old
+ new
@@ -9,10 +9,31 @@
</head>
<body>
<div id="container">
<div id="background"></div>
+ <ul id="jump_to">
+ <li>
+ <a class="large" href="javascript:void(0);">Jump To …</a>
+ <a class="small" href="javascript:void(0);">+</a>
+ <div id="jump_wrapper">
+ <div id="jump_page">
+
+
+ <a class="source" href="getting_started.html">
+ getting_started.rb
+ </a>
+
+
+ <a class="source" href="screens.html">
+ screens.rb
+ </a>
+
+ </div>
+ </li>
+ </ul>
+
<ul class="sections">
<li id="title">
<div class="annotation">
<h1>getting_started.rb</h1>
@@ -96,20 +117,20 @@
<div class="pilwrap ">
<a class="pilcrow" href="#section-5">¶</a>
</div>
<p><strong>3. Create the main screen.</strong></p>
-<p>You should rewrite the <code>render</code> method, which will be runned after opening screen.</p>
+<p>You should rewrite the <code>render</code> method, which will be runned after first opening screen.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="class"><span class="keyword">class</span> <span class="title">MainScreen</span> <span class="inheritance">< <span class="parent">Prime::BaseScreen</span></span></span>
title <span class="string">'Main screen'</span>
<span class="function"><span class="keyword">def</span> <span class="title">render</span></span>
- <span class="variable">@main_section</span> = <span class="constant">MyProfileSection</span>.new(<span class="symbol">model:</span> <span class="constant">User</span>.first)
- <span class="variable">@main_section</span>.render(<span class="symbol">to:</span> <span class="keyword">self</span>)
+ <span class="variable">@main_section</span> = <span class="constant">MyProfileSection</span>.new(<span class="symbol">screen:</span> <span class="keyword">self</span>, <span class="symbol">model:</span> <span class="constant">User</span>.first)
+ <span class="variable">@main_section</span>.render
<span class="keyword">end</span>
<span class="keyword">end</span></pre></div></div>
</li>
@@ -120,11 +141,11 @@
<div class="pilwrap ">
<a class="pilcrow" href="#section-6">¶</a>
</div>
<p><strong>4. Create your first section.</strong></p>
<p>"Section" is something like helper, which contains "Elements".</p>
-<p>Each element will be added to the parent screen when you run <code>section.render(to: screen)</code></p>
+<p>Each element will be added to the parent screen when you run <code>section.render</code></p>
</div>
<div class="content"><div class='highlight'><pre><span class="class"><span class="keyword">class</span> <span class="title">MyProfileSection</span> <span class="inheritance">< <span class="parent">Prime::BaseSection</span></span></span>
element <span class="symbol">:title</span>, <span class="symbol">text:</span> <span class="string">"Hello World"</span>
@@ -139,12 +160,12 @@
<div class="pilwrap ">
<a class="pilcrow" href="#section-7">¶</a>
</div>
<p><strong>5. Create your first stylesheet file.</strong></p>
-<p>Styles will be applied to each element in section.
+<p>Styles will be applied to each element in section.
The simplest rule by default is: <code>:section-name_:element-name</code>.</p>
-<p>E.g. if you have 'MyProfileSection' (the name for section by default will be - <code>my_profile</code>)
+<p>E.g. if you have 'MyProfileSection' (the name for section by default will be - <code>my_profile</code>)
and 'title' element, then you should use <code>my_profile_title</code> style name.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="constant">Prime::Styles</span>.define <span class="keyword">do</span>