File tree Expand file tree Collapse file tree 8 files changed +43
-26
lines changed Expand file tree Collapse file tree 8 files changed +43
-26
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,19 @@ partof: getting-started
5
5
languages : [fr, ja, uk]
6
6
includeTOC : true
7
7
8
+ newcomer_resources :
9
+ - title : " Resources For Newcomers"
10
+ links :
11
+ - title : Are You Coming From Java?
12
+ description : What you should know to get to speed with Scala after your initial setup.
13
+ icon : " fa fa-coffee"
14
+ link : /scala3/newcomers/java.html
15
+ - title : Scala in the Browser
16
+ description : >
17
+ To start experimenting with Scala right away, use "Scastie" in your browser.
18
+ icon : " fa fa-cloud"
19
+ link : https://scastie.scala-lang.org/pEBYc5VMT02wAGaDrfLnyw
20
+
8
21
redirect_from :
9
22
- /getting-started.html
10
23
- /scala3/getting-started.html # we deleted the scala 3 version of this page
@@ -19,14 +32,7 @@ The instructions below cover both Scala 2 and Scala 3.
19
32
{% endaltDetails %}
20
33
</div >
21
34
22
- ## Try Scala without installing anything
23
-
24
- To start experimenting with Scala right away, use <a href =" https://scastie.scala-lang.org/pEBYc5VMT02wAGaDrfLnyw " target =" _blank " >“Scastie” in your browser</a >.
25
- _ Scastie_ is an online “playground” where you can experiment with Scala examples to see how things work, with access to all Scala compilers and published libraries.
26
-
27
- > Scastie supports both Scala 2 and Scala 3, but it defaults
28
- > to Scala 3. If you are looking for a Scala 2 snippet to play with,
29
- > [ click here] ( https://scastie.scala-lang.org/MHc7C9iiTbGfeSAvg8CKAA ) .
35
+ {% include inner-documentation-sections.html sections=page.newcomer_resources %}
30
36
31
37
## Install Scala on your computer
32
38
Original file line number Diff line number Diff line change 3
3
< div class ="section ">
4
4
< h2 class ="frontpage "> {{ section.title }}</ h2 >
5
5
{% for link in section.links %}
6
- < a href ="{% if link.link contains '://' %}{{link.link}}{% else %}{{site.baseurl}}{{link.link}}{% endif %} " class ="doc-item ">
6
+ < a href ="{% if link.link contains '://' %}{{link.link}}{% else %}{{site.baseurl}}{{link.link}}{% endif %} " class ="doc-item doc-item-link ">
7
7
< div class ="doc-item-header ">
8
8
< i class ="{{link.icon}} "> </ i >
9
9
< h5 > {{link.title}}</ h5 >
Original file line number Diff line number Diff line change 46
46
< meta name ="msapplication-TileColor " content ="#15a9ce ">
47
47
< meta name ="theme-color " content ="#ffffff ">
48
48
49
- < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4 /css/all.min.css " integrity ="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ == " crossorigin ="anonymous " referrerpolicy ="no-referrer " />
49
+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2 /css/all.min.css " integrity ="sha512-1sCRPdkRXhBV2PBLUdRb4tMg1w2YPf37qatUFeS7zlBy7jJI8Lf4VHwWfZZfpXtYSLy85pkm9GaYVYMfw5BC1A == " crossorigin ="anonymous " referrerpolicy ="no-referrer " />
50
50
51
51
<!-- Custom stylesheet -->
52
52
< link href ="{{ site.baseurl }}/resources/css/unslider-dots.css " rel ="stylesheet " type ="text/css ">
Original file line number Diff line number Diff line change
1
+ {% comment %}
2
+ Layouts using this include should pass an include variable called 'collection' referencing a collection carrying the data (i.e.: contribute_community_tickets, contribute_resources...)
3
+ {% endcomment %}
4
+
5
+ {% for section in include.sections %}
6
+ < h2 class ="frontpage "> {{ section.title }}</ h2 >
7
+ < div class ="documentation ">
8
+ {% for link in section.links %}
9
+ < a href ="{% if link.link contains '://' %}{{link.link}}{% else %}{{site.baseurl}}{{link.link}}{% endif %} " class ="doc-item doc-item-link ">
10
+ < div class ="doc-item-header ">
11
+ < i class ="{{link.icon}} "> </ i >
12
+ < h4 > {{link.title}}</ h4 >
13
+ </ div >
14
+ < div class ="doc-item-main ">
15
+ < p > {{link.description}}</ p >
16
+ </ div >
17
+ </ a >
18
+ {% endfor %}
19
+ </ div >
20
+ {% endfor %}
Original file line number Diff line number Diff line change 16
16
.inline-sticky-top {
17
17
position : sticky ;
18
18
top : 15px ;
19
+ margin-bottom : 25px ;
19
20
background : #fff ;
20
21
-webkit-box-shadow : 0 0 18px 20px #fff ;
21
22
-moz-box-shadow : 0 0 18px 20px #fff ;
22
- box-shadow : 0 0 18 px 20 px #fff ;
23
+ box-shadow : 0 7 px 15 px 5 px #fff ;
23
24
z-index : 5 ;
24
25
}
25
26
Original file line number Diff line number Diff line change 77
77
& :nth-child (2 n ) {
78
78
clear : none ;
79
79
}
80
-
81
- & :active ,
82
- & :focus ,
83
- & :hover {
84
- text-decoration : none ;
85
- background : none ;
86
- }
87
80
}
88
81
}
89
82
}
Original file line number Diff line number Diff line change 65
65
@include justify-content (flex-start );
66
66
margin-bottom : 10px ;
67
67
68
- .fa {
68
+ .fa ,
69
+ .fa-brands {
69
70
font-size : 1.563rem ;
70
71
margin-right : 14px ;
71
72
color : $brand-primary ;
92
93
}
93
94
}
94
95
95
- & :active ,
96
- & :focus ,
97
- & :hover {
96
+ & .doc-item-link :active ,
97
+ & .doc-item-link :focus ,
98
+ & .doc-item-link :hover {
98
99
text-decoration : none ;
99
100
background : $gray-lighter ;
100
101
}
Original file line number Diff line number Diff line change @@ -25,10 +25,6 @@ sections:
25
25
description : " Learn Scala by reading a series of short lessons."
26
26
icon : " fa fa-book-open"
27
27
link : /scala3/book/introduction.html
28
- - title : " Scala for Java Programmers"
29
- description : " An effective approach to learning Scala as a programmer with the Java background."
30
- icon : " fa fa-coffee"
31
- link : /scala3/newcomers/java.html
32
28
- title : Online Courses
33
29
description : " MOOCs to learn Scala, for beginners and experienced programmers."
34
30
icon : " fa fa-cloud"
You can’t perform that action at this time.
0 commit comments