Skip to contentSkip to conversation

docs: Standardise capitalisation of section headers in core.rst

PATCH In review Josh Holland 3 participants 4 messages Aug 19, 2017 – Aug 23, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 docs: Standardise capitalisation of section headers in core.rst

The table of contents in security/keys/core.rst had different capitalisation to the section headers, which broke case-sensitive search.

---
 Documentation/security/keys/core.rst | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
Documentation/security/keys/core.rst +11 -11
index 1648fa80b..7c39c595c 100644
@@ -16,17 +16,17 @@ 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
+	- 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
 
 
 Key Overview
Signature · 1 line
2.14.1
#1 lore raw
Quoted 29 lines · Josh Holland

The table of contents in security/keys/core.rst had different capitalisation to the section headers, which broke case-sensitive search.

---
 Documentation/security/keys/core.rst | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
Documentation/security/keys/core.rst +1 -11
index 1648fa80b..7c39c595c 100644
@@ -16,17 +16,17 @@ 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
+	- Key Overview

Documentation/security/keys/core.rst The key service can be configured on by enabling: · line 29

Quoted 10 lines
Documentation/security/keys/core.rst +10 -0
+	- 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

If you want to retain the contents in .rst for the benefit of reading this as plain text, this is fine.

However, if you want to sphinxify things a little, you could make the resulting html a little bit nicer with automatic links, and document maintenance a little bit easier, by replacing the hand written contents with:

.. contents::
:local:

The maintainer's call, obviously.

BR,
Jani.

Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
maintainer
#2 lore raw
In reply to Josh Holland
Quoted 7 lines · On Mon, 21 Aug 2017 12:15:26 +0300 Jani Nikula <[email protected]>…

However, if you want to sphinxify things a little, you could make the resulting html a little bit nicer with automatic links, and document maintenance a little bit easier, by replacing the hand written contents with:

.. contents::

   :local:

I think this is what we should do. I don't think that manually listing the section heads buys a whole lot for readers of the docs, and experience says they won't be kept in sync with the rest of the document. I'd much rather see a patch taking them out and letting Sphinx do the work.

Part 2 looks fine, though, I'll apply that shortly.

Thanks,

jon

#3 lore raw
In reply to Josh Holland
Quoted 8 lines · Jonathan Corbet
Quoted 5 lines · On Mon, 21 Aug 2017 12:15:26 +0300 Jani Nikula <[email protected]>…

However, if you want to sphinxify things a little, you could make the resulting html a little bit nicer with automatic links, and document maintenance a little bit easier, by replacing the hand written contents with:

Quoted 8 lines
Quoted 2 lines

.. contents::

   :local:

I think this is what we should do. I don't think that manually listing the section heads buys a whole lot for readers of the docs, and experience says they won't be kept in sync with the rest of the document. I'd much rather see a patch taking them out and letting Sphinx do the work.

Ok, I'll send a patch in.

Quoted 1 line

Part 2 looks fine, though, I'll apply that shortly.

Great!

Thanks,

Josh