-
Notifications
You must be signed in to change notification settings - Fork 356
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
PHPDoc Cleanup #438
Comments
Sounds good to me |
Sure, sounds good. I recently went through the whole process of using Sami to deploy its output to github pages for a different project, so I can help with travis if you'd like to do something similar. |
@shmax That would definitely be nice if you're willing to do that again here :-). |
Can do, but we'll need someone with access to the settings to configure github pages. @bighappyface? |
Oh. If that needs admin access, then we're SOL on that front, because @bighappyface isn't, and @justinrainbow is gone. |
Ugh. Well, we could always deploy it somewhere else. Any ideas? |
I have a webserver on DigitalOcean we can put this on, if that's a viable option. It has various PHP websites on it, but nothing too heavy-duty, and there's a fair bit of spare capacity on there. |
That could work. We don't even need PHP; just anything that can host static pages. I've only deployed to github, but I've been meaning to learn how to do other destinations, so this will be interesting. Should this work happen independently of your PHPDoc stuff, or in concert? |
Independently I reckon. Stand by, and I'll add a user account to the server for you. |
Take your time, I'm off to bed. Should be able to dabble with this a bit on Sunday. |
Already done it :-). See Slack. |
^^ nvm |
What do you guys think should be done with the @author tags? Are they still relevant, noting how many people have contributed to this library over the years? If we keep them, how do we determine who is tagged - do we just tag everyone who has current code in the file where the tag appears, and not care about the list being huge? Personally, I think it makes more sense to have a CONTRIBUTORS or AUTHORS file in the repo root that lists contributors, and remove the @author tags completely, as they get unweildy when there are a large number of contributors. |
Looking at this issue I've found a couple of things which might impact the original report.
With all of the above I would opt for dropping the issue and spend time more wisely. |
@DannyvdSluijs Sounds sensible; I agree with your opinion on this. |
The current codebase lacks useful PHPDoc comments in many places, and needs a significant overhaul.
I would like to propose the following:
@package justinrainbow/json-schema
@license MIT
@api
if the method is part of the official public API@param <type> <name>
for all parameters; mixed-type params should be stated asmixed
@return <type> [description]
for all methods which return a value. The return description should be present for any method where the return value is not self-evident from reading the method description.@var <type> <description>
I would also like to add a config file for
sami/sami
, and delete the old documentation directory -docs
hasn't been touched in 5+ years, and doesn't contain anything of substance anyway. Sami should not be added as a dev-time dependency, as it requires PHP >= 7.0 to run.Before I go ahead and sink time into this, does what I've outlined above sound reasonable?
Finally, if someone else is keen and has the time, feel free to jump in with a PR. I'm quite happy to do all the work on this, but documentation isn't my favourite activity, so if you happen to harbour a secret passion for it...
The text was updated successfully, but these errors were encountered: