Skip to content

Feature/remove toc not included warnings#721

Draft
sipke wants to merge 8 commits intodevicetree-org:masterfrom
sipke:feature/remove-toc-not-included-warnings
Draft

Feature/remove toc not included warnings#721
sipke wants to merge 8 commits intodevicetree-org:masterfrom
sipke:feature/remove-toc-not-included-warnings

Conversation

@sipke
Copy link

@sipke sipke commented Mar 16, 2026

This pull request (PR) supports openamp-docs PR OpenAMP/openamp-docs#82, whose intent is to integrate git submodule documentation into openamp readthedocs.
Any markdown (.md) or restructured text (.rst) not included in openamp-docs show up as sphinx documentation warnings "toc not included", so these are either introduced into readthedocs or hidden if not relevant.
Additionally any new sphinx warnings are addressed.

Sipke Vriend added 8 commits March 16, 2026 14:19
To integrate these readme files into open-amp readthedocs the layout
as created by table of contents is better when the file has a title so
introduce a title and change H1 headings to H2.

Signed-off-by: Sipke Vriend <sipke@direktembedded.com>
To integrate this index file into open-amp readthedocs reduce the title
length and wording to suit a table of contents heading.

Signed-off-by: Sipke Vriend <sipke@direktembedded.com>
To integrate this index file into open-amp readthedocs reduce the depth
of table of contents to avoid excessive levels.

Signed-off-by: Sipke Vriend <sipke@direktembedded.com>
Correct table formatting to fix sphinx error
ERROR: Malformed table

Signed-off-by: Sipke Vriend <sipke@direktembedded.com>
Clarify headings to remove duplicate labels sphinx warning.
WARNING: duplicate label

Signed-off-by: Sipke Vriend <sipke@direktembedded.com>
Add empty line to remove sphinx warning
WARNING: Bullet list ends without a blank line

Signed-off-by: Sipke Vriend <sipke@direktembedded.com>
Add a delimiter to the bold/* emphasis character to avoid the warning
WARNING: Inline emphasis start-string without end-string

Signed-off-by: Sipke Vriend <sipke@direktembedded.com>
…hinx

Clarify headings to remove duplicate labels sphinx warning.
WARNING: duplicate label

Signed-off-by: Sipke Vriend <sipke@direktembedded.com>
Welcome to Linux Device Tree Generation for AMD SOCs using Lopper and SDT's documentation!
===========================================================================================
Linux Device Tree Generation for AMD SOCs using Lopper and SDT's
================================================================
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd prefer to leave this as-is, there's different consumers of this, and I'm not fond of tweaking it to suit one over the others.

Copy link
Author

Choose a reason for hiding this comment

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

Ok. fair.

Copy link
Collaborator

@zeddii zeddii left a comment

Choose a reason for hiding this comment

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

You'll need to be more specific here.

How does this change the output of the docs ? What's the old versus the new look like ?

I have no idea about the open-amp readthedocs, so using that as a reason for a change unfortunately doesn't mean anything to me.

Copy link
Collaborator

@zeddii zeddii left a comment

Choose a reason for hiding this comment

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

You'll need to be more specific here.

How does this change the output of the docs ? What's the old versus the new look like ?

I have no idea about the open-amp readthedocs, so using that as a reason for a change unfortunately doesn't mean anything to me.

Basic Workflow (without board-specific device-tree):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Gen 2 Basic Workflow (without board-specific device-tree):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know very little about sphinx (outside of occasioning editing file and generating with it).

What is the significance of "Gen 2" in the updated lines ?

Copy link
Author

@sipke sipke Mar 17, 2026

Choose a reason for hiding this comment

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

You can enable autosectionlabel generation when using sphinx/doxygen. i.e. for every heading in an rst or md file a label is created based on the heading. https://www.sphinx-doc.org/en/master/usage/extensions/autosectionlabel.html
Where the autosectionlabel can be used in external other rst files to reference/link these headings directly, without having to add manual labels.
Unfortunately sphinx does not prefix subheadings with the previous heading level so any subheading which is the same in multiple higher level headings is a duplicate label.
What you had is cleaner (more readable), so maybe not a good idea to change, but anyone using autosectionlabel will receive a warning currently if enabled.
The Gen 2 was just propogated from the top level heading "For Versal Gen 2 Platform:"

@sipke
Copy link
Author

sipke commented Mar 17, 2026

Can't do it at moment, but I will rework the branch to target "actual" documentation errors, and remove the format/layout change ones where there is a sphinx warning but arguably not an issue.

In terms of how things change, apart from the obvious ones where the title changed, there were only really heading level changes, where subheadings were slightly smaller, and each file receive a top level heading. The main difference is the sphinx build output generates less warnings.
Understand your concerns though, so will rework and resubmit.

@sipke sipke marked this pull request as draft March 17, 2026 06:59
@sipke sipke marked this pull request as draft March 17, 2026 06:59
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