Skip to content

Add round sliding switch: SwitchRound #9

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
merged 6 commits into from
Mar 9, 2021

Conversation

kmatch98
Copy link
Contributor

@kmatch98 kmatch98 commented Mar 4, 2021

SwitchRound
This is the introductory GUI widget using the Widget and Control classes to create a sliding switch.

@kmatch98
Copy link
Contributor Author

kmatch98 commented Mar 5, 2021

This cleared all the checks. If you can figure out how to access the html docs that are built, I’d appreciate that someone review those too. In particular I am hoping that the detailed description of how this switch is constructed will give a good basis for others to build on.

@FoamyGuy
Copy link
Contributor

FoamyGuy commented Mar 5, 2021

I think I know how to view the generated pages. I'll check it out tonight with the changes in this PR. If it does work how I'm thinking I can share that with you as well.

@kmatch98
Copy link
Contributor Author

kmatch98 commented Mar 6, 2021

I asked about the docs because I looked at the current ReadTheDocs for this library and it still doesn’t show the Widget and Control classes that were just merged. I think I had all the correct additions in api.rst to add them but somehow it’s not showing up. Either I didn’t do it right or maybe it’s just not update over there (which seems unlikely). That’s why I wanted see how to check the build for the docs. I saw some readmes about defining GitHub “artifacts”, but sounds like you have some experience in getting this done.

Anyway, before this gets merged I want to be sure that Widget, Control and SwitchRound docs all match what is expected (from what seems to build ok on my machine).

@FoamyGuy
Copy link
Contributor

FoamyGuy commented Mar 8, 2021

@kmatch98 I see what you mean. It does look correct to when building locally. I'm not sure why the one in readthedocs didn't update. I'm wondering if the order that things happened in the first time somehow made it out of sync.

I'm going to get this tested out today. As long as all is well I think we can merge this and see if the docs update correctly this time. If not we can work with kattni or someone to figure out what else is needed for it.

Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

This is awesome @kmatch98! The animations and easing functions are a really nice touch.

These changes look good to me.

Tested successfully on:

Adafruit CircuitPython 6.2.0-beta.3-36-g103632f44 on 2021-03-07; Adafruit PyPortal with samd51j20

I'm going to merge this. I'll check on the docs afterward and if they don't update we can ask about it tomorrow.

@kmatch98
Copy link
Contributor Author

kmatch98 commented Mar 9, 2021

Thanks a lot for the review!

@FoamyGuy FoamyGuy merged commit d6a7146 into adafruit:main Mar 9, 2021
@FoamyGuy
Copy link
Contributor

FoamyGuy commented Mar 9, 2021

Strange! the docs generated locally look good to me and do include all of the new things. The output I see locally matches the output for the Build docs section of Actions. As far as I can tell everything went smoothly. But the docs visible on the live page do not include any of the newer things.

@kmatch98
Copy link
Contributor Author

kmatch98 commented Mar 9, 2021

That is odd. Maybe somehow it's not getting saved and pushed over to the readthedocs site. Seems like the same issue happend on the last merge. Any idea who can help figure this out?

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Mar 9, 2021
@dhalbert
Copy link
Contributor

dhalbert commented Mar 9, 2021

Somehow the ReadTheDocs webhook URL got set to something wrong. I have set it to the correct URL and forced a new delivery, and it rebuilt. If you could check it that would be great.

@kmatch98
Copy link
Contributor Author

kmatch98 commented Mar 9, 2021

@dhalbert I followed the link on the front page of the repo and the ReadTheDocs docs are still not updated.

Here is the web link it sent me to:
https://circuitpython.readthedocs.io/projects/displayio-layout/en/latest/

I don’t know if it’s any clue, but when I get to the RTD page, the “docs link” there is wrong and goes to nothing:
https://circuitpython.readthedocs.io/projects/displayio_layout/en/latest/

kattni mentioned something related this last week #7

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