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

Improving the docs #230

Closed
deviantsemicolon opened this issue Jan 4, 2025 · 2 comments
Closed

Improving the docs #230

deviantsemicolon opened this issue Jan 4, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@deviantsemicolon
Copy link

deviantsemicolon commented Jan 4, 2025

Is your feature request related to a problem? Please describe.
I am extremely interested in making an astal shell, and I have been for a few months now. But especially as someone who has little typescript knowledge, the docs, specifically the library references, are not particularly helpful. There are little, if any, descriptions for what any of the classes or anything do. This would make coding, for me, a guessing game.

Describe the solution you'd like
I would appreciate it if everything in the library references had proper descriptions that tell you, clearly, what they do. This would make coding a shell in astal much easier.

Describe alternatives you've considered
I could learn typescript enough to analyze the code of astal, but that's not an ideal solution. Not for me, and not for anyone else.

@deviantsemicolon deviantsemicolon added the enhancement New feature or request label Jan 4, 2025
@myamusashi
Copy link

Yeah, I really struggled to implement greetd here

@Aylur
Copy link
Owner

Aylur commented Jan 12, 2025

Pretty much everything has a description, but gi-docgen which we use to generate the references doc only puts the property descriptions on the property page and not the generated getter and setter methods which might be confusing.
What might also be confusing is that the references are generated for the C language so learning Typescript won't help you in this case.

I believe that examples teach you better, so I've put as many snippets in the docs as I could and also pushed up some example projects. Since Astal not only supports TypeScript its a huge undertaking to put up an example for each library + supported language + gtk3/gtk4. There are more TS examples planned though.

@Aylur Aylur closed this as completed Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants