File 4539-Add-more-sections-to-supervisor-introduction.patch of Package erlang

From bf422e6ebb5b79527b5a18d94303087e6a0e304c Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Tue, 13 Apr 2021 09:51:07 +0200
Subject: [PATCH 09/13] Add more sections to supervisor introduction

---
 lib/stdlib/doc/src/supervisor.xml | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/lib/stdlib/doc/src/supervisor.xml b/lib/stdlib/doc/src/supervisor.xml
index 3715c5e7d2..f3f404a600 100644
--- a/lib/stdlib/doc/src/supervisor.xml
+++ b/lib/stdlib/doc/src/supervisor.xml
@@ -69,6 +69,8 @@
       this list. When the supervisor terminates, it first terminates
       its child processes in reversed start order, from right to left.</p>
 
+      <section>
+        <title>Supervisor flags</title>
     <marker id="sup_flags"/>
     <p>The supervisor properties are defined by the supervisor flags.
       The type definition for the supervisor flags is as follows:</p>
@@ -79,6 +81,8 @@ sup_flags() = #{strategy => strategy(),           % optional
                 period => pos_integer(),          % optional
                 auto_shutdown => auto_shutdown()} % optional</pre>
 
+    <section>
+      <title>Restart Stratagies</title>
     <p>A supervisor can have one of the following <em>restart strategies</em>
       specified with the <c>strategy</c> key in the above map:</p>
 
@@ -125,7 +129,9 @@ sup_flags() = #{strategy => strategy(),           % optional
           defined.</p>
       </item>
     </list>
-
+    </section>
+    <section>
+    <title>Restart intensity and period</title>
     <p>To prevent a supervisor from getting into an infinite loop of
       child process terminations and restarts, a <em>maximum restart
       intensity</em> is defined using two integer values specified
@@ -137,7 +143,9 @@ sup_flags() = #{strategy => strategy(),           % optional
       reason for the supervisor itself in that case will be <c>shutdown</c>.
       <c>intensity</c> defaults to <c>1</c> and <c>period</c> defaults to
       <c>5</c>.</p>
-
+    </section>
+    <section>
+      <title>Automatic Shutdown</title>
     <marker id="auto_shutdown"/>
     <p>A supervisor can be configured to automatically shut itself down
       when <seealso marker="#significant_child">significant children</seealso>
@@ -178,7 +186,10 @@ sup_flags() = #{strategy => strategy(),           % optional
         expect that their applications may be compiled with older OTP
         versions.</p>
     </warning>
-
+    </section>
+    </section>
+    <section>
+    <title>Child specification</title>
     <marker id="child_spec"/>
     <p>The type definition of a child specification is as follows:</p>
 
@@ -323,6 +334,7 @@ child_spec() = #{id => child_id(),             % mandatory
       </item>
     </list>
   </section>
+  </section>
 
   <datatypes>
     <datatype>
-- 
2.26.2

openSUSE Build Service is sponsored by