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

More examples please #24

Closed
doapp-ryanp opened this issue Dec 20, 2012 · 5 comments
Closed

More examples please #24

doapp-ryanp opened this issue Dec 20, 2012 · 5 comments
Labels
documentation This is a problem with documentation. feature-request A feature should be added or improved.

Comments

@doapp-ryanp
Copy link

The 1.X api docs were awesome in that many of the api's had inline examples. I know ApiGen does not lend its self towards that as easy, but are there any plans for more examples in the 2.x docs themselves?

Would really get people up and going faster and would get a faster adoption rate (which means less time you have to spend supporting your old 1.x code :)

I use ApiGen as well, and I know it supports multi line code in doc with <code> and

/---code
<?php echo "hi";
\---

syntax. They also plan on supporting markdown in future release...

@mtdowling
Copy link
Member

One of the ways we're working on addressing this is in the form of end-user documentation. You can see our current progress on the docs branch: https://github.com/aws/aws-sdk-php/tree/docs/docs. Do docs like that help?

@doapp-ryanp
Copy link
Author

Looks like a good start. I'm not familiar with RST files - idea here your gonna run them through a compiler of somesort and spit out HTML that will be hosted on github pages or something?

Whatever tool you do use, I think it would be pretty valuable to choose one that is easy for people to contribute to - so people like myself who would be willing to contribute can easily send pull requests.

Also direct contextual (faq.blah#sometopic) linking from the api docs to these docs would be sweet. That way you just PHPdoc the link when your writing the SDK - then you can link from something like http://docs.amazonwebservices.com/aws-sdk-php-2/latest/class-Aws.DynamoDb.DynamoDbClient.html#_scan to http://newurl.com/service-dynamo.html#scanExample

just my 2c.

@mtdowling
Copy link
Member

Yeah, we'll generate these docs and host them somewhere. The intent of using reStructuredText and Sphinx is that it will be easy to contribute to them.

We'll see about how to best link between docs. Thanks for your feedback.

@tonydspaniard
Copy link

+1 for this.

The new SDK is awesome

@mtdowling
Copy link
Member

Our user guide documentation is now hosted at http://docs.aws.amazon.com/aws-sdk-php-2/guide/latest/index.html. This documentation includes various examples for common tasks. We will continue to update these guides and work to improve our API documentation.

Please note that our documentation is open source, and we are happy to accept pull requests that help to improve them: https://github.com/aws/aws-sdk-php/tree/master/docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This is a problem with documentation. feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

4 participants