Skip to content

Feature/remove toc not included warnings#82

Draft
sipke wants to merge 4 commits intoOpenAMP:mainfrom
sipke:feature/remove-toc-not-included-warnings
Draft

Feature/remove toc not included warnings#82
sipke wants to merge 4 commits intoOpenAMP:mainfrom
sipke:feature/remove-toc-not-included-warnings

Conversation

@sipke
Copy link

@sipke sipke commented Dec 22, 2025

This PR is not complete and provided as an example follow on for PR #81.

All git submodules currently have files not included in openamp-docs, which results in warning
WARNING: document isn't included in any toctree [toc.not_included]

Most of the files could be integrated into the documentations, with first example given including the "build" information for the Echo Example of the openamp-system-reference.

There are some files harder to integrate and for those recommendation is to filter them out using the toc :hidden: feature which suppresses the warning.

Note, that some changes will be needed for files in submodules also as some of the links there are relative hyperlinks, rather than sphinx references. You will notice under Echo Test Build Information -> Compilation, the link to README.md does not work currently, as it is a relative hyperlink rather than sphinx reference. Solvable, just not done yet in this proposal.

If the proposal is acceptable, can proceed to eliminate toc.not_included warnings in one of the above two methods.

@sipke sipke mentioned this pull request Dec 22, 2025
@arnopo arnopo requested review from arnopo, edmooring and tnmysh January 26, 2026 14:05
:maxdepth: 2
:caption: Echo Test Build Information

../openamp-system-reference/examples/legacy_apps/examples/echo/README No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should not rework the readme files

../openamp-system-reference/examples/legacy_apps/README should perhaps describe how to set the compilation environment , and we should remove the Run application on a Linux PC chapter.

Link to openamp-system-reference/examples/legacy_apps/README in ../openamp-system-reference/examples/legacy_apps/examples/echo/README seems broken.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, adjusting readme files to suit inclusion into openamp docs would make sense.
Yes, as mentioned in the PR summary (second last paragraph) some links are broken as they do not use sphinx references. I did not fix those for this draft pull request as was just showing how the toc not included warnings can be corrected as example before proceeding to address all as there are quite some.

Sipke Vriend added 3 commits February 16, 2026 09:57
there are submodules which have document files just for the repository,
so provide a toctree of hidden files so the warning about missing file
in toc is suppressed.
WARNING: document isn't included in any toctree [toc.not_included]

Signed-off-by: Sipke Vriend <sipke@direktembedded.com>
for ease of reference to build information in the submodule add a
content table to the echo example documentation in the
openamp-system-reference. This will also remove the warning that the file
is not in a toc.
WARNING: document isn't included in any toctree [toc.not_included]

Signed-off-by: Sipke Vriend <sipke@direktembedded.com>
Add the examples/legacy_apps/readme from the openamp-system-reference
repository to the reference board page as the build information applies
to all applications rather than any one demo from legacy_apps.

Signed-off-by: Sipke Vriend <sipke@direktembedded.com>
@sipke sipke force-pushed the feature/remove-toc-not-included-warnings branch from 72f2465 to 7a70774 Compare February 16, 2026 06:28
to show the rewrite of readme's in the legacy_apps examples, move the
gitmodule temporarily.
This commit should not be merged to main!

Signed-off-by: Sipke Vriend <sipke@direktembedded.com>
@sipke sipke force-pushed the feature/remove-toc-not-included-warnings branch from 7a70774 to 1530e3e Compare February 16, 2026 06:31
@sipke
Copy link
Author

sipke commented Feb 16, 2026

Reworked this slightly.

  • Changed echo demo to link only to the legacy_apps/examples/echo/README file, and modified that README to embed the build information. See end of the echo readme file.This embedding only works in readthedocs (ignored by github), so the original link is left in the repository. Unfortunately I could not figure out how to make a reference work for both readthedocs and github.

  • Added reference to the legacy_apps/README under reference boards as it provides build info for multiple applications. May not be exactly the right place for this eventually, but for now it ensures the toc.not_included warning is suppressed.

@arnopo if this is the right direction to start cross linking build info between repositories and readthedocs let me know and I will repeat for other demos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants