Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix toctree warnings and render toctree in the HTML sidebar #20

Merged
merged 2 commits into from
Jul 29, 2021

Conversation

aprotyas
Copy link
Contributor

@aprotyas aprotyas commented Jul 23, 2021

This PR fixes a warning about the library API document not being included in the document, and also fixes the sidebar rendering (table of content shows up in the sidebar correctly).

These two issues are connected because the Sphinx html theme uses the :toctree: directive to create the sidebar.

References:

Signed-off-by: Abrar Rahman Protyasha [email protected]

This commit fixes a warning about the library API
document not being included in the document, and
also fixes the API sidebar rendering.

These two issues are connected because the Sphinx
html theme uses the `:toctree:` directive to create
the sidebar.

References:
* Exhale, link to generated documentation API: https://exhale.readthedocs.io/en/latest/usage.html#make-your-documentation-link-to-the-generated-api
* Sphinx rtd theme, table of content options: https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html#table-of-contents-options

Signed-off-by: Abrar Rahman Protyasha <[email protected]>
This change allows us to relax the assumption that every package
contains a README file.

A possible TODO could be to add configuration options to enable
something like this.

Signed-off-by: Abrar Rahman Protyasha <[email protected]>
@aprotyas
Copy link
Contributor Author

@wjwwood can you merge the PR?

@wjwwood wjwwood merged commit 25d00f0 into ros-infrastructure:main Jul 29, 2021
@aprotyas aprotyas deleted the aprotyas/fix-toctree-issues branch July 29, 2021 20:41
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.

3 participants