Skip to content

Instantly share code, notes, and snippets.

@nekketsuuu
Last active July 23, 2021 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nekketsuuu/6d4f7e08d161e51e8b2caf33355a81a6 to your computer and use it in GitHub Desktop.
Save nekketsuuu/6d4f7e08d161e51e8b2caf33355a81a6 to your computer and use it in GitHub Desktop.
`diff -uprN webman_original webman` for https://github.com/ocaml/ocaml/pull/10535
diff -uprN webman_original/manual/ocamldoc.html webman/manual/ocamldoc.html
--- webman_original/manual/ocamldoc.html 2021-07-23 13:23:29.019720100 +0900
+++ webman/manual/ocamldoc.html 2021-07-23 13:25:02.792112400 +0900
@@ -611,7 +611,7 @@ must be escaped by a ’<span class="c00
</tbody></table><p> <br>
</p>
-<h4 class="subsubsection" id="sss:ocamldoc-list"><a class="section-anchor" href="#sss:ocamldoc-list" aria-hidden="true"></a>17.<span class="number">4.1</span>List formatting</h4>
+<h4 class="subsubsection" id="sss:ocamldoc-list"><a class="section-anchor" href="#sss:ocamldoc-list" aria-hidden="true"></a><span class="number">2.4.1</span>List formatting</h4>
<div class="syntax"><table class="display dcenter"><tbody><tr class="c020"><td class="dcell"><table class="c001 cellpading0"><tbody><tr><td class="c019">
<a class="syntax" id="list"><span class="c011">list</span></a></td><td class="c016">::=</td><td class="c018">
 </td></tr>
@@ -637,7 +637,7 @@ The list is ended by the blank line.*)
The same shortcut is available for enumerated lists, using ’<span class="c004">+</span>’
instead of ’<span class="c004">-</span>’.
Note that only one list can be defined by this shortcut in nested lists.</p>
-<h4 class="subsubsection" id="sss:ocamldoc-crossref"><a class="section-anchor" href="#sss:ocamldoc-crossref" aria-hidden="true"></a>17.<span class="number">4.2</span>Cross-reference formatting</h4>
+<h4 class="subsubsection" id="sss:ocamldoc-crossref"><a class="section-anchor" href="#sss:ocamldoc-crossref" aria-hidden="true"></a><span class="number">2.4.2</span>Cross-reference formatting</h4>
<p>Cross-references are fully qualified element names, as in the example
<span class="c004">{!Foo.Bar.t}</span>. This is an ambiguous reference as it may designate
a type name, a value name, a class name, etc. It is possible to make
@@ -666,7 +666,7 @@ to avoid the ambiguity of several types
names. For example, the constructor <span class="c004">Node</span> of the type <span class="c004">tree</span> will be
referenced as <span class="c004">{!tree.Node}</span> or <span class="c004">{!const:tree.Node}</span>, or possibly
<span class="c004">{!Mod1.Mod2.tree.Node}</span> from outside the module.</p>
-<h4 class="subsubsection" id="sss:ocamldoc-preamble"><a class="section-anchor" href="#sss:ocamldoc-preamble" aria-hidden="true"></a>17.<span class="number">4.3</span>First sentence</h4>
+<h4 class="subsubsection" id="sss:ocamldoc-preamble"><a class="section-anchor" href="#sss:ocamldoc-preamble" aria-hidden="true"></a><span class="number">2.4.3</span>First sentence</h4>
<p>In the description of a value, type, exception, module, module type, class
or class type, the <em>first sentence</em> is sometimes used in indexes, or
when just a part of the description is needed. The first sentence
@@ -685,13 +685,13 @@ outside of the following text formatting
<span class="c003"><span class="c004">{!</span> <span class="c011">string</span> <span class="c004">}</span></span> ,
<span class="c005">{^</span> <a class="syntax" href="#text"><span class="c011">text</span></a> <span class="c005">}</span> ,
<span class="c005">{_</span> <a class="syntax" href="#text"><span class="c011">text</span></a> <span class="c005">}</span> .</p>
-<h4 class="subsubsection" id="sss:ocamldoc-target-specific-syntax"><a class="section-anchor" href="#sss:ocamldoc-target-specific-syntax" aria-hidden="true"></a>17.<span class="number">4.4</span>Target-specific formatting</h4>
+<h4 class="subsubsection" id="sss:ocamldoc-target-specific-syntax"><a class="section-anchor" href="#sss:ocamldoc-target-specific-syntax" aria-hidden="true"></a><span class="number">2.4.4</span>Target-specific formatting</h4>
<p>The content inside <span class="c004">{%foo: ... %}</span> is target-specific and will only be
interpreted by the backend <span class="c004">foo</span>, and ignored by the others. The
backends of the distribution are <span class="c004">latex</span>, <span class="c004">html</span>, <span class="c004">texi</span> and <span class="c004">man</span>. If
no target is specified (syntax <span class="c004">{% ... %}</span>), <span class="c004">latex</span> is chosen by
default. Custom generators may support their own target prefix.</p>
-<h4 class="subsubsection" id="sss:ocamldoc-html-tags"><a class="section-anchor" href="#sss:ocamldoc-html-tags" aria-hidden="true"></a>17.<span class="number">4.5</span>Recognized HTML tags</h4>
+<h4 class="subsubsection" id="sss:ocamldoc-html-tags"><a class="section-anchor" href="#sss:ocamldoc-html-tags" aria-hidden="true"></a><span class="number">2.4.5</span>Recognized HTML tags</h4>
<p>
The HTML tags <span class="c004">&lt;b&gt;..&lt;/b&gt;</span>,
<span class="c004">&lt;code&gt;..&lt;/code&gt;</span>,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment