Skip to content

Commit fa60d7e

Browse files
authored
Merge branch 'scala:main' into main
2 parents cf7171d + e36fb38 commit fa60d7e

File tree

162 files changed

+5078
-1106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+5078
-1106
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/_ja @scala/docs-ja

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: bundler
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
ignore:
9+
- dependency-name: html-proofer
10+
versions:
11+
- "> 3.15.3"

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
run: bundle exec jekyll build
2323
- name: HTMLProofer
2424
run: |
25-
# # Checking for docs.scala-lang/blob/master leads to a chicken and egg problem because of the edit links of new pages.
25+
# # Checking for docs.scala-lang/blob/main leads to a chicken and egg problem because of the edit links of new pages.
2626
bundle exec htmlproofer ./_site/\
2727
--only-4xx\
2828
--http-status-ignore "400,401,429"\
2929
--empty-alt-ignore\
3030
--allow-hash-href\
31-
--url-ignore '/https://github.com/scala/docs.scala-lang/blob/master/.*/,/www.oracle.com/'
31+
--url-ignore '/https://github.com/scala/docs.scala-lang/blob/main/.*/,/www.oracle.com/'
3232

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ _site
88
vendor/bundle
99
.idea/
1010
/coursier
11-
/tut-tmp/
1211
.sass-cache/

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ruby:2.5
2+
3+
RUN gem install bundler jekyll
4+
5+
WORKDIR /srv/jekyll
6+
7+
COPY Gemfile .
8+
COPY Gemfile.lock .
9+
10+
RUN bundle install
11+

Gemfile.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ GEM
44
addressable (2.7.0)
55
public_suffix (>= 2.0.2, < 5.0)
66
colorator (1.1.0)
7-
concurrent-ruby (1.1.7)
8-
em-websocket (0.5.1)
7+
concurrent-ruby (1.1.8)
8+
em-websocket (0.5.2)
99
eventmachine (>= 0.12.9)
1010
http_parser.rb (~> 0.6.0)
1111
ethon (0.12.0)
1212
ffi (>= 1.3.0)
1313
eventmachine (1.2.7)
14-
ffi (1.13.1)
14+
ffi (1.15.0)
1515
forwardable-extended (2.6.0)
1616
html-proofer (3.15.3)
1717
addressable (~> 2.3)
@@ -24,7 +24,7 @@ GEM
2424
http_parser.rb (0.6.0)
2525
i18n (0.9.5)
2626
concurrent-ruby (~> 1.0)
27-
jekyll (3.9.0)
27+
jekyll (3.9.1)
2828
addressable (~> 2.4)
2929
colorator (~> 1.0)
3030
em-websocket (~> 0.5)
@@ -37,7 +37,7 @@ GEM
3737
pathutil (~> 0.9)
3838
rouge (>= 1.7, < 4)
3939
safe_yaml (~> 1.0)
40-
jekyll-redirect-from (0.15.0)
40+
jekyll-redirect-from (0.16.0)
4141
jekyll (>= 3.3, < 5.0)
4242
jekyll-sass-converter (1.5.2)
4343
sass (~> 3.4)
@@ -50,27 +50,27 @@ GEM
5050
kramdown-parser-gfm (1.1.0)
5151
kramdown (~> 2.0)
5252
liquid (4.0.3)
53-
listen (3.2.1)
53+
listen (3.5.1)
5454
rb-fsevent (~> 0.10, >= 0.10.3)
5555
rb-inotify (~> 0.9, >= 0.9.10)
5656
mercenary (0.3.6)
57-
mini_portile2 (2.5.0)
58-
nokogiri (1.11.1)
57+
mini_portile2 (2.5.1)
58+
nokogiri (1.11.4)
5959
mini_portile2 (~> 2.5.0)
6060
racc (~> 1.4)
6161
nokogumbo (2.0.2)
6262
nokogiri (~> 1.8, >= 1.8.4)
6363
parallel (1.19.2)
6464
pathutil (0.16.2)
6565
forwardable-extended (~> 2.6)
66-
public_suffix (4.0.5)
66+
public_suffix (4.0.6)
6767
racc (1.5.2)
6868
rainbow (3.0.0)
69-
rb-fsevent (0.10.4)
69+
rb-fsevent (0.11.0)
7070
rb-inotify (0.10.1)
7171
ffi (~> 1.0)
72-
rexml (3.2.4)
73-
rouge (3.22.0)
72+
rexml (3.2.5)
73+
rouge (3.26.0)
7474
safe_yaml (1.0.5)
7575
sass (3.7.4)
7676
sass-listen (~> 4.0.0)

_books/2-programming-scala.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: "Programming Scala"
3-
link: https://shop.oreilly.com/product/0636920033073.do
3+
link: http://programming-scala.com
44
image: /resources/img/books/ProgrammingScala-final-border.gif
5-
status: Updated for Scala 2.12
6-
authors: ["Alex Payne", "Dean Wampler"]
5+
status: Updated for Scala 3
6+
authors: ["Dean Wampler"]
77
publisher: O’Reilly
88
publisherLink: https://www.oreilly.com/
99
---
1010

11-
Both are industry experts, Alex Payne being the lead API programmer at Twitter, a social networking service based on Scala. O’Reilly, the publisher, writes: "Learn how to be more productive with Scala, a new multi-paradigm language for the Java Virtual Machine (JVM) that integrates features of both object-oriented and functional programming. With this book, you'll discover why Scala is ideal for highly scalable, component-based applications that support concurrency and distribution. You'll also learn how to leverage the wealth of Java class libraries to meet the practical needs of enterprise and Internet projects more easily."
11+
Dean is a well-known member of the Scala community, using Scala recently for streaming data systems at Lightbend and now at Domino Data Lab. This edition covers the new features of Scala 3, with comparisons to Scala 2, both to explain why the changes were made and how they improve Scala, and also to enable developers using mixed Scala 2 and 3 code bases to work effectively. The book is aimed at professional programmers who want a comprehensive, in-depth, yet pragmatic tour of Scala and best practices for using it.

_config.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ keywords:
1515
- Document
1616
- Guide
1717

18-
scala-version: 2.13.5
19-
scala-212-version: 2.12.13
20-
scala-3-version: 3.0.0-RC1
18+
scala-version: 2.13.6
19+
scala-212-version: 2.12.14
20+
scala-3-version: 3.0.0
2121
scala-3-plugin-version: 0.5.1
2222

2323
collections:
@@ -103,6 +103,17 @@ defaults:
103103
overview-name: "Scala 3 — Book"
104104
layout: multipage-overview
105105
permalink: "/scala3/book/:title.html"
106+
-
107+
scope:
108+
path: "_overviews/scala3-migration"
109+
values:
110+
scala3: true
111+
# num: 99 # to list them in the TOC, should be overwritten individually
112+
partof: scala3-migration
113+
type: section
114+
overview-name: "Scala 3 Migration Guide"
115+
layout: multipage-overview
116+
permalink: "/scala3/guides/migration/:title.html"
106117
-
107118
scope:
108119
path: "_overviews/scala3-macros"

_data/compiler-options.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,22 @@
611611
- option: "-Vimplicits"
612612
schema:
613613
type: "Boolean"
614-
description: "Show more detail on why some implicits are not applicable."
614+
description: "Print dependent missing implicits."
615615
abbreviations:
616616
- "-Xlog-implicits"
617+
- option: "-Vimplicits-verbose-tree"
618+
schema:
619+
type: "Boolean"
620+
description: "Display all intermediate implicits in a chain."
621+
- option: "-Vimplicits-max-refined"
622+
schema:
623+
type: "Int"
624+
default: "0"
625+
description: "max chars for printing refined types, abbreviate to `F {...}`"
626+
- option: "-Vtype-diffs"
627+
schema:
628+
type: "Boolean"
629+
description: "Print found/required error messages as colored diffs."
617630
- option: "-Vinline"
618631
schema:
619632
type: "String"

_data/overviews.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@
254254
icon: cog
255255
url: "compiler-options/index.html"
256256
description: "Various options to control how scalac compiles your code."
257+
- title: Error Formatting
258+
by: Torsten Schmits
259+
icon: cog
260+
url: "compiler-options/errors.html"
261+
description: "A new engine for more user-friendly error messages, printing chains of dependent implicits and colored found/required type diffs."
257262

258263

259264
- category: Legacy

0 commit comments

Comments
 (0)