This repository was archived by the owner on Nov 10, 2020. It is now read-only.
File tree 6 files changed +34
-20
lines changed
6 files changed +34
-20
lines changed Original file line number Diff line number Diff line change @@ -138,9 +138,6 @@ body.home {
138
138
}
139
139
}
140
140
}
141
- .version {
142
- color : rgba (255 , 255 , 255 , 0.7 );
143
- }
144
141
}
145
142
146
143
.select2-results {
@@ -192,9 +189,6 @@ body.home {
192
189
#accordion {
193
190
margin : 30px 0 ;
194
191
195
- #versions {
196
- margin-top : 30px ;
197
- }
198
192
.panel {
199
193
color : @panel-text ;
200
194
background : @panel-bottom ;
234
228
color : @content-link ;
235
229
}
236
230
231
+ #version {
232
+ background : #eee ;
233
+
234
+ .container {
235
+ text-align : center ;
236
+ padding : 5px 0 ;
237
+ }
238
+ }
239
+
237
240
.content {
238
241
margin : 0 0 50px ;
239
242
353
356
}
354
357
}
355
358
359
+ .declaration .comment {
360
+ margin : -0.5em 0 20px 30px ;
361
+ }
362
+
356
363
code {
357
364
background : transparent ;
358
365
color : inherit ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ baseurl: ""
7
7
url : " http://swiftdoc.org"
8
8
twitter_username : SwiftDocOrg
9
9
github_username : SwiftDocOrg
10
- swift_version : " Swift version 1.2 (swiftlang- 602.0.49.3)"
10
+ swift_version : " Swift version 1.2 (602.0.49.3) & 2.0 (700.0.38.1 )"
11
11
12
12
port : 4040
13
13
include : [ "_[A-Z]*", "__[A-Z]*" ]
Original file line number Diff line number Diff line change 4
4
< head >
5
5
< meta charset ="utf-8 ">
6
6
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
7
+ {% if page.title == "Home" %}
8
+ < title > {{ site.title }} — {{ site.description }}</ title >
9
+ {% else %}
7
10
< title > {% if page.title %}{{ page.title | strip_html }} — {% endif %}{{ site.title }}</ title >
11
+ {% endif %}
8
12
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
9
13
< meta name ="description " content ="{{ meta_description }} ">
10
14
< meta name ="keywords " content ="{{ meta_keywords }} ">
52
56
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
53
57
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
54
58
<![endif]-->
55
- {% if page.version %}
56
- < script src ="/assets/js/swift-linkdata- {{ page.version }}.js "> </ script >
59
+ {% if page.root %}
60
+ < script src ="{{ page.root }}/assets/js/swift-linkdata .js "> </ script >
57
61
{% endif %}
58
62
</ head >
Original file line number Diff line number Diff line change @@ -34,11 +34,23 @@ <h1><a href="/">SwiftDoc.org</a></h1>
34
34
< h1 > < a href ="/ "> {{ site.title }}</ a > </ h1 >
35
35
< p > Auto-generated documentation for < a href ="https://developer.apple.com/swift/ "> Swift</ a > . Command-click no more.</ p >
36
36
37
- {% if page.url == "/index.html " %}
37
+ {% if page.layout == "home " %}
38
38
< div class ="form-group form-group-lg input-group-lg has-feedback ">
39
39
< input type ="hidden " class ="form-control select2 ">
40
40
< span class ="glyphicon glyphicon-search form-control-feedback "> </ span >
41
41
</ div >
42
42
{% endif %}
43
43
</ div >
44
44
</ div >
45
+
46
+ {% unless page.url contains "/news" %}
47
+ < div id ="version ">
48
+ < div class ="container ">
49
+ {% if page.url contains "/swift-2" %}
50
+ Swift version: < a href ="/ "> 1.2</ a > | < strong > 2.0</ strong >
51
+ {% else %}
52
+ Swift version: < strong > 1.2</ strong > | < a href ="/swift-2/ "> 2.0</ a >
53
+ {% endif %}
54
+ </ div >
55
+ </ div >
56
+ {% endunless %}
Original file line number Diff line number Diff line change @@ -9,13 +9,4 @@ <h1><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h1>
9
9
{{ content }}
10
10
</ article >
11
11
12
- < p class ="meta ">
13
- < span class ="tags ">
14
- < span class ="glyphicon glyphicon-tag "> </ span >
15
- {% for tag in post.tags %}
16
- < a href ="{{ site.baseurl }}/news/tags/{{ tag }} "> {{ tag }}</ a >
17
- {% endfor %}
18
- </ span >
19
- </ p >
20
-
21
12
</ div >
Original file line number Diff line number Diff line change 1
1
---
2
2
layout: "home"
3
3
title: "Home"
4
+ root: ""
4
5
---
5
6
6
7
< div class ="container-fluid home-block ">
@@ -324,7 +325,6 @@ <h2>Operators</h2>
324
325
< h2 > Globals</ h2 >
325
326
326
327
< ul class ="main-list ">
327
- < li > < a href ="/global/var/ "> Variables</ a > </ li >
328
328
< li > < a href ="/global/alias/ "> Type Aliases</ a > </ li >
329
329
</ ul >
330
330
You can’t perform that action at this time.
0 commit comments