Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated stylesheets, minor changes.

  • Loading branch information...
commit e45dee75971f5a3bf81cf9b09b12c84c1d45b511 1 parent f4635ee
@h3rald authored
View
1  AUTHORS.textile
@@ -6,5 +6,6 @@
<li><a href="http://balcone.eveel.ru">Dmitry A. Ustalov</a> (eveel)</li>
<li><a href="http://www.stuartellis.eu">Stuart Ellis</a> (stuartellis)</li>
<li>Eric Givens (darthzippy)</li>
+ <li><a href="http://www.taylored-software.com/">Tammy Cravit</a> (tammycravit)</li>
</ul>
View
1,046 CHANGELOG.textile
@@ -3,296 +3,838 @@
- <div class="section">
-<h2 id="h_1">v0.4.2 &ndash; October 22th 2010</h2>
+ <div class="section">
+<h2 id="h_1">v0.5.1 &ndash; December 4th 2011</h2>
<div class="section">
-<h3 id="h_2">3 Features Implemented</h3>
-<table><tr><th>ID</th>
- <th>Description</th></tr>
-
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/172">#172</a></td>
- <td><p>A new output? macro macro can be used to test whether Glyph is compiling to a particular output format.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/175">#175</a></td>
- <td><p>The conditional macro now support a third parameter (else branch).</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/176">#176</a></td>
- <td><p>A bunch of new aliases and shortcuts are available for the section macro.</p></td></tr></table>
+<h3 id="h_2">2 Bugs Fixed</h3>
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Description</th>
+ </tr>
+
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/203">#203</a></td>
+ <td>
+<p>Fixed error in pubdate macro.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/204">#204</a></td>
+ <td>
+<p>Updated CodeRay stylesheet.</p>
+</td>
+ </tr>
+
+ </table>
</div>
-
-
- <div class="section">
-<h3 id="h_3">1 Bug Fixed</h3>
-<table><tr><th>ID</th>
- <th>Description</th></tr>
-
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/178">#178</a></td>
- <td><p>No error is raised anymore if less than the required parameters/attributes are supplied to a rewritten macro.</p></td></tr></table>
+
+
+ <p>
+<em>&rarr; View closed issues on <a href="https://github.com/h3rald/glyph/issues?direction=asc&amp;labels=0.5.1&amp;sort=created&amp;state=closed">GitHub</a>.</em>
+</p>
+
+</div>
+
+ <div class="section">
+<h2 id="h_3">v0.5.0 &ndash; August 28th 2011</h2>
+<div class="section">
+<h3 id="h_4">16 Features Implemented</h3>
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Description</th>
+ </tr>
+
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/152">#152</a></td>
+ <td>
+<p>It is now possible to generate a <span class="caps">PDF</span> document through HTML5, not only <span class="caps">HTML</span>, by setting the <code>output.pdf.through</code> setting to <code>html5</code>.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/165">#165</a></td>
+ <td>
+<p>The fragment macro and the embed macro can be used to delimit and embed text fragments, in a way much similar to snippets.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/177">#177</a></td>
+ <td>
+<p>Introduced the concept of &#8220;macro representations&#8221;, to make macro code output-independent.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/179">#179</a></td>
+ <td>
+<p>Macro can be composed with other macros via backslashes, provided that containers only take exactly one parameter. The new xml macro dispatcher must be used composed with other macros to create raw <span class="caps">XML</span> tags, prepending = to macro names no longer works.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/180">#180</a></td>
+ <td>
+<p>Glyph can now generate ebooks in <span class="caps">MOBI</span> and <span class="caps">EPUB</span> format &ndash; with Calibre&#8217;s help.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/181">#181</a></td>
+ <td>
+<p>By using the new let macro macro, it is possible to define lexically scoped &#8220;variables&#8221; via the attribute: macro, and retrieve them within the scope of the let macro using the attribute macro.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/182">#182</a></td>
+ <td>
+<p>A while macro can be used to execute glyph code multiple times.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/183">#183</a></td>
+ <td>
+<p>The s macro dispatcher can be used to call almost any instance method of the Ruby String class. The <code>match</code> macro cannot be used anymore; use <code>s/match</code> instead.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/184">#184</a></td>
+ <td>
+<p>The old <code>rewrite:</code> macro has been renamed to <code>define:</code>. The new define: macro fully supports recursion.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/189">#189</a></td>
+ <td>
+<p>The add macro, the subtract macro and the multiply macro macro can be used to perform operations on integers.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/190">#190</a></td>
+ <td>
+<p>The lt, gt, lte, gte macros can be used to compare integer values.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/194">#194</a></td>
+ <td>
+<p>The load macro macro can be used to embed the contents of a file without performing any evaluation.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/195">#195</a></td>
+ <td>
+<p><code>\/</code> must not be used as invisible space separator, instead of <code>\.</code>.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/197">#197</a></td>
+ <td>
+<p>Snippets are no longer managed via a separate snippet.yml file and <em>must</em> be defined within Glyph source files, using the snippet: macro.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/200">#200</a></td>
+ <td>
+<p>Typing <code>glyph -v</code> now prints the current version of Glyph on the screen.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/201">#201</a></td>
+ <td>
+<p>Glyph no longer depends on Jeweler to create and manage its gem.</p>
+</td>
+ </tr>
+
+ </table>
+
+</div>
+
+
+ <div class="section">
+<h3 id="h_5">4 Bugs Fixed</h3>
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Description</th>
+ </tr>
+
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/151">#151</a></td>
+ <td>
+<p>Fixed a bug related to Jeweler&#8217;s gemspec validation. And for all it matters, Jeweler is no longer a development dependency for Glyph.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/166">#166</a></td>
+ <td>
+<p>Temporary output files are now placed in a temporary folder.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/196">#196</a></td>
+ <td>
+<p>Glyph now handles non-<span class="caps">ASCII</span> characters properly with Ruby 1.9 as well.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/199">#199</a></td>
+ <td>
+<p>Fixed a bug that caused incorrect <span class="caps">TOC</span> nesting when using the <code>src</code> attribute of the section macro.</p>
+</td>
+ </tr>
+
+ </table>
+
+</div>
+
+
+ <p>
+<em>&rarr; View closed issues on <a href="https://github.com/h3rald/glyph/issues?direction=asc&amp;labels=0.5.0&amp;sort=created&amp;state=closed">GitHub</a>.</em>
+</p>
+
+</div>
+
+ <div class="section">
+<h2 id="h_6">v0.4.2 &ndash; October 22th 2010</h2>
+<div class="section">
+<h3 id="h_7">3 Features Implemented</h3>
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Description</th>
+ </tr>
+
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/172">#172</a></td>
+ <td>
+<p>A new output? macro can be used to test whether Glyph is compiling to a particular output format.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/175">#175</a></td>
+ <td>
+<p>The conditional macro now support a third parameter (else branch).</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/176">#176</a></td>
+ <td>
+<p>A bunch of new aliases and shortcuts are available for the section macro.</p>
+</td>
+ </tr>
+
+ </table>
</div>
+
+
+ <div class="section">
+<h3 id="h_8">1 Bug Fixed</h3>
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Description</th>
+ </tr>
+
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/178">#178</a></td>
+ <td>
+<p>No error is raised anymore if less than the required parameters/attributes are supplied to a rewritten macro.</p>
+</td>
+ </tr>
+
+ </table>
+
+</div>
+
+
+ <p>
+<em>&rarr; View closed issues on <a href="https://github.com/h3rald/glyph/issues?direction=asc&amp;labels=0.4.2&amp;sort=created&amp;state=closed">GitHub</a>.</em>
+</p>
</div>
- <div class="section">
-<h2 id="h_4">v0.4.1 &ndash; September 23th 2010</h2>
+ <div class="section">
+<h2 id="h_9">v0.4.1 &ndash; September 23th 2010</h2>
<div class="section">
-<h3 id="h_5">5 Bugs Fixed</h3>
-<table><tr><th>ID</th>
- <th>Description</th></tr>
-
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/169">#169</a></td>
- <td><p>*.scss files are now supported by the style macro.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/170">#170</a></td>
- <td><p>Improved default CodeRay stylesheet.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/171">#171</a></td>
- <td><p><span class="caps">SCSS</span> now used internally by Glyph to generate default <span class="caps">CSS</span> files.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/173">#173</a></td>
- <td><p>Consecutive escape sequences are now interpreted correctly in topics.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/174">#174</a></td>
- <td><p>Fixed error causing broken images in web5/html5 output.</p></td></tr></table>
+<h3 id="h_10">5 Bugs Fixed</h3>
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Description</th>
+ </tr>
+
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/169">#169</a></td>
+ <td>
+<p>*.scss files are now supported by the style macro.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/170">#170</a></td>
+ <td>
+<p>Improved default CodeRay stylesheet.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/171">#171</a></td>
+ <td>
+<p><span class="caps">SCSS</span> now used internally by Glyph to generate default <span class="caps">CSS</span> files.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/173">#173</a></td>
+ <td>
+<p>Consecutive escape sequences are now interpreted correctly in topics.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/174">#174</a></td>
+ <td>
+<p>Fixed error causing broken images in web5/html5 output.</p>
+</td>
+ </tr>
+
+ </table>
</div>
+
+
+ <p>
+<em>&rarr; View closed issues on <a href="https://github.com/h3rald/glyph/issues?direction=asc&amp;labels=0.4.1&amp;sort=created&amp;state=closed">GitHub</a>.</em>
+</p>
</div>
- <div class="section">
-<h2 id="h_6">v0.4.0 &ndash; September 3th 2010</h2>
+ <div class="section">
+<h2 id="h_11">v0.4.0 &ndash; September 3th 2010</h2>
<div class="section">
-<h3 id="h_7">13 Features Implemented</h3>
-<table><tr><th>ID</th>
- <th>Description</th></tr>
-
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/40">#40</a></td>
- <td><p>A new stats command can be used to display statistics about project files, snippets, macros, bookmarks and links.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/73">#73</a></td>
- <td><p>It is now possible to validate online <span class="caps">HTTP</span> links.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/112">#112</a></td>
- <td><p>It is now possible to use <em>wkhtmltopdf</em> instead of Prince to generate <span class="caps">PDF</span> files from <span class="caps">HTML</span> files.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/114">#114</a></td>
- <td><p>It is now possible to generate documents comprised of multiple files (topics).</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/115">#115</a></td>
- <td><p>It is now possible to define layouts (used when generating multi-file outputs) using Glyph macros.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/120">#120</a></td>
- <td><p>It is now possible to compile your project to a single HTML5 file (<code>html5</code> output) or multiple files (<code>web5</code> output)</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/135">#135</a></td>
- <td><p>Stylesheets can now be linked and imported as well as embedded.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/138">#138</a></td>
- <td><p><code>web</code> and <code>web5</code> output formats inherit <code>html</code> macros.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/142">#142</a></td>
- <td><p>A new navigation macro can be used in <code>web</code> and <code>web5</code> outputs to navigate through topics.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/143">#143</a></td>
- <td><p>A topic-based <span class="caps">TOC</span> is generated when compiling to <code>web</code> or <code>web5</code></p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/144">#144</a></td>
- <td><p>Two new validators are now available to check whether a macro has (or doesn&#8217;t have) a certain ancestor: <code>within</code> and <code>not_within</code>.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/147">#147</a></td>
- <td><p>The default stylesheets provided by Glyph are now compatible with HTML5 outputs (html5 and web5).</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/148">#148</a></td>
- <td><p>It is now possible to create custom tasks and commands to extend Glyph functionality.</p></td></tr></table>
+<h3 id="h_12">13 Features Implemented</h3>
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Description</th>
+ </tr>
+
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/40">#40</a></td>
+ <td>
+<p>A new stats command can be used to display statistics about project files, snippets, macros, bookmarks and links.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/73">#73</a></td>
+ <td>
+<p>It is now possible to validate online <span class="caps">HTTP</span> links.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/112">#112</a></td>
+ <td>
+<p>It is now possible to use <em>wkhtmltopdf</em> instead of Prince to generate <span class="caps">PDF</span> files from <span class="caps">HTML</span> files.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/114">#114</a></td>
+ <td>
+<p>It is now possible to generate documents comprised of multiple files (topics).</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/115">#115</a></td>
+ <td>
+<p>It is now possible to define layouts (used when generating multi-file outputs) using Glyph macros.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/120">#120</a></td>
+ <td>
+<p>It is now possible to compile your project to a single HTML5 file (<code>html5</code> output) or multiple files (<code>web5</code> output)</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/135">#135</a></td>
+ <td>
+<p>Stylesheets can now be linked and imported as well as embedded.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/138">#138</a></td>
+ <td>
+<p><code>web</code> and <code>web5</code> output formats inherit <code>html</code> macros.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/142">#142</a></td>
+ <td>
+<p>A new navigation macro can be used in <code>web</code> and <code>web5</code> outputs to navigate through topics.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/143">#143</a></td>
+ <td>
+<p>A topic-based <span class="caps">TOC</span> is generated when compiling to <code>web</code> or <code>web5</code></p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/144">#144</a></td>
+ <td>
+<p>Two new validators are now available to check whether a macro has (or doesn&#8217;t have) a certain ancestor: <code>within</code> and <code>not_within</code>.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/147">#147</a></td>
+ <td>
+<p>The default stylesheets provided by Glyph are now compatible with HTML5 outputs (html5 and web5).</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/148">#148</a></td>
+ <td>
+<p>It is now possible to create custom tasks and commands to extend Glyph functionality.</p>
+</td>
+ </tr>
+
+ </table>
</div>
-
-
- <div class="section">
-<h3 id="h_8">7 Bugs Fixed</h3>
-<table><tr><th>ID</th>
- <th>Description</th></tr>
-
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/133">#133</a></td>
- <td><p>Added <span class="caps">HTML</span> charset to Glyph documents (utf-8).</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/136">#136</a></td>
- <td><p>Moved utility functions to separate <code>Glyph::Utils</code> module.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/139">#139</a></td>
- <td><p>Heavily restructured Glyph configuration.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/140">#140</a></td>
- <td><p>Added <code>Glyph::Macro::Helpers</code> module to avoid code duplication in macros for different output formats.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/141">#141</a></td>
- <td><p>Prevented non-rb files to be loaded as macros.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/145">#145</a></td>
- <td><p>Dotfiles are now ignored by init command.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/167">#167</a></td>
- <td><p>Fixed <span class="caps">PDF</span> book download links.</p></td></tr></table>
+
+
+ <div class="section">
+<h3 id="h_13">7 Bugs Fixed</h3>
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Description</th>
+ </tr>
+
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/133">#133</a></td>
+ <td>
+<p>Added <span class="caps">HTML</span> charset to Glyph documents (utf-8).</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/136">#136</a></td>
+ <td>
+<p>Moved utility functions to separate <code>Glyph::Utils</code> module.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/139">#139</a></td>
+ <td>
+<p>Heavily restructured Glyph configuration.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/140">#140</a></td>
+ <td>
+<p>Added <code>Glyph::Macro::Helpers</code> module to avoid code duplication in macros for different output formats.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/141">#141</a></td>
+ <td>
+<p>Prevented non-rb files to be loaded as macros.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/145">#145</a></td>
+ <td>
+<p>Dotfiles are now ignored by init command.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/167">#167</a></td>
+ <td>
+<p>Fixed <span class="caps">PDF</span> book download links.</p>
+</td>
+ </tr>
+
+ </table>
</div>
+
+
+ <p>
+<em>&rarr; View closed issues on <a href="https://github.com/h3rald/glyph/issues?direction=asc&amp;labels=0.4.0&amp;sort=created&amp;state=closed">GitHub</a>.</em>
+</p>
</div>
- <div class="section">
-<h2 id="h_9">v0.3.0 &ndash; June 13th 2010</h2>
+ <div class="section">
+<h2 id="h_14">v0.3.0 &ndash; June 13th 2010</h2>
<div class="section">
-<h3 id="h_10">13 Features Implemented</h3>
-<table><tr><th>ID</th>
- <th>Description</th></tr>
-
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/39">#39</a></td>
- <td><p>A new outline command is available to display the document outline.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/110">#110</a></td>
- <td><p>It is now possible to use Glyph language to produce arbitrary <span class="caps">XML</span> code.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/111">#111</a></td>
- <td><p>System settings are now stored within a <code>system.*</code> namespace and cannot be changed via the config: macro or the config command.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/116">#116</a></td>
- <td><p>It is now possible to use named attributes within Glyph macros.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/119">#119</a></td>
- <td><p><a id="new_parser"></a>A new parser was implemented from scratch to improve performance. Treetop gem no longer required.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/121">#121</a></td>
- <td><p>Some macros have been removed in favor of <span class="caps">XML</span> fallback, others have been updated.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/123">#123</a></td>
- <td><p>The SyntaxNode class has been specialized to differentiate between macros, attributes, parameters, text and escapes.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/124">#124</a></td>
- <td><p>Implemented new article macro and book macro.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/126">#126</a></td>
- <td><p>A new rewrite: macro has been implemented to create simple macros using just Glyph code.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/127">#127</a></td>
- <td><p>A new alias macro has been implemented to create macro aliases.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/128">#128</a></td>
- <td><p>A blacklist for <span class="caps">XML</span> tags has been exposed via the <code>language.options.xml_blacklist</code> setting.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/129">#129</a></td>
- <td><p>The include macro can now be used in lite mode, it can evaluate ruby files and requires relative paths.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/130">#130</a></td>
- <td><p>A new &#8220;safe mode&#8221; has been implemented to explicitly forbid certain potentially unsafe macros.</p></td></tr></table>
+<h3 id="h_15">13 Features Implemented</h3>
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Description</th>
+ </tr>
+
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/39">#39</a></td>
+ <td>
+<p>A new outline command is available to display the document outline.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/110">#110</a></td>
+ <td>
+<p>It is now possible to use Glyph language to produce arbitrary <span class="caps">XML</span> code.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/111">#111</a></td>
+ <td>
+<p>System settings are now stored within a <code>system.*</code> namespace and cannot be changed via the config: macro or the config command.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/116">#116</a></td>
+ <td>
+<p>It is now possible to use named attributes within Glyph macros.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/119">#119</a></td>
+ <td>
+<p><a id="new_parser"></a>A new parser was implemented from scratch to improve performance. Treetop gem no longer required.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/121">#121</a></td>
+ <td>
+<p>Some macros have been removed in favor of <span class="caps">XML</span> fallback, others have been updated.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/123">#123</a></td>
+ <td>
+<p>The SyntaxNode class has been specialized to differentiate between macros, attributes, parameters, text and escapes.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/124">#124</a></td>
+ <td>
+<p>Implemented new article macro and book macro.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/126">#126</a></td>
+ <td>
+<p>A new <code>rewrite</code> macro has been implemented to create simple macros using just Glyph code.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/127">#127</a></td>
+ <td>
+<p>A new alias macro has been implemented to create macro aliases.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/128">#128</a></td>
+ <td>
+<p>A blacklist for <span class="caps">XML</span> tags has been exposed via the <code>language.options.xml_blacklist</code> setting.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/129">#129</a></td>
+ <td>
+<p>The include macro can now be used in lite mode, it can evaluate ruby files and requires relative paths.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/130">#130</a></td>
+ <td>
+<p>A new &#8220;safe mode&#8221; has been implemented to explicitly forbid certain potentially unsafe macros.</p>
+</td>
+ </tr>
+
+ </table>
</div>
-
-
- <div class="section">
-<h3 id="h_11">3 Bugs Fixed</h3>
-<table><tr><th>ID</th>
- <th>Description</th></tr>
-
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/109">#109</a></td>
- <td><p>Performance has been dramatically improved by implementing a parser from scratch (see <a href="#new_parser">#119</a>)</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/122">#122</a></td>
- <td><p>Macro encoding/decoding no longer necessary due to the new parser (see <a href="#new_parser">#119</a>)</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/125">#125</a></td>
- <td><p>Warning messages have been streamlined.</p></td></tr></table>
+
+
+ <div class="section">
+<h3 id="h_16">3 Bugs Fixed</h3>
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Description</th>
+ </tr>
+
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/109">#109</a></td>
+ <td>
+<p>Performance has been dramatically improved by implementing a parser from scratch (see <a href="#new_parser">#119</a>)</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/122">#122</a></td>
+ <td>
+<p>Macro encoding/decoding no longer necessary due to the new parser (see <a href="#new_parser">#119</a>)</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/125">#125</a></td>
+ <td>
+<p>Warning messages have been streamlined.</p>
+</td>
+ </tr>
+
+ </table>
</div>
+
+
+ <p>
+<em>&rarr; View closed issues on <a href="https://github.com/h3rald/glyph/issues?direction=asc&amp;labels=0.3.0&amp;sort=created&amp;state=closed">GitHub</a>.</em>
+</p>
</div>
- <div class="section">
-<h2 id="h_12">v0.2.0 &ndash; May 9th 2010</h2>
+ <div class="section">
+<h2 id="h_17">v0.2.0 &ndash; May 9th 2010</h2>
<div class="section">
-<h3 id="h_13">11 Features Implemented</h3>
-<table><tr><th>ID</th>
- <th>Description</th></tr>
-
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/62">#62</a></td>
- <td><p>A new highlight macro is available to highlight source code (CodeRay or UltraViolet required).</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/76">#76</a></td>
- <td><p>It is now possible to use Glyph programmatically via the new <code>Glyph#filter</code> and <code>Glyph#compile</code> methods.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/87">#87</a></td>
- <td><p>It is now possible to define snippets inside a Glyph source file using the snippet: macro.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/88">#88</a></td>
- <td><p>It is now possible to change configuration settings inside a Glyph source file using the config: macro (Jabbslad).</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/89">#89</a></td>
- <td><p>It is now possible to compile a single Glyph source file without creating a Glyph project.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/92">#92</a></td>
- <td><p>6 new macros have been defined to allow conditional processing (condition macro, eq macro, not macro, and macro, or macro, match macro)</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/94">#94</a></td>
- <td><p>It is now possible to add <em>validators</em> to macros, for example to check the number of parameters they take.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/97">#97</a></td>
- <td><p>The compile command command can now take an extra <code>--auto</code> switch to trigger document auto-regeneration whenever a source file is changed (koraktor).</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/99">#99</a></td>
- <td><p>Added a <code>document.draft</code> setting. If set to <code>true</code>, comments and TODOs are rendered in output files.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/100">#100</a></td>
- <td><p><a id="system_css"></a>Glyph <span class="caps">CSS</span> files are no longer copied to new projects, but they can be referenced as if they were (see also <a href="#css_not_copied">#93</a>).</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/108">#108</a></td>
- <td><p>It is now possible to define Glyph macros within Glyph source files using the macro: macro.</p></td></tr></table>
+<h3 id="h_18">11 Features Implemented</h3>
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Description</th>
+ </tr>
+
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/62">#62</a></td>
+ <td>
+<p>A new highlight macro is available to highlight source code (CodeRay or UltraViolet required).</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/76">#76</a></td>
+ <td>
+<p>It is now possible to use Glyph programmatically via the new <code>Glyph#filter</code> and <code>Glyph#compile</code> methods.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/87">#87</a></td>
+ <td>
+<p>It is now possible to define snippets inside a Glyph source file using the snippet: macro.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/88">#88</a></td>
+ <td>
+<p>It is now possible to change configuration settings inside a Glyph source file using the config: macro (Jabbslad).</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/89">#89</a></td>
+ <td>
+<p>It is now possible to compile a single Glyph source file without creating a Glyph project.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/92">#92</a></td>
+ <td>
+<p>6 new macros have been defined to allow conditional processing (condition macro, eq macro, not macro, and macro, or macro, match macro)</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/94">#94</a></td>
+ <td>
+<p>It is now possible to add <em>validators</em> to macros, for example to check the number of parameters they take.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/97">#97</a></td>
+ <td>
+<p>The compile command command can now take an extra <code>--auto</code> switch to trigger document auto-regeneration whenever a source file is changed (koraktor).</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/99">#99</a></td>
+ <td>
+<p>Added a <code>document.draft</code> setting. If set to <code>true</code>, comments and TODOs are rendered in output files.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/100">#100</a></td>
+ <td>
+<p><a id="system_css"></a>Glyph <span class="caps">CSS</span> files are no longer copied to new projects, but they can be referenced as if they were (see also <a href="#css_not_copied">#93</a>).</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/108">#108</a></td>
+ <td>
+<p>It is now possible to define Glyph macros within Glyph source files using the macro: macro.</p>
+</td>
+ </tr>
+
+ </table>
</div>
-
-
- <div class="section">
-<h3 id="h_14">8 Bugs Fixed</h3>
-<table><tr><th>ID</th>
- <th>Description</th></tr>
-
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/86">#86</a></td>
- <td><p>Warning and error messages have been updated, and it is now possible to show additional debug information. Additionally, syntax errors are now handled before the document is processed.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/93">#93</a></td>
- <td><p><a id="css_not_copied"></a>Default css files were not copied when creating a new project. The issue has been resolved by allowing the style macro to reference Glyph&#8217;s system styles (see also <a href="#system_css">#100</a>).</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/95">#95</a></td>
- <td><p>The config command did not save data to <span class="caps">YAML</span> configuration files. This has been fixed ensuring that internal configuration overrides are not saved to the <span class="caps">YAML</span> file too.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/98">#98</a></td>
- <td><p>Glyph is now fully compatible with Ruby 1.9.1 and JRuby 1.4.0.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/101">#101</a></td>
- <td><p>Additional tests have been developed to improve Textile support. There should no longer be errors when using textile block elements inside Glyph macros.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/103">#103</a></td>
- <td><p>Fixed a bug that caused test failures when deleting the test project directory.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/104">#104</a></td>
- <td><p>Nested Glyph macros calling <code>Macro#interpret</code> no longer ignore escape delimiters.</p></td></tr>
-
- <tr><td><a href="http://github.com/h3rald/glyph/issues/closed#issue/107">#107</a></td>
- <td><p>Added the possibility to encode (using the <code>encode</code> macro) and decode (using the <code>decode</code> macro) macros so that they can be interpreted later.</p></td></tr></table>
+
+
+ <div class="section">
+<h3 id="h_19">8 Bugs Fixed</h3>
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Description</th>
+ </tr>
+
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/86">#86</a></td>
+ <td>
+<p>Warning and error messages have been updated, and it is now possible to show additional debug information. Additionally, syntax errors are now handled before the document is processed.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/93">#93</a></td>
+ <td>
+<p><a id="css_not_copied"></a>Default css files were not copied when creating a new project. The issue has been resolved by allowing the style macro to reference Glyph&#8217;s system styles (see also <a href="#system_css">#100</a>).</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/95">#95</a></td>
+ <td>
+<p>The config command did not save data to <span class="caps">YAML</span> configuration files. This has been fixed ensuring that internal configuration overrides are not saved to the <span class="caps">YAML</span> file too.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/98">#98</a></td>
+ <td>
+<p>Glyph is now fully compatible with Ruby 1.9.1 and JRuby 1.4.0.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/101">#101</a></td>
+ <td>
+<p>Additional tests have been developed to improve Textile support. There should no longer be errors when using textile block elements inside Glyph macros.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/103">#103</a></td>
+ <td>
+<p>Fixed a bug that caused test failures when deleting the test project directory.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/104">#104</a></td>
+ <td>
+<p>Nested Glyph macros calling <code>Macro#interpret</code> no longer ignore escape delimiters.</p>
+</td>
+ </tr>
+
+ <tr>
+ <td><a href="https://github.com/h3rald/glyph/issues/107">#107</a></td>
+ <td>
+<p>Added the possibility to encode (using the <code>encode</code> macro) and decode (using the <code>decode</code> macro) macros so that they can be interpreted later.</p>
+</td>
+ </tr>
+
+ </table>
</div>
+
+
+ <p>
+<em>&rarr; View closed issues on <a href="https://github.com/h3rald/glyph/issues?direction=asc&amp;labels=0.2.0&amp;sort=created&amp;state=closed">GitHub</a>.</em>
+</p>
</div>
- <div class="section">
-<h2 id="h_15">v0.1.0 &ndash; April 8th 2010</h2>
+ <div class="section">
+<h2 id="h_20">v0.1.0 &ndash; April 8th 2010</h2>
Initial release.
+ <p>
+<em>&rarr; View closed issues on <a href="https://github.com/h3rald/glyph/issues?direction=asc&amp;labels=0.1.0&amp;sort=created&amp;state=closed">GitHub</a>.</em>
+</p>
+
</div>
View
5 LICENSE.textile
@@ -1,4 +1,4 @@
-<p>Copyright &copy; 2010 <strong>Fabio Cevasco</strong>, <a href="http://www.h3rald.com">http://www.h3rald.com</a></p>
+<p>Copyright &copy; 2010-2011 <strong>Fabio Cevasco</strong>, <a href="http://www.h3rald.com">http://www.h3rald.com</a></p>
<p>Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@@ -13,4 +13,5 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.</p>
+THE SOFTWARE.
+</p>
View
2  book/config.yml
@@ -4,7 +4,7 @@
:subtitle: Rapid Document Authoring Framework
:author: Fabio Cevasco
:draft: true
- :revision: v0.5.0
+ :revision: v0.5.1
:filename: glyph
:title: Glyph
:styles: link
View
2  book/lib/tasks/tasks.rake
@@ -2,7 +2,7 @@ namespace :custom do
task :generate, [:file] do |t, args|
generate = lambda do |source, destination|
Glyph.info "Generating #{destination}..."
- Glyph.compile Glyph::PROJECT/"text/#{source}.glyph", Glyph::PROJECT/"../#{destination}.textile"
+ Glyph.compile Glyph::PROJECT/"text/#{source}.glyph", "#{Glyph::PROJECT/"../#{destination}.textile"}"
end
files = {
:AUTHORS => :acknowledgements,
View
6 book/text/changelog.glyph
@@ -39,6 +39,12 @@ def:[issue|
%:[#>|"#{value} command"]
%:[$>|"#{value} setting"]
]
+release[0.5.1|December 4th 2011|
+ bugs[
+ issue[203|Fixed error in %>[pubdate].]
+ issue[204|Updated CodeRay stylesheet.]
+ ]
+]
release[0.5.0|August 28th 2011|
features[
issue[152|It is now possible to generate a PDF document through HTML5, not only HTML, by setting the @output.pdf.through@ setting to @html5@.]
View
2  book/text/license.glyph
@@ -1,4 +1,4 @@
-p[Copyright &copy; 2010 strong[Fabio Cevasco], =>[http://www.h3rald.com]]
+p[Copyright &copy; 2010-2011 strong[Fabio Cevasco], =>[http://www.h3rald.com]]
p[Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
View
39 styles/default.css
@@ -38,21 +38,20 @@ body {
text-align: center; }
.titlepage h1 {
font-size: 2.5em;
- line-height: 1.2em;
font-weight: bold;
+ line-height: 1.5em;
margin-bottom: 0.2em; }
.halftitlepage h1 {
font-size: 2.5em;
font-weight: bold;
+ line-height: 1.5em;
margin-bottom: 0.2em; }
.halftitlepage h2 {
font-size: 1.1em;
font-style: italic;
font-weight: bold;
- padding-top: 0;
- margin-top: 0;
- line-height: 2.5em;
+ line-height: 1.2em;
margin-bottom: 0.5em;
prince-bookmark-level: none; }
@@ -60,9 +59,7 @@ body {
font-size: 1.1em;
font-style: italic;
font-weight: bold;
- padding-top: 0;
- margin-top: 0;
- line-height: 2.5em;
+ line-height: 1.2em;
margin-bottom: 0.5em;
prince-bookmark-level: none; }
@@ -129,16 +126,11 @@ sup {
margin: auto;
text-align: center; }
-code {
- font-size: 0.8em;
-}
-
.note, .important, .tip, .caution, .box {
- border: 1px solid #CCC;
+ border: 1px solid #e6e6e6;
display: block;
margin: 0.5em auto;
- padding: 1em;
- padding-top: 0em;
+ padding: 0 0.5em;
width: 600px;
background: #EEE;
color: #1F1F1F; }
@@ -154,10 +146,7 @@ code {
.box-title {
display: block;
text-align: center;
- font-weight: bold;
- font-size: 120%;
- margin: 0.5em;
-}
+ font-weight: bold; }
.comment {
display: block;
@@ -212,6 +201,18 @@ a {
a:hover {
color: #005b91; }
+.code > pre {
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
+ color: #222;
+ padding: 20px;
+ overflow: auto hidden;
+ margin: 20px 0 20px 0; }
+
+code, .CodeRay {
+ font-size: 0.8em; }
+
span.line-numbers {
margin: 0;
padding: 3px; }
@@ -248,7 +249,7 @@ td p, td ul, td ol {
/* FONTS */
body {
- font-family: 'Crimson Text', 'Palatino', 'Bookman', 'Georgia', 'Times'; }
+ font-family: "Gentium Book Basic", "Book Antiqua", "Times New Roman", "Serif"; }
code, pre {
font-family: "Droid Sans Mono", "Consolas", "Monaco", "Courier", "Monospace"; }
View
4 styles/definitions.scss
@@ -10,9 +10,7 @@ $link-hover-color: #005B91;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
- background-color: #222;
- font-family: 'Courier New', 'Terminal', monospace;
- color: #E6E0DB;
+ color: #222;
padding: 20px;
overflow: auto hidden;
margin: 20px 0 20px 0; }
View
60 styles/pagination.css
@@ -93,36 +93,6 @@ ol.toc {
.toc ol ol ol ol li[class~=appendix]::before {
content: counter(appendix1, upper-latin) "." counter(toc2) "." counter(toc3) "." counter(toc4) "." counter(toc5) " "; }
-h2, section h1 {
- padding-top: 2em;
- string-set: chapter-title content();
- page-break-before: always; }
-
-.halftitlepage h2, .titlepage h2 {
- page-break-before: avoid; }
-
-.bodymatter .chapter h2, .bodymatter .chapter h1 {
- counter-increment: h2;
- counter-reset: h3; }
-
-.backmatter h2, .backmatter h1 {
- counter-increment: a2;
- counter-reset: h3; }
-
-.bodymatter h3, .backmatter h3, .bodymatter section h1, .backmatter section h1 {
- counter-increment: h3;
- counter-reset: h4; }
-
-.bodymatter h4, .backmatter h4, .bodymatter section section h1, .backmatter section section h1 {
- counter-increment: h4;
- counter-reset: h5; }
-
-.bodymatter h5, .backmatter h5, .bodymatter section section section h1, .backmatter section section section h1 {
- counter-increment: h5; }
-
-h1, h2, h3, h4, h5 {
- page-break-after: avoid; }
-
div.frontmatter {
page: frontmatter; }
div.backmatter {
@@ -159,6 +129,36 @@ div.backmatter {
.backmatter h5::before, .bodymatter section section section section h2:before {
content: counter(a2, upper-latin) "." counter(h3) "." counter(h4) "." counter(h5) " "; }
+h2, section h1 {
+ padding-top: 2em;
+ string-set: chapter-title content();
+ page-break-before: always; }
+
+.halftitlepage h2, .titlepage h2 {
+ page-break-before: avoid; }
+
+.bodymatter h2, .bodymatter h1 {
+ counter-increment: h2;
+ counter-reset: h3; }
+
+.backmatter h2, .backmatter h1 {
+ counter-increment: a2;
+ counter-reset: h3; }
+
+.bodymatter h3, .backmatter h3, .bodymatter section h1, .backmatter section h1 {
+ counter-increment: h3;
+ counter-reset: h4; }
+
+.bodymatter h4, .backmatter h4, .bodymatter section section h1, .backmatter section section h1 {
+ counter-increment: h4;
+ counter-reset: h5; }
+
+.bodymatter h5, .backmatter h5, .bodymatter section section section h1, .backmatter section section section h1 {
+ counter-increment: h5; }
+
+h1, h2, h3, h4, h5 {
+ page-break-after: avoid; }
+
.box, .note, .important, .tip, .caution, .code {
page-break-inside: avoid; }
Please sign in to comment.
Something went wrong with that request. Please try again.