-
Notifications
You must be signed in to change notification settings - Fork 2.1k
boards/rpi-pico*: Update and fix documentation and image #21218
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
Conversation
Apparently the comment block is used incorrectly, therefore causing the issue with the triple stars. https://www.doxygen.nl/manual/markdown.html#mddox_emph_spans Incorrect:
Correct:
Should we change it? There are probably a lot of A friendly AI crafted this `sed` command for me (after a lot of convincing and some friendly pushing to reconsider the conditions..):
It is supposed to ignore lines that start with Personally I'm too stupid to successfully craft a RegEx that would work 😅 |
This assumption was right. I used the following command to find files that have a line that does not start with a slash or a whitespace and the list of potential candidates is 301 entries long. In total, there are 481 List of potential candidates
I think we should change it for these two files, but I don't really want to change everything else at this point as well 🤣 |
Okay, so the first fixup commit reverts the HTML tags back to the three stars and the second fixup commit adds the comment stars. The other commit adds the Raspberry Pi Pico W Group to the header files so that they are linked in the documentation as well. The headers are shared between the two boards. |
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 for tackling this !
Should we change it? There are probably a lot of doc.txt that would(/should?) have to be changed.
Now the best thing to do is to open an issue about this so we can have this in mind and slowly fix it.
Ah, now I finally know what the difference is between these two and why they both exist! +1 for opening a tracking issue and handling separately later. Thanks for digging into it! |
Let me know when I should squash this. I opened an issue #21220 to address the comment block issue. |
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.
Looks good then, please squash :)
Thanks everyone for the input on this :) |
Contribution description
The Raspberry Pi Pico documentation was outdated, OpenOCD supports the RP2040 since version 1.12.0 that was released two years ago.
Furthermore I fixed the Raspberry Pi Pico image and changed the Pico-W image to the one from the documentation with a transparent background.
Doxygen has a
bugintended behavior that***Beware:***
is not rendered as bold-italic but instead it printsBeware:***
in the output. As far as I can tell, this has been present since at least Doxygen 1.8.13 when the documentation was originally added: https://web.archive.org/web/20210921211645/https://doc.riot-os.org/group__boards__rpi__pico.htmlI filed a bug report with Doxygen about this, but for the time being I replaced it with the HTML tags that work: doxygen/doxygen#11420The screenshot is from 1.13.2 for testing on my machine, but this works for all versions down to 1.8.15 or lower, so it'll work on 1.12.0 from the CI machines as well.
Testing procedure
Create the documentation and see if everything looks good.