Skip to content

Commit

Permalink
Unpack dependencies -> unpack, relative links to Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
zbynek committed Jan 16, 2025
1 parent d86cb67 commit 6298715
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 18 deletions.
22 changes: 10 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,20 @@
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-dependencies</id>
<id>unpack</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack-dependencies</goal>
<goal>unpack</goal>
</goals>
<configuration>
<includeGroupIds>org.gwtproject</includeGroupIds>
<includeArtifactIds>gwt-dev</includeArtifactIds>
<includeClassifiers>javadoc</includeClassifiers>
<excludeTransitive>true</excludeTransitive>
<artifactItems>
<artifactItem>
<groupId>org.gwtproject</groupId>
<artifactId>gwt-dev</artifactId>
<version>2.12.1</version>
<classifier>javadoc</classifier>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/generated-site/javadoc/latest</outputDirectory>
</configuration>
</execution>
Expand Down Expand Up @@ -166,12 +170,6 @@
<artifactId>commons-io</artifactId>
<version>2.7</version>
</dependency>
<dependency>
<groupId>org.gwtproject</groupId>
<artifactId>gwt-dev</artifactId>
<version>2.12.1</version>
<classifier>javadoc</classifier>
</dependency>
</dependencies>

<profiles>
Expand Down
2 changes: 1 addition & 1 deletion src/main/markdown/doc/latest/DevGuideCodingBasicsJSON.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ See [json.org/example.html](http://www.json.org/example.html) for more JSON exam

## Parsing JSON<a id="parsing"></a>

You can parse JSON Strings and convert them to a [JavaScriptObject](/javadoc/latest/com/google/gwt/core/client/JavaScriptObject.html) using [JsonUtils](https://www.gwtproject.org/javadoc/latest/com/google/gwt/core/client/JsonUtils.html).
You can parse JSON Strings and convert them to a [JavaScriptObject](/javadoc/latest/com/google/gwt/core/client/JavaScriptObject.html) using [JsonUtils](/javadoc/latest/com/google/gwt/core/client/JsonUtils.html).

```java
/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
JsInterop
===

JsInterop is one of the core features of GWT 2.8. As the name suggests, JsInterop is a way of interoperating Java with JavaScript. It offers a better way of communication between the two using annotations instead of having to write JavaScript in your classes (using JSNI). More details about the annotations can be found in GWT javadoc: https://www.gwtproject.org/javadoc/latest/jsinterop/annotations/package-summary.html
JsInterop is one of the core features of GWT 2.8. As the name suggests, JsInterop is a way of interoperating Java with JavaScript. It offers a better way of communication between the two using annotations instead of having to write JavaScript in your classes (using JSNI). More details about the annotations can be found in [GWT javadoc](/javadoc/latest/jsinterop/annotations/package-summary.html)


## Exporting a Java type to JavaScript
Expand Down
6 changes: 3 additions & 3 deletions src/main/markdown/doc/latest/DevGuideLinkers.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
The Linker subsystem takes care of writing the GWT compiler's output. It's responsible for each output file's name, location, and content.

Inside the compiler, each output file is represented by an
[Artifact](https://www.gwtproject.org/javadoc/latest/com/google/gwt/core/ext/linker/Artifact.html).
[Artifact](/javadoc/latest/com/google/gwt/core/ext/linker/Artifact.html).

You usually do not need to care about them, unless you have specific requirements.

Linkers create several kinds of files (see
[EmittedArtifact.Visibility](https://www.gwtproject.org/javadoc/latest/com/google/gwt/core/ext/linker/EmittedArtifact.Visibility.html)):
[EmittedArtifact.Visibility](/javadoc/latest/com/google/gwt/core/ext/linker/EmittedArtifact.Visibility.html)):

- **Public files** are those intended to be downloaded by web browsers.
This includes JavaScript and other resource files.
Expand Down Expand Up @@ -64,7 +64,7 @@ In case you have specific needs not covered by the existing linkers, you can cre

First, implement your linker. It must be a class extending the [Linker](/javadoc/latest/com/google/gwt/core/ext/Linker.html)
abstract class (check its documentation), or
[AbstractLinker](https://www.gwtproject.org/javadoc/latest/com/google/gwt/core/ext/linker/AbstractLinker.html).
[AbstractLinker](/javadoc/latest/com/google/gwt/core/ext/linker/AbstractLinker.html).

Using the `@LinkerOrder` annotation, you can specify whether it is a pre-, post- or primary linker.
You must also annotate it with the `@Shardable` annotation.
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/main.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<li><a href="makinggwtbetter.html"><i class="icon_makeGWTBetter"></i>Make GWT Better</a></li>
<li class="sep"><a href="terms.html"><i class="icon_terms"></i>Terms</a></li>
<li class="btn"><a href="download.html"><i class="icon_download"></i>Download</a></li>
<li class="btn"><a href="https://www.gwtproject.org/javadoc/latest/"><i class="icon_jd"></i>Java Doc</a></li>
<li class="btn"><a href="javadoc/latest/"><i class="icon_jd"></i>Java Doc</a></li>
</ul>
<div id="social">
<a href="https://gitter.im/gwtproject/gwt" target="_blank" title="Access our Gitter community">
Expand Down

0 comments on commit 6298715

Please sign in to comment.