summaryrefslogtreecommitdiff
path: root/lib/erl_docgen/doc
diff options
context:
space:
mode:
authorLukas Larsson <lukas@erlang.org>2020-03-11 10:34:52 +0100
committerLukas Larsson <lukas@erlang.org>2020-03-27 11:02:23 +0100
commitd773632085c8a81a2fc7d860bf26a2b707ede5d5 (patch)
treee81de4996b3a04cc5c87de62fbbaed7608626967 /lib/erl_docgen/doc
parent303611f434ff714a990e555e13a4f7e9c740dad7 (diff)
downloaderlang-d773632085c8a81a2fc7d860bf26a2b707ede5d5.tar.gz
docgen: Add documentation for new see* tags
Diffstat (limited to 'lib/erl_docgen/doc')
-rw-r--r--lib/erl_docgen/doc/src/block_tags.xml6
-rw-r--r--lib/erl_docgen/doc/src/inline_tags.xml97
2 files changed, 97 insertions, 6 deletions
diff --git a/lib/erl_docgen/doc/src/block_tags.xml b/lib/erl_docgen/doc/src/block_tags.xml
index b2b8829ced..ecf71db479 100644
--- a/lib/erl_docgen/doc/src/block_tags.xml
+++ b/lib/erl_docgen/doc/src/block_tags.xml
@@ -224,8 +224,8 @@ start(Pid) ->
<title>&lt;pre&gt; - Pre-formatted Text</title>
<p>Used for documentation of system interaction. Can contain text,
- <seeguide marker="inline_tags#seealsoTAG">seealso</seeguide>,
- <seeguide marker="inline_tags#urlTAG">url</seeguide> and
+ <seeguide marker="inline_tags#seeTAG">&lt;see*&gt; tags</seeguide>,
+ <seeguide marker="inline_tags#urlTAG">&lt;url&gt;</seeguide> and
<c><![CDATA[<input>]]></c> tags.</p>
<p>The <c><![CDATA[<input>]]></c> tag is used to highlight user
@@ -290,7 +290,7 @@ Eshell V5.5.3 (abort with ^G)
<p><c><![CDATA[<tag>]]></c> can contain plain text,
<seeguide marker="inline_tags#cTAG">&lt;c&gt;</seeguide>,
<seeguide marker="inline_tags#emTAG">&lt;em&gt;</seeguide>,
- <seeguide marker="inline_tags#seealsoTAG">&lt;seealso&gt;</seeguide>
+ <seeguide marker="inline_tags#seeTAG">&lt;see*&gt; tags</seeguide>
and <seeguide marker="inline_tags#urlTAG">&lt;url&gt;</seeguide>
tags.</p>
diff --git a/lib/erl_docgen/doc/src/inline_tags.xml b/lib/erl_docgen/doc/src/inline_tags.xml
index 6d80d47997..11f73595f2 100644
--- a/lib/erl_docgen/doc/src/inline_tags.xml
+++ b/lib/erl_docgen/doc/src/inline_tags.xml
@@ -86,13 +86,104 @@
&lt;marker id="marker_example"/&gt;
</pre>
- <p>The <seeguide marker="#seealsoTAG">&lt;seealso&gt;</seeguide> tag
- is used to refer to the marker.</p>
+ <p>The <seeguide marker="#seeTAG">&lt;see*&gt;</seeguide> tags
+ are used to refer to the marker.</p>
<p>The <c><![CDATA[<marker>]]></c> tag is both a block- and an
inline tag.</p>
</section>
-
+
+ <section>
+ <marker id="seeTAG"/>
+ <title>&lt;see*&gt; - See tags</title>
+ <p>A cross reference (hypertext link) to a marker in the same file,
+ a marker in another file, or (the top of) another file, given by
+ the <c>marker</c> attribute. The syntax used within the <c>marker</c>
+ attribute is <c>application:file#anchor</c> for the general case.
+ <c>application</c> and <c>file</c> can be omitted if the link target
+ is the current application or file.</p>
+ <p>There are several different see tags that are to be used depending on
+ what it is that they point to.</p>
+ <taglist>
+ <tag>&lt;seemfa&gt;</tag>
+ <item>
+ <p>Points to an MFA using the syntax <c>application:module#function/arity</c>.
+ These links must point to functions documented in a &lt;funcs&gt; section.
+ Examples:</p>
+ <pre><![CDATA[
+<seemfa marker="stdlib:string#length/1">string:length/1</seemfa>
+<seemfa marker="string#length/1">string:length/1</seemfa>
+<seemfa marker="#length/1">string:length/1</seemfa>
+]]></pre>
+ results in: <seemfa marker="stdlib:string#length/1">string:length/1</seemfa>.
+ </item>
+ <tag>&lt;seeerl&gt;</tag>
+ <item>
+ <p>Points to an Erlang module or a custom <seeguide marker="#markerTAG">marker</seeguide>
+ within a module. Example:</p>
+ <pre><![CDATA[
+<seeerl marker="stdlib:string">string(3)</seemfa>,
+<seeerl marker="stdlib:string#oldapi">Old API in string</seemfa>
+]]></pre>
+ results in: <seeerl marker="stdlib:string">string(3)</seeerl>,<seeerl marker="stdlib:string#oldapi">Old API in string</seeerl>.
+ </item>
+ <tag>&lt;seetype&gt;</tag>
+ <item>
+ <p>Points to a type using the syntax <c>application:module#type</c>.
+ These links must point to types documented in a &lt;datatypes&gt; section.
+ Example:</p>
+ <pre><![CDATA[
+<seetype marker="stdlib:string#oldapi">string::grapheme_cluster()</seetype>
+]]></pre>
+ results in: <seetype marker="stdlib:string#grapheme_cluster">string::grapheme_cluster()</seetype>.
+ </item>
+ <tag>&lt;seeapp&gt;</tag>
+ <item><p>Points to the application documentation. <c>index</c> can be used as the target file.
+ Example:</p>
+ <pre><![CDATA[
+<seeapp marker="stdlib:STDLIB_app">STDLIB app</seeapp>,
+<seeapp marker="stdlib:index">STDLIB index</seeapp>
+]]></pre>
+ results in: <seeapp marker="stdlib:STDLIB_app">STDLIB</seeapp>, <seeapp marker="stdlib:index">STDLIB</seeapp>.
+ </item>
+ <tag>&lt;seecom&gt;</tag>
+ <item>
+ <p>Points to the documentation of any command line utility. Example:</p>
+ <pre><![CDATA[
+<seecom marker="erts:epmd">epmd</seecom>
+]]></pre>
+ results in: <seecom marker="erts:epmd">epmd</seecom>.
+ </item>
+ <tag>&lt;seecref&gt;</tag>
+ <item>
+ <p>Points to the documentation of any C reference. Example:</p>
+ <pre><![CDATA[
+<seecref marker="erts:erl_nif">erl_nif</seecref>
+]]></pre>
+ results in: <seecref marker="erts:erl_nif">erl_nif</seecref>.
+ </item>
+ <tag>&lt;seefile&gt;</tag>
+ <item>
+ <p>Points to the documentation of a file format. Example:</p>
+ <pre><![CDATA[
+<seefile marker="kernel:config">config(3)</seefile>
+]]></pre>
+ results in: <seefile marker="kernel:config">config(3)</seefile>.
+ </item>
+ <tag>&lt;seeguide&gt;</tag>
+ <item>
+ <p>Points to the User&quot;s Guide of any application.
+ <c>index</c> can be used as the target file. Example:</p>
+ <pre><![CDATA[
+<seeguide marker="kernel:index">Kernel User's Guide Index</seeguide>,
+<seeguide marker="kernel:logger_chapter">Logging in the Kernel User's Guide</seeguide>
+]]></pre>
+ results in: <seeguide marker="kernel:index">Kernel User's Guide Index</seeguide>,
+ <seeguide marker="kernel:logger_chapter">Logging in the Kernel User's Guide</seeguide>.
+ </item>
+ </taglist>
+ </section>
+
<section>
<marker id="urlTAG"></marker>
<title>&lt;url&gt; - Non-Local Cross Reference</title>