Skip to content

Commit 6a6ac80

Browse files
authored
Fix API links for Scala.js 1.0.0 (#484)
1 parent ff3c7b0 commit 6a6ac80

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

doc/interoperability/facade-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ is omitted entirely (or set to `undefined`). The value is only indicative, as
7373
implicit documentation.
7474

7575
Fields, parameters, or result types that can have different, unrelated types, can be accurately typed with the
76-
[pseudo-union type `A | B`]({{ site.production_url }}/api/scalajs-library/{{ site.versions.scalaJS }}/#scala.scalajs.js.$bar).
76+
[pseudo-union type `A | B`]({{ site.production_url }}/api/scalajs-library/{{ site.versions.scalaJS }}/scala/scalajs/js/$bar.html).
7777

7878
Methods can be overloaded. This is useful to type accurately some APIs that
7979
behave differently depending on the number or types of arguments.
@@ -607,5 +607,5 @@ When using `js.Dynamic`, you are very close to writing raw JavaScript within
607607
Scala.js, with all the warts of the language coming to haunt you.
608608
However, to get the full extent of JavaScriptish code, you can import the
609609
implicit conversions in
610-
[js.DynamicImplicts]({{ site.production_url }}/api/scalajs-library/{{ site.versions.scalaJS }}/#scala.scalajs.js.DynamicImplicits$).
610+
[js.DynamicImplicts]({{ site.production_url }}/api/scalajs-library/{{ site.versions.scalaJS }}/scala/scalajs/js/DynamicImplicits$.html).
611611
Use at your own risk!

doc/interoperability/sjs-defined-js-classes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ With run-time overload resolution, however, the type tests are executed again, a
445445

446446
### `js.constructorOf[C]`
447447

448-
To obtain the JavaScript constructor function of a JS class (native or not) without instantiating it nor exporting it, you can use [`js.constructorOf[C]`]({{ site.production_url }}/api/scalajs-library/latest/#scala.scalajs.js.package@constructorOf[T<:scala.scalajs.js.Any]:scala.scalajs.js.Dynamic), whose signature is:
448+
To obtain the JavaScript constructor function of a JS class (native or not) without instantiating it nor exporting it, you can use [`js.constructorOf[C]`]({{ site.production_url }}/api/scalajs-library/{{ site.versions.scalaJS }}/scala/scalajs/js/index.html#constructorOf[T<:scala.scalajs.js.Any]:scala.scalajs.js.Dynamic), whose signature is:
449449

450450
{% highlight scala %}
451451
package object js {
@@ -460,7 +460,7 @@ This can be useful to give to JavaScript libraries expecting constructor functio
460460

461461
### `js.ConstructorTag[C]`
462462

463-
[`js.ConstructorTag[C]`]({{ site.production_url }}/api/scalajs-library/latest/#scala.scalajs.js.ConstructorTag) is to [`js.constructorOf[C]`]({{ site.production_url }}/api/scalajs-library/latest/#scala.scalajs.js.package@constructorOf[T<:scala.scalajs.js.Any]:scala.scalajs.js.Dynamic) as `ClassTag[C]` is to `classOf[C]`, i.e., you can use an `implicit` parameter of type `js.ConstructorTag[C]` to implicitly get a `js.constructorOf[C]`.
463+
[`js.ConstructorTag[C]`]({{ site.production_url }}/api/scalajs-library/{{ site.versions.scalaJS }}/scala/scalajs/js/ConstructorTag.html) is to [`js.constructorOf[C]`]({{ site.production_url }}/api/scalajs-library/{{ site.versions.scalaJS }}/scala/scalajs/js/index.html#constructorOf[T<:scala.scalajs.js.Any]:scala.scalajs.js.Dynamic) as `ClassTag[C]` is to `classOf[C]`, i.e., you can use an `implicit` parameter of type `js.ConstructorTag[C]` to implicitly get a `js.constructorOf[C]`.
464464
For example:
465465

466466
{% highlight scala %}

doc/interoperability/types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Primitive JavaScript types (`number`, `boolean`, `string`, `null` and
140140
[above](#type-correspondence).
141141

142142
For other pre-defined JavaScript types, such as arrays and functions, the package `scala.scalajs.js`
143-
([ScalaDoc]({{ site.production_url }}/api/scalajs-library/{{ site.versions.scalaJS }}/#scala.scalajs.js.package))
143+
([ScalaDoc]({{ site.production_url }}/api/scalajs-library/{{ site.versions.scalaJS }}/scala/scalajs/js/index.html))
144144
provides dedicated definitions.
145145

146146
The class hierarchy for these standard types is as follows:
@@ -283,7 +283,7 @@ want to. The basic entry point is `js.Dynamic.global`, which is a dynamically
283283
typed view of the JavaScript global scope. You can select any global variable
284284
of JavaScript as a a member of `js.Dynamic.global`, e.g.,
285285
`js.Dynamic.global.Math`, which will be typed as a
286-
[`js.Dynamic`]({{ site.production_url }}/api/scalajs-library/latest/#scala.scalajs.js.Dynamic).
286+
[`js.Dynamic`]({{ site.production_url }}/api/scalajs-library/{{ site.versions.scalaJS }}/scala/scalajs/js/Dynamic.html).
287287

288288
You can read and write any field of a `js.Dynamic`, as well as call any method
289289
with any number of arguments, and you always receive back a `js.Dynamic`.

doc/project/building.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ scalaJSLinkerConfig ~= { _.withOptimizer(false) }
8080
{% endhighlight %}
8181

8282
`scalaJSLinkerConfig` contains various other options controlling the Scala.js linker.
83-
See [the Scaladoc of `StandardLinker.Config`]({{ site.production_url }}/api/scalajs-tools/{{ site.versions.scalaJS }}/#org.scalajs.core.tools.linker.StandardLinker$$Config) for details.
83+
See [the Scaladoc of `StandardLinker.Config`]({{ site.production_url }}/api/scalajs-linker-interface/{{ site.versions.scalaJS }}/org/scalajs/linker/interface/StandardConfig.html) for details.
8484

8585
## Full-Optimize
8686

doc/project/js-environments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Then run `nvm` to install the version of Node.js that you want:
2626
nvm install 5.0
2727

2828
For more options of the Node.js environment, see
29-
[the Scaladoc of `NodeJSEnv`]({{ site.production_url }}/api/scalajs-js-envs/{{ site.versions.scalaJS }}/#org.scalajs.jsenv.nodejs.NodeJSEnv).
29+
[the Scaladoc of `NodeJSEnv`]({{ site.production_url }}/api/scalajs-env-nodejs/{{ site.versions.scalaJS }}/org/scalajs/jsenv/nodejs/NodeJSEnv.html).
3030

3131
## Node.js with JSDOM
3232

0 commit comments

Comments
 (0)