Skip to content

Commit ed801fd

Browse files
committed
style index page
1 parent 967d959 commit ed801fd

File tree

1 file changed

+2
-32
lines changed

1 file changed

+2
-32
lines changed

style/index.md

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,12 @@
11
---
2-
layout: index
2+
layout: inner-page-no-masthead
33
title: Scala Style Guide
44
---
55

6+
This document is intended to outline some basic Scala stylistic guidelines which should be followed with more or less fervency. Wherever possible, this guide attempts to detail why a particular style is encouraged and how it relates to other alternatives. As with all style guides, treat this document as a list of rules to be broken. There are certainly times when alternative styles should be preferred over the ones given here.
67
<div class="span8">
7-
<div class="page-header-index">
8-
<h1>Contents</h1>
9-
</div>
10-
11-
<!-- We have to hard-code the comments until Jekyll can deal with liquid raw tags.
12-
{% for pg in site.pages %}
13-
{% if pg.partof == "style-guide" and pg.outof %}
14-
{% assign totalPages = pg.outof %}
15-
{% endif %}
16-
{% endfor %}
17-
18-
{% if totalPages %}
19-
<ul>
20-
{% for i in (1..totalPages) %}
21-
{% for pg in site.pages %}
22-
{% if pg.partof == "style-guide" and pg.num and pg.num == i %}
23-
<li class="tour-of-scala"><a href="{{ pg.url }}">{{ pg.title }}</a></li>
24-
{% endif %}
25-
{% endfor %}
26-
{% endfor %}
27-
</ul>
28-
{% else %} <b>ERROR</b>. Couldn't find the total number of pages in this set of tutorial articles. Have you declared the `outof` tag in your YAML front matter?
29-
{% endif %}
30-
-->
318

329
<ul>
33-
<li><a href="{{ site.baseurl }}/style/overview.html">Overview</a></li>
3410
<li><a href="{{ site.baseurl }}/style/indentation.html">Indentation</a>
3511
<ul>
3612
<li><a href="{{ site.baseurl }}/style/indentation.html#line-wrapping">Line Wrapping</a></li>
@@ -155,12 +131,6 @@ title: Scala Style Guide
155131

156132
<div class="span8">
157133

158-
<div class="page-header-index">
159-
<h1>About</h1>
160-
</div>
161-
162-
<p>This document is intended to outline some basic Scala stylistic guidelines which should be followed with more or less fervency. Wherever possible, this guide attempts to detail why a particular style is encouraged and how it relates to other alternatives. As with all style guides, treat this document as a list of rules to be broken. There are certainly times when alternative styles should be preferred over the ones given here.</p>
163-
164134
<h3>Thanks to</h3>
165135
<p><a href="http://www.codecommit.com/">Daniel Spiewak</a> and <a href="http://www.naildrivin5.com/">David Copeland</a> for putting this style guide together, and Simon Ochsenreither for converting it to Markdown.</p>
166136

0 commit comments

Comments
 (0)