Skip to content

Conversation

@bugadani
Copy link
Contributor

Thank you!

Thank you for your contribution.
Please make sure that your submission includes the following:

Must

  • The code compiles without errors or warnings.
  • All examples work.
  • cargo fmt was run.
  • Your changes were added to the CHANGELOG.md in the proper section.
  • You updated existing examples or added examples (if applicable).
  • Added examples are checked in CI

Nice to have

  • You add a description of your work to this PR.
  • You added proper docs for your newly added features and code.

This PR is taken from #666 and fixes broken links and other warnings rustdoc may dislike. I've added the eh1 feature 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.

@bugadani
Copy link
Contributor Author

CI failure is spurious: failed to get 200 response from https://crates.io/api/v1/crates/esp32s2/0.15.0/download, got 503

I don't think this PR warrants a changelog entry so that's also red.

Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@MabezDev MabezDev merged commit adeb3c6 into esp-rs:main Jul 24, 2023
@bugadani bugadani deleted the docs branch July 24, 2023 19:17
# 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
Copy link
Member

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?

Copy link
Contributor Author

@bugadani bugadani Jul 24, 2023

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.

Copy link
Contributor Author

@bugadani bugadani Jul 24, 2023

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.

playfulFence pushed a commit to playfulFence/esp-hal that referenced this pull request Sep 26, 2023
* Rustdoc improvements

* Format efuse bracketed names as code

* Fix SPI docs
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