Skip to content

Document class-scope constants - #306

Merged
ddemidov merged 1 commit into
developfrom
issue-229
Feb 17, 2017
Merged

ddemidov merged 1 commit into
developfrom
issue-229

Conversation

@ddemidov

@ddemidov ddemidov commented Feb 17, 2017 •

Copy link
Copy Markdown
Member

@ddemidov

Copy link
Copy Markdown
Member Author

Please don't merge yet, there are some platform-specific constants to do.

@WasabiFan

Copy link
Copy Markdown
Member

I may be incompetent when reviewing at 5:00, but at 2:00 I think I have a handle on things 😁

@ddemidov

Copy link
Copy Markdown
Member Author

I believe I am done. One thing I am not sure about is the documentation for Leds class: http://ev3dev-lang.readthedocs.io/projects/python-ev3dev/en/issue-229/other.html#ev3dev.ev3.Leds. It has manually entered lists for EV3 and for BrickPi platforms, and the documentation generator also picked up constants for the EV3 platform.

I don't think we can get auto-documentation for both platforms, so may be its best to leave the manually entered section as is.

@WasabiFan

Copy link
Copy Markdown
Member

may be its best to leave the manually entered section as is.

I'd agree with that. Honestly, if someone can't figure out what a constant named GREEN means in an LED class, they aren't going to get far anyway.

@ddemidov

Copy link
Copy Markdown
Member Author

So, remove the autodoc strings, or keep both?

@WasabiFan

Copy link
Copy Markdown
Member

I vote to keep the manual stuff as-is, and put documentation everywhere else (i.e. the common bits),

@ddemidov

Copy link
Copy Markdown
Member Author

Ok, I've stripped led-related commits from the PR.

@ddemidov
ddemidov merged commit cb0fdbe into develop Feb 17, 2017
@ddemidov
ddemidov deleted the issue-229 branch February 17, 2017 10:49
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.

2 participants