-
Notifications
You must be signed in to change notification settings - Fork 124
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
reduce repeated examples. #113
Conversation
… reduce-examples
I wanted to suggest to use a refresh token with all scopes already given for the By the way, sorry about the force pushes, the 4 following commits don't change anything. The fifth adds a new example called |
e74900c
to
fb67d1b
Compare
fb67d1b
to
39f5a04
Compare
Yep, it's a great idea to run tests, and the key point how to get a non-expire refresh-token. Hopefully you could get the premium account.
The example |
No, the force push was because I created a commit by mistake and then dropped it later. You can do a rebase and merge and I think it'll be ok, without overwriting anything. |
Ok so I think I've managed to get the GitHub README to be much more straight to the point. The documentation for Rspotify itself is now inside the I suggest using |
dc5bcd0
to
d3ac1e4
Compare
Sorry for not getting your point, what do you mean about splitting between different places?
I think it's the de-facto way to maintain documentation in |
What I mean is that, in my opinion, the README currently has too much documentation. It shows how to configure Rspotify (its features and such), how authorization works, and includes a couple examples. I think it's easier to have everything documentation-related in docs.rs and just have the README point to the site. That way we don't have repeated documentation either, because I realized that most of the README was copy-pasted into the docs.rs page anyway. For example the "Getting Started" section shouldn't be in the README IMO because that's related to the documentation. And by having the examples in the documentation, they are also ran with I'm just trying to follow what tekore, rand, bitflags and other libraries do, since I consider the documentation easier to follow that way. Their READMEs only contain information regarding the development of the library, since GitHub is only supposed to serve as a platform for development and hosting. Thus, I just moved a few sections to docs.rs. If you consider any of them could fit better in the README, let me know. |
I get your point now, I think is the good way to follow the best practice, as what other libraries do, moving some section from Github to |
Great! All that's left is adding more examples, but I'm not sure how many you want before this is merged. Do you plan on adding any yourself? |
Yep, I am planning to add some real-world examples. PS: I am adding a new Web App example based on Rocket |
Neat example with the Rocket web app, I like it. Can this be merged for now, then? We can add more examples in the future and this is blocking other issues/PRs. |
Yep, merged :) |
All of these example files come from a same template, which are are quite repetitive and don't offer much help for real projects, the only difference between them is that they calls different function with different day, everything else is same.