From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jani Nikula Date: Thu, 24 Aug 2017 06:45:25 +0000 Subject: Re: [PATCH v2] docs: ReSTify table of contents in core.rst Message-Id: <87o9r579bu.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit List-Id: References: <20170823204232.1879-1-anowlcalledjosh@gmail.com> In-Reply-To: <20170823204232.1879-1-anowlcalledjosh@gmail.com> To: keyrings@vger.kernel.org On Wed, 23 Aug 2017, Josh Holland wrote: > Sphinx will now generate the table of contents automatically, which > avoids having the ToC getting out of sync with the rest of the document. > > Signed-off-by: Josh Holland > --- > Documentation/security/keys/core.rst | 12 +----------- > 1 file changed, 1 insertion(+), 11 deletions(-) > > diff --git a/Documentation/security/keys/core.rst b/Documentation/security/keys/core.rst > index 312f981fa..1266eeae4 100644 > --- a/Documentation/security/keys/core.rst > +++ b/Documentation/security/keys/core.rst > @@ -16,17 +16,7 @@ The key service can be configured on by enabling: > > This document has the following sections: > > - - Key overview > - - Key service overview > - - Key access permissions > - - SELinux support > - - New procfs files > - - Userspace system call interface > - - Kernel services > - - Notes on accessing payload contents > - - Defining a key type > - - Request-key callback service > - - Garbage collection > +.. contents:: :local: Did you actually try this and look at the 'make htmldocs' results? I know I tried what I suggested: .. contents:: :local: http://docutils.sourceforge.net/docs/ref/rst/directives.html#table-of-contents BR, Jani. > > > Key Overview -- Jani Nikula, Intel Open Source Technology Center