Skip to content

Commit 166bdba

Browse files
authored
Merge branch 'main' into resolve-todos-2
2 parents 56d08b8 + b90e960 commit 166bdba

File tree

151 files changed

+4992
-737
lines changed

Some content is hidden

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

151 files changed

+4992
-737
lines changed

.drone.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-20.04
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Set up Ruby
9+
uses: ruby/setup-ruby@v1
10+
with:
11+
ruby-version: 2.5.8
12+
bundler-cache: true
13+
- name: Set up coursier
14+
uses: laughedelic/coursier-setup@v1
15+
with:
16+
jvm: adopt:11
17+
- name: Run mdoc
18+
run: |
19+
./scripts/run-mdoc.sh
20+
rm -r /tmp/mdoc-out/
21+
- name: Jekyll build
22+
run: bundle exec jekyll build
23+
- name: HTMLProofer
24+
run: |
25+
# # Checking for docs.scala-lang/blob/master leads to a chicken and egg problem because of the edit links of new pages.
26+
bundle exec htmlproofer ./_site/\
27+
--only-4xx\
28+
--http-status-ignore "400,401,429"\
29+
--empty-alt-ignore\
30+
--allow-hash-href\
31+
--url-ignore '/https://github.com/scala/docs.scala-lang/blob/master/.*/,/www.oracle.com/'
32+

.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/

Gemfile.lock

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ GEM
4545
jekyll (~> 3.0)
4646
jekyll-watch (2.2.1)
4747
listen (~> 3.0)
48-
kramdown (2.3.0)
48+
kramdown (2.3.1)
4949
rexml
5050
kramdown-parser-gfm (1.1.0)
5151
kramdown (~> 2.0)
@@ -54,15 +54,17 @@ GEM
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.4.0)
58-
nokogiri (1.10.10)
59-
mini_portile2 (~> 2.4.0)
57+
mini_portile2 (2.5.0)
58+
nokogiri (1.11.1)
59+
mini_portile2 (~> 2.5.0)
60+
racc (~> 1.4)
6061
nokogumbo (2.0.2)
6162
nokogiri (~> 1.8, >= 1.8.4)
6263
parallel (1.19.2)
6364
pathutil (0.16.2)
6465
forwardable-extended (~> 2.6)
6566
public_suffix (4.0.5)
67+
racc (1.5.2)
6668
rainbow (3.0.0)
6769
rb-fsevent (0.10.4)
6870
rb-inotify (0.10.1)

_ba/tour/for-comprehensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ Ovdje je `n == 10` i `v == 10`. U prvoj iteraciji, `i == 0` i `j == 0` tako da `
5454
Bez `if` čuvara, ovo bi ispisalo sljedeće:
5555
```
5656
57-
(0, 0) (0, 1) (0, 2) (0, 3) (0, 4) (0, 5) (0, 6) (0, 7) (0, 8) (0, 9) (1, 1) ...
57+
(0, 0) (0, 1) (0, 2) (0, 3) (0, 4) (0, 5) (0, 6) (0, 7) (0, 8) (0, 9) (1, 0) ...
5858
```

_ba/tour/generic-classes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Konvencija je da se koristi slovo `A` kao identifikator tipa, mada se može kori
2222
```scala mdoc
2323
class Stack[A] {
2424
private var elements: List[A] = Nil
25-
def push(x: A) { elements = x :: elements }
25+
def push(x: A): Unit =
26+
elements = x :: elements
2627
def peek: A = elements.head
2728
def pop(): A = {
2829
val currentTop = peek

_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.4
19-
scala-212-version: 2.12.12
20-
scala-3-version: 3.0.0-M3
18+
scala-version: 2.13.5
19+
scala-212-version: 2.12.13
20+
scala-3-version: 3.0.0-RC1
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/doc-nav-header.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
submenu:
44
- title: Current
55
url: https://www.scala-lang.org/api/current/
6-
- title: Nightly
7-
url: https://www.scala-lang.org/files/archive/nightly/2.13.x/api/2.13.x/
86
- title: All Versions
97
url: "/api/all.html"
108
- title: Learn

_es/overviews/core/actors.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,10 @@ la ejecución del argumento por nombre `fun`.
436436
## Actores remotos
437437

438438
Esta sección describe el API de los actores remotos. Su principal interfaz es el objecto
439-
[`RemoteActor`](https://www.scala-lang.org/api/2.9.1/scala/actors/remote/RemoteActor$.html) definido
440-
en el paquete `scala.actors.remote`. Este objeto facilita el conjunto de métodos necesarios para crear
441-
y establecer conexiones a instancias de actores remotos. En los fragmentos de código que se muestran a
442-
continuación se asume que todos los miembros de `RemoteActor` han sido importados; la lista completa
443-
de importaciones utilizadas es la siguiente:
439+
`RemoteActor` definido en el paquete `scala.actors.remote`. Este objeto facilita el conjunto
440+
de métodos necesarios para crear y establecer conexiones a instancias de actores remotos. En los
441+
fragmentos de código que se muestran a continuación se asume que todos los miembros de
442+
`RemoteActor` han sido importados; la lista completa de importaciones utilizadas es la siguiente:
444443

445444
import scala.actors._
446445
import scala.actors.Actor._
@@ -449,10 +448,10 @@ de importaciones utilizadas es la siguiente:
449448

450449
### Iniciando actores remotos
451450

452-
Un actore remot es identificado de manera unívoca por un
453-
[`Symbol`](https://www.scala-lang.org/api/2.9.1/scala/Symbol.html). Este símbolo es único para la instancia
454-
de la máquina virual en la que se está ejecutando un actor. Un actor remoto identificado con el nombre
455-
`myActor` puede ser creado del siguiente modo.
451+
Un actore remot es identificado de manera unívoca por un `Symbol`. Este símbolo
452+
es único para la instancia de la máquina virual en la que se está ejecutando un
453+
actor. Un actor remoto identificado con el nombre `myActor` puede ser creado del
454+
siguiente modo.
456455

457456
class MyActor extends Actor {
458457
def act() {

0 commit comments

Comments
 (0)