docs: bpf: Fix RST conversion
Subsystems (4)
cover docs: bpf: Fix RST conversion
Recently BPF docs were converted to RST format. A couple of things were missed.
- Use 'index.rst' instead of 'README.rst'. Although README.rst will work just fine it is more typical to keep the subdirectory indices in a file called 'index.rst'.
- Integrate files Documentation/bpf/*.rst into build system using toctree in Documentation/bpf/index.rst
- Include bpf/index in top level toctree so bpf is indexed in the main kernel docs.
- Make anal change to heading format (inline with rest of Documentation/).
thanks,
Tobin.
Tobin C. Harding (4):
docs: bpf: Rename README.rst to index.rst
docs: bpf: Add toctree to index
docs: Add bpf/index to top level index
docs: bpf: Capitalise document heading
Documentation/bpf/{README.rst => index.rst} | 10 +++++-----
Documentation/index.rst | 1 +
2 files changed, 6 insertions(+), 5 deletions(-)
rename Documentation/bpf/{README.rst => index.rst} (82%)Signature · 1 line
2.17.1
PATCH 1/4 docs: bpf: Rename README.rst to index.rst
Recently bpf/ docs were converted to us RST format. 'README.rst' was created but in order to fit in with the Sphinx build system this file should be named 'index.rst'. Rename file, fixes to integrate into Sphinx build system in following patches.
docs: Rename Documentation/bpf/README.rst to Documentation/bpf/index.rst
---
Documentation/bpf/{README.rst => index.rst} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename Documentation/bpf/{README.rst => index.rst} (100%)Documentation/bpf/index.rst renamed from Documentation/bpf/README.rst +0 -0
Signature · 1 line
2.17.1
Re: [PATCH 1/4] docs: bpf: Rename README.rst to index.rst
Hello!
Quoted 1 line · Tobin C. Harding
Recently bpf/ docs were converted to us RST format. '
README.rst' was
s/us/use/?
Quoted 7 lines
created but in order to fit in with the Sphinx build system this file should be named '
index.rst'. Rename file, fixes to integrate into Sphinx build system in following patches.docs: Rename
Documentation/bpf/README.rsttoDocumentation/bpf/index.rstSigned-off-by Tobin C. Harding <[email protected]>
[...]
MBR, Sergei
Re: [PATCH 1/4] docs: bpf: Rename README.rst to index.rst
Quoted 7 lines · Sergei Shtylyov
Hello!
Quoted 1 line · Tobin C. Harding
Recently bpf/ docs were converted to us RST format. '
README.rst' wass/us/use/?
Thanks for the review Sergei, will fix and re-spin.
Quoted 10 lines
Quoted 7 lines
created but in order to fit in with the Sphinx build system this file should be named '
index.rst'. Rename file, fixes to integrate into Sphinx build system in following patches.docs: Rename
Documentation/bpf/README.rsttoDocumentation/bpf/index.rstSigned-off-by Tobin C. Harding <[email protected]>[...]
MBR, Sergei
What does MBR stand for please (not master boot record I'm guessing)?
Tobin
Re: [PATCH 1/4] docs: bpf: Rename README.rst to index.rst
Quoted 5 lines · Tobin C. Harding
Quoted 3 lines
Quoted 1 line
Recently bpf/ docs were converted to us RST format. '
README.rst' wass/us/use/?Thanks for the review Sergei, will fix and re-spin.
Perhaps could be fixed while applying...
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
created but in order to fit in with the Sphinx build system this file should be named '
index.rst'. Rename file, fixes to integrate into Sphinx build system in following patches.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
docs: Rename
Documentation/bpf/README.rsttoDocumentation/bpf/index.rstSigned-off-by Tobin C. Harding <[email protected]>[...]
MBR, Sergei
What does MBR stand for please (not master boot record I'm guessing)?
My best regards. :-)
Quoted 1 line
Tobin
MBR, Sergei
PATCH 2/4 docs: bpf: Add toctree to index
In reply to Tobin C. HardingRecently bpf/ docs were converted to us RST format. bp/index.rst was created out of README but toctree was not added to include files within Documentation/bpf/
Add toctree to Documentation/bpf/index.rst
--- Documentation/bpf/index.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Documentation/bpf/index.rst +4 -4
@@ -22,14 +22,14 @@ Frequently asked questions (FAQ) Two sets of Questions and Answers (Q&A) are maintained. -* QA for common questions about BPF see: bpf_design_QA_ +.. toctree:: + :maxdepth: 1 -* QA for developers interacting with BPF subsystem: bpf_devel_QA_ + bpf_design_QA + bpf_devel_QA .. Links: -.. _bpf_design_QA: bpf_design_QA.rst -.. _bpf_devel_QA: bpf_devel_QA.rst .. _Documentation/networking/filter.txt: ../networking/filter.txt .. _man-pages: https://www.kernel.org/doc/man-pages/ .. _bpf(2): http://man7.org/linux/man-pages/man2/bpf.2.html
Signature · 1 line
2.17.1
PATCH 3/4 docs: Add bpf/index to top level index
In reply to Tobin C. HardingRecently bpf docs were converted to RST format. The new files were not added to the top level toctree. This causes build system to emit a warning of type
WARNING: document isn't included in any toctree
Add bpf/index.rst to Documentation/index.rst
--- Documentation/index.rst | 1 + 1 file changed, 1 insertion(+)
Documentation/index.rst +1 -0
@@ -92,6 +92,7 @@ needed). crypto/index filesystems/index vm/index + bpf/index Architecture-specific documentation -----------------------------------
Signature · 1 line
2.17.1
PATCH 4/4 docs: bpf: Capitalise document heading
In reply to Tobin C. HardingThe majority of files in the kernel documentation index use capitalisation for all words, especially the shorter ones. BPF docs better fit in with the rest of the documentation if the heading is all capitalised.
Capitalise document heading.
--- Documentation/bpf/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/bpf/index.rst +1 -1
@@ -1,5 +1,5 @@ ================= -BPF documentation +BPF Documentation ================= This directory contains documentation for the BPF (Berkeley Packet
Signature · 1 line
2.17.1