Open-source updates - 04 October 2021
Published by Patrick Arminio on
Last two weeks have been intense! I've been working on improvements for our website and as usual I've been reviewing some PRs. I also did a bit of cleanup for Hacktobterfest 😊 Oh and we now also support Python 3.10 😊
Last two weeks have been intense! I’ve been working on improvements for our website and as usual I’ve been reviewing some PRs. I also did a bit of cleanup for Hacktobterfest 😊 Oh and we now also support Python 3.10 😊
It’s Hacktoberfest 🎃 time! This means we will get some new people wanting to contribute to Strawberry this month! So I spent a bit of time cleaning up old issues and checking if labels were alright 😊
If you want to help feel free to take a look at the issues label as “good-first-issue”.
Python 3.10 is going to be released this month, so we made a PR to add support for it. I had this open for quite a few months, but was waiting for dependencies to fix some issues. Now all of them seems to be working fine on Python 3.10, so I’ve update the PR to fix a couple of issues with Python 3.10 and to also add support for the new union syntax, which allows you to declare unions like so:
find_user: User | Error
Release is available here.
I honestly can’t fully remember why I did start working on this, but I always wanted a better code block for our website. I always liked Stripe’s docs and always wanted to copy some of their code block features, for example being able to add inline notes to parts of the code.
Basically we are now able to highlight individual lines, individual words and add notes to parts of the code.
The code for the notes is a bit fragile, but for now it works. I have some ideas on how to improve it, but it would probably require using/writing a different syntax highlighter.
# Search support
I almost forgot about this, not having search on the website was something that came up during our monthly meeting. So I applied for Algolia’s doc search and in a couple of days we got the request approved and so I implemented it in our website. It’s so fast and useful, I wish I did this a while ago!
Marcelo Trylesinski added a PR to better document how to use Strawberry and Starlette. We already supported Starlette using our ASGI integration, but it does make sense to have a dedicated page for this!
I’m not doing well at doing this every week, I hope that’s ok 😊
Anyway, I’m so excited about Hacktoberfest, I’m sure we’ll get some nice contributions. Also can’t wait to start doing some contribution to other projects myself, if I manage to make time 😊
Written at home 😊