-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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(docs): fix most sphinx warnings #6916
fix(docs): fix most sphinx warnings #6916
Conversation
000b5bc
to
1a73037
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed each file and can assert that it is as it needs to be for correct formatting and eliminating Sphinx errors. The lv_conf_template.h
and lv_conf_internal.h
are minor formatting updates that got overlooked previously.
1a73037
to
4f63e36
Compare
the duplicate labels are happening because there is a duplicate reference. It is a crappy error/warning that sphinx uses and it really needs to be changed upstream in sphinx. If you look at the hard coded Line 1099 in 0227f7d
needs to be changed to
and Line 1334 in 0227f7d
That will stop the label collisions. There has been a massive change to the API naming and that includes filenames. If the hard coded |
the problem with the not finding files is the reason why I went looking for a breathe replacement. Breathe is designed to read one header file at a time. The problem with that is the use of a configuration header file that exposes the various portions of the API. In order to allow everything to work properly each and every single header file in LVGL would need to include the config header file. How LVGL works currently is it includes the config header file a single time when lvgl.h is included and the config settings propagate because the compiler sees the macros from the config file because that file was loaded. But if using the compiler to read a single header file that information is now unavailable. It is a limitation of breathe and it is something that is not going to be fixed upstream in breathe unless the guy gets paid to fix it. The other issue with breathe is it doesn't use full paths when generating documentation using the |
Got it. 😉 |
@kisvegabor Ready with cherry-picked PR if you hadn't seen this already. Co-authored by Kevin if that part is not automated. |
Thank you for the tips! It works!
Got it. Handled.
Let's move this to #6924 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Victor and Kevin.
Having these in place would make further work on the docs simpler and lighter.
I think we can eliminate all the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks! Looks like there are merge conflicts. |
I'm on it. |
bce37ef
to
0b7c5c7
Compare
(cherry picked from commit cb25568)
(cherry picked from commit 46713c0)
(cherry picked from commit 5b11c5b) # Conflicts: # docs/integration/ide/pc-simulator.rst
(cherry picked from commit 57bcff3) # Conflicts: # docs/overview/renderers/arm2d.rst # docs/widgets/label.rst
(cherry picked from commit b224555) # Conflicts: # docs/porting/indev.rst
Guidelines for updating documentation. (cherry picked from commit dcb9725)
Co-authored-by: Liam <30486941+liamHowatt@users.noreply.github.com>
Co-authored-by: Liam <30486941+liamHowatt@users.noreply.github.com>
Co-authored-by: Liam <30486941+liamHowatt@users.noreply.github.com>
0b7c5c7
to
45f27e0
Compare
Conflicts handled and re-submitted. FYI, the underline lengths previously discussed also match the titles in this one. |
There is a new conflict. 🙁 |
# Conflicts: # docs/overview/renderers/arm2d.rst
No problem! Conflict fixed & re-submitted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I did not check thoroughly. I will assume the conflict resolution was ok 🙂
Thank you. Indeed. @kisvegabor Over to you, kind sir! |
Thank you! |
The long dashed lines get changed into a horizontal line or hrule |
I know, but I think we don't need these custom decorations, but for consistency we should rely on the markdown viewer's style. |
- Remove horizontal rules as requested. - Grammar corrected. - Edited for clarity. - Artificial line wraps (as `.md` files produce when the internal text is readable) removed, so that line wrapping will occur with browser width. - Stated requirement for 2 blank lines after lists and code blocks removed as these do not always improve readability. - 2 blank lines over headings requirement allowed to remain, since these always improve readability. - File content examples outdented to left edge to more accurately portray file content. - Several clarifications and added. - Accurate reStructuredText vocabulary used. - Error of only one colon after `.. code-block::` directive fixed (all directives other than link targets must have 2 colons). - "Paragraph" clarified as "Sub Sub Sub Section" since not everyone will know Doxygen's @paragraph command marks the lowest-level Doxygen section heading. - Examples for linking to code in API pages clarified with solutions. Addresses request expressed by Gábor at end of PR lvgl#6916.
Done! PR #6992 |
markdown viewer or ReST viewer? |
Markdown. |
Co-authored-by: Kevin Schlosser <kdschlosser@users.noreply.github.com> Co-authored-by: Liam <30486941+liamHowatt@users.noreply.github.com>
cc: @kisvegabor
In PR #6542 Kevin made a number of valuable changes to .RST files the eliminate
a large number of Sphinx errors that he encountered. Those were cherry picked
and reviewed and brought here. On a test docs generation a few more cropped
up and they were handled here as well.
What it leaves UNhandled because it has something to do with
breathe
that I don'tquite get yet is a large number of warnings that look like this (all "Cannot find file"):
and
which appears to be caused by an error in whatever preps the API .RST files for Sphinx. In the above example, I believe either this file:
<tmpdir>\API/widgets/led/lv_led.rst
or this file<tmpdir>\widgets\led.rst
is in error, not sure which.I am hoping Kevin ( @kdschlosser ) might know what to do with these.
Notes
lv_conf_template.h
run lv_conf_internal_gen.py and update Kconfig. n/ascripts/code-format.py
(astyle v3.4.12
needs to installed by runningcd scripts; ./install_astyle.sh
) and follow the Code Conventions. n/a