The URI is enclosed by square brackets: [<URI>].
You can add a label for the link by specifying the label text after
the URI: [<URI>|<label>].
- URI links
- The following example generates a link to the Teracloud® main web page.
[http://www.teracloud.com]
- The spl-make-doc command generates HTML similar to this
code.
<a href="http://www.teracloud.com">http://www.teracloud.com</a>
Note: An
SPLDOC link to an external resource such as a
website, must include a URI scheme name.
Typically, the scheme names are http and https.
For example, [http://www.ibm.com] creates a link
to the Teracloud® website. However, [www.ibm.com]
results in an incorrectly formed link and an
error.
- In addition to generating absolute links to HTML pages, you can generate relative links. The
following example adds a link to the top-level Javadoc™ page
that was generated in the
doc/javadoc/html directory of
the
toolkit:
[../../javadoc/html/index.html]
The
spl-make-doc command generates
HTML similar to this
code.<a href="../../javadoc/html/index.html">../../javadoc/html/index.html</a>
This
link is relative to the location of the SPLDOC
documentation. For this example, the SPLDOC was
generated in the
doc/spldoc/html default
directory location in the toolkit.
- URI links with a label
- The following example creates a link to the Teracloud® main web page that is accessed through the
"Teracloud® main web page" label.
[http://www.ibm.com|IBM main web page]
- The spl-make-doc command generates HTML similar to this
code.
<a href="http://www.ibm.com">IBM main web page</a>