doc: add eal_args.include to toctree

Message ID 20220331132654.314022-1-ktraynor@redhat.com (mailing list archive)
State Rejected, archived
Delegated to: Thomas Monjalon
Headers
Series doc: add eal_args.include to toctree |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/iol-mellanox-Performance success Performance Testing PASS
ci/intel-Testing success Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/github-robot: build success github build: passed
ci/iol-abi-testing success Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS

Commit Message

Kevin Traynor March 31, 2022, 1:26 p.m. UTC
  A warning is observed on RHEL 8.4.

[1/1] Generating html_guides with a custom command
/root/dpdk/doc/guides/linux_gsg/eal_args.include.rst:
WARNING: document isn't included in any toctree

Add file to toctree to remove warning.

Fixes: 3ee567cfec37 ("doc: document all EAL parameters in one place")
Cc: stable@dpdk.org

Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
---
 doc/guides/linux_gsg/index.rst | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Bruce Richardson March 31, 2022, 1:51 p.m. UTC | #1
On Thu, Mar 31, 2022 at 02:26:54PM +0100, Kevin Traynor wrote:
> A warning is observed on RHEL 8.4.
> 
> [1/1] Generating html_guides with a custom command
> /root/dpdk/doc/guides/linux_gsg/eal_args.include.rst:
> WARNING: document isn't included in any toctree
> 
> Add file to toctree to remove warning.
> 
> Fixes: 3ee567cfec37 ("doc: document all EAL parameters in one place")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
> ---
>  doc/guides/linux_gsg/index.rst | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/doc/guides/linux_gsg/index.rst b/doc/guides/linux_gsg/index.rst
> index 16a9a67260..cffa4998d8 100644
> --- a/doc/guides/linux_gsg/index.rst
> +++ b/doc/guides/linux_gsg/index.rst
> @@ -17,4 +17,5 @@ Getting Started Guide for Linux
>      linux_drivers
>      build_sample_apps
> +    eal_args.include
>      linux_eal_parameters
>      enable_func

I think this is a false-positive warning, that shouldn't be fixed in this
way. That file is not one to be put at the top level of the doc - instead
it is included by both freesd and linux gsg guides within the relevant
sections. If we can't suppress this warning, maybe we need to rename the
file to not end with a .rst extension.

/Bruce
  
Kevin Traynor March 31, 2022, 4:29 p.m. UTC | #2
On 31/03/2022 14:51, Bruce Richardson wrote:
> On Thu, Mar 31, 2022 at 02:26:54PM +0100, Kevin Traynor wrote:
>> A warning is observed on RHEL 8.4.
>>
>> [1/1] Generating html_guides with a custom command
>> /root/dpdk/doc/guides/linux_gsg/eal_args.include.rst:
>> WARNING: document isn't included in any toctree
>>
>> Add file to toctree to remove warning.
>>
>> Fixes: 3ee567cfec37 ("doc: document all EAL parameters in one place")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
>> ---
>>   doc/guides/linux_gsg/index.rst | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/doc/guides/linux_gsg/index.rst b/doc/guides/linux_gsg/index.rst
>> index 16a9a67260..cffa4998d8 100644
>> --- a/doc/guides/linux_gsg/index.rst
>> +++ b/doc/guides/linux_gsg/index.rst
>> @@ -17,4 +17,5 @@ Getting Started Guide for Linux
>>       linux_drivers
>>       build_sample_apps
>> +    eal_args.include
>>       linux_eal_parameters
>>       enable_func
> 
> I think this is a false-positive warning, that shouldn't be fixed in this
> way. That file is not one to be put at the top level of the doc - instead
> it is included by both freesd and linux gsg guides within the relevant
> sections. If we can't suppress this warning, maybe we need to rename the
> file to not end with a .rst extension.
> 

Ok, it's not a big deal anyway, RHEL 8.4 is using an old version of 
sphinx (1.7.6). I can't reproduce on Fedora with a newer version (3.4.3) 
and no one else seems to see it.

I tried to remove the warning with :orphan: but I'm not sure it's that 
well supported in that version. Removing the .rst doesn't seem like the 
right thing either. I'm ok to live with the warning on older sphinx. 
Thanks for replying.

Kevin.

> /Bruce
>
  

Patch

diff --git a/doc/guides/linux_gsg/index.rst b/doc/guides/linux_gsg/index.rst
index 16a9a67260..cffa4998d8 100644
--- a/doc/guides/linux_gsg/index.rst
+++ b/doc/guides/linux_gsg/index.rst
@@ -17,4 +17,5 @@  Getting Started Guide for Linux
     linux_drivers
     build_sample_apps
+    eal_args.include
     linux_eal_parameters
     enable_func