File tree 5 files changed +34
-5
lines changed 5 files changed +34
-5
lines changed Original file line number Diff line number Diff line change 1
1
baseurl : /files/archive/spec/2.12
2
+ latestScalaVersion : 2.12
3
+ thisScalaVersion : 2.12
2
4
safe : true
3
5
lsi : false
4
6
highlighter : false
Original file line number Diff line number Diff line change
1
+ {% if site.thisScalaVersion != site.latestScalaVersion %}
2
+ <div class="version-notice">This is the specification of a previous version of Scala. See the <a href="{{ site.baseurl}}/../{{ site.latestScalaVersion }}/">Scala {{ site.latestScalaVersion }} spec</a>.</div>
3
+ {% endif %}
Original file line number Diff line number Diff line change 26
26
<link rel="stylesheet" type="text/css" media="(max-width : 1400px), (orientation: portrait)" href="public/stylesheets/screen-small.css">
27
27
<link rel="stylesheet" type="text/css" media="print" href="public/stylesheets/print.css">
28
28
<link rel="stylesheet" type="text/css" href="public/stylesheets/fonts.css">
29
- <title>{{ page.title }}</title>
29
+ <title>{{ page.title }} | Scala {{ site.thisScalaVersion }} </title>
30
30
</head>
31
31
32
32
<body>
33
33
<header>
34
- <nav id="chapters"><a id="github" href="https://github.com/scala/scala/tree/2.12.x/spec"><img src="public/images/[email protected] " alt="Edit at GitHub"></a>{% assign sorted_pages = site.pages | sort:"name" %}{% for post in sorted_pages %}{% if post.chapter >= 0 %}<a href="{{site.baseurl}}{{ post.url }}">{{post.chapter}} {{ post.title }}</a>{% endif %}{% endfor %}</nav>
34
+ <nav id="chapters">
35
+ <a href="{{site.baseurl}}/" title="Table of Contents">Scala {{ site.thisScalaVersion }}</a>
36
+ <a id="github" href="https://github.com/scala/scala/tree/2.12.x/spec"><img src="public/images/[email protected] " alt="Edit at GitHub"></a>
37
+ {% assign sorted_pages = site.pages | sort:"name" %}
38
+ {% for post in sorted_pages %}
39
+ {% if post.chapter >= 0 %}
40
+ <a href="{{site.baseurl}}{{ post.url }}">{{post.chapter}} {{ post.title }}</a>
41
+ {% endif %}
42
+ {% endfor %}
43
+ </nav>
35
44
</header>
36
45
<aside class="left"><nav id="toc"></nav></aside>
37
46
38
47
<main id="content">
48
+ {% include version-notice.yml %}
39
49
{{ content }}
40
50
</main>
41
51
Original file line number Diff line number Diff line change 7
7
<link rel="shortcut icon" type="image/png" href="public/favicon.ico">
8
8
9
9
<script src="//code.jquery.com/jquery-2.1.3.min.js"></script>
10
- <title>{{ page.title }}</title>
10
+ <title>{{ page.title }} | Scala {{ site.thisScalaVersion }} </title>
11
11
12
12
<link rel="stylesheet" type="text/css" href="public/stylesheets/screen.css">
13
13
<link rel="stylesheet" type="text/css" href="public/stylesheets/screen-toc.css">
19
19
<div id="header-main">
20
20
<img id="scala-logo" src="public/images/scala-spiral-white.png" />
21
21
<span id="title">Scala Language Specification</span>
22
- <a id="github" href="https://github.com/scala/scala/tree/2.12 .x/spec"><img src="public/images/[email protected] " alt="Edit at GitHub"></a>
22
+ <a id="github" href="https://github.com/scala/scala/tree/{{ site.thisScalaVersion }} .x/spec"><img src="public/images/[email protected] " alt="Edit at GitHub"></a>
23
23
</div>
24
- <div id="header-sub">Version 2.12 </div>
24
+ <div id="header-sub">Version {{ site.thisScalaVersion }} </div>
25
25
</header>
26
26
<main>
27
+ {% include version-notice.yml %}
27
28
{{ content }}
28
29
</main>
29
30
</body>
Original file line number Diff line number Diff line change @@ -502,3 +502,16 @@ header {
502
502
/* proper rendering of MathJax into highlighted code blocks */
503
503
.fixws { white-space : pre; }
504
504
.fixws .math { white-space : nowrap; }
505
+
506
+ .version-notice {
507
+ background-color : # C93A3A ;
508
+ color : # f2f2f2 ;
509
+ border : 1px solid # ccc ;
510
+ padding : 1em ;
511
+ margin-bottom : 1em ;
512
+ }
513
+ .version-notice a {
514
+ color : # f2f2f2 ;
515
+ font-weight : bold;
516
+ text-decoration : underline;
517
+ }
You can’t perform that action at this time.
0 commit comments