-
Notifications
You must be signed in to change notification settings - Fork 367
Documentation fixes #668
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
Documentation fixes #668
Conversation
|
CI failure is spurious: I don't think this PR warrants a changelog entry so that's also red. |
MabezDev
left a comment
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.
LGTM, thanks!
| # Ensure documentation can be built (requires a chip feature!) | ||
| - name: rustdoc | ||
| run: cd esp-hal-smartled/ && cargo doc --features=esp32c3 | ||
| run: cd esp-hal-smartled/ && cargo doc --features=esp32c3,esp-hal-common/eh1 |
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 thought in your other PR we determined this wasn't needed? Or am I missing something here?
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.
No, no, this is needed so that the eh1-specific links in the common crate don't throw warnings. It was just in the wrong place in that PR.
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.
Oh I see how my comment was misleading. A specific example of a warning fixed by the feature can be seen here. To be fair, a proper solution would have been making the documentation conditional on the feature, but I don't think that would have been worth the complexity.
* Rustdoc improvements * Format efuse bracketed names as code * Fix SPI docs
Thank you!
Thank you for your contribution.
Please make sure that your submission includes the following:
Must
errorsorwarnings.cargo fmtwas run.CHANGELOG.mdin the proper section.Nice to have
This PR is taken from #666 and fixes broken links and other warnings rustdoc may dislike. I've added the
eh1feature to the rustdoc checks where it makes sense, so that the CI will not generate warnings, even though that is largely ineffective.The PR also changes efuse docs a bit, to both improve readability and to fix the markdown syntax.