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

[Merged by Bors] - improve documentation for macro-generated label types #5367

Closed
wants to merge 2 commits into from

Conversation

JoJoJet
Copy link
Member

@JoJoJet JoJoJet commented Jul 18, 2022

Objective

I noticed while working on #5366 that the documentation for label types wasn't working correctly. Having experimented with this for a few weeks, I believe that generating docs in macros is more effort than it's worth.

Solution

Add more boilerplate, copy-paste and edit the docs across types. This also lets us add custom doctests for specific types. Also, we don't need concat_idents as a dependency anymore.

@alice-i-cecile alice-i-cecile added C-Docs An addition or correction to our documentation A-ECS Entities, components, systems, and events labels Jul 18, 2022
@alice-i-cecile alice-i-cecile added this to the Bevy 0.8 milestone Jul 18, 2022
@alice-i-cecile
Copy link
Member

Unblocks #5366, so into the milestone it goes.

@alice-i-cecile
Copy link
Member

I'm on board with this as a direction. Let me know when it's ready for review.

@JoJoJet JoJoJet marked this pull request as ready for review July 18, 2022 13:36
@JoJoJet
Copy link
Member Author

JoJoJet commented Jul 18, 2022

@alice-i-cecile ready now :)

@cart
Copy link
Member

cart commented Jul 20, 2022

bors r+

bors bot pushed a commit that referenced this pull request Jul 20, 2022
# Objective

I noticed while working on #5366 that the documentation for label types wasn't working correctly. Having experimented with this for a few weeks, I believe that generating docs in macros is more effort than it's worth.

## Solution

Add more boilerplate, copy-paste and edit the docs across types. This also lets us add custom doctests for specific types. Also, we don't need `concat_idents` as a dependency anymore.
@bors bors bot changed the title improve documentation for macro-generated label types [Merged by Bors] - improve documentation for macro-generated label types Jul 20, 2022
@bors bors bot closed this Jul 20, 2022
@JoJoJet JoJoJet deleted the label-doc-fix branch July 20, 2022 20:08
inodentry pushed a commit to IyesGames/bevy that referenced this pull request Aug 8, 2022
# Objective

I noticed while working on bevyengine#5366 that the documentation for label types wasn't working correctly. Having experimented with this for a few weeks, I believe that generating docs in macros is more effort than it's worth.

## Solution

Add more boilerplate, copy-paste and edit the docs across types. This also lets us add custom doctests for specific types. Also, we don't need `concat_idents` as a dependency anymore.
james7132 pushed a commit to james7132/bevy that referenced this pull request Oct 28, 2022
# Objective

I noticed while working on bevyengine#5366 that the documentation for label types wasn't working correctly. Having experimented with this for a few weeks, I believe that generating docs in macros is more effort than it's worth.

## Solution

Add more boilerplate, copy-paste and edit the docs across types. This also lets us add custom doctests for specific types. Also, we don't need `concat_idents` as a dependency anymore.
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
# Objective

I noticed while working on bevyengine#5366 that the documentation for label types wasn't working correctly. Having experimented with this for a few weeks, I believe that generating docs in macros is more effort than it's worth.

## Solution

Add more boilerplate, copy-paste and edit the docs across types. This also lets us add custom doctests for specific types. Also, we don't need `concat_idents` as a dependency anymore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Docs An addition or correction to our documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants