Skip to content

Conversation

alexeykostevich
Copy link
Contributor

  • Add more information about the project for new contributors.
  • Update docs according to the latest API of the commands.
  • Update quickstarts with detailed instructions for both local and AWS-based setup.

- Add more information about the project for new contributors.
- Update docs according to the latest API of the commands.
- Update quickstarts with detailed instructions for both local and AWS-based setup.
@alexeykostevich
Copy link
Contributor Author

alexeykostevich commented Apr 20, 2020

This PR is the result of my research of the environment setup, which we discussed on the last Ember Learn meeting.

Overall, I found just a few mismatches between the docs and the actual API (e.g. the lack of --sync flag in npm start). After a bit of troubleshooting, I've finally generated docs from both AWS and local repositories and served them in the ember-api-docs app.

Screen Shot 2020-04-21 at 2 48 06 am

Being I'm a newcomer, it was a bit hard for me to jump in straightaway without looking into the code. Therefore, I've tried to digest the docs and provide more information for new contributors. The PR also updates the docs according to the latest tool's API. Here is how it looks like now: https://github.com/alexeykostevich/ember-jsonapi-docs/blob/doc/readme-update/README.md

@mansona , @jenweber, @MelSumner , please, let me know if you have any concerns about the structure and format of the docs.

Also, I would like to ask you to carefully review the Overriding a specific version of YUIDoc file with a local copy (for core contributors). section, since I was not able to actually test it. However, I'm 90% confident that it is correct.

Copy link
Contributor

@jenweber jenweber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! If Gaurav has time, it would be good to get his review too, so I will add him as a reviewer. I will run through these steps on my computer in the meantime.

Copy link
Contributor

@jenweber jenweber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a proofread, this looks great! I think if Gaurav has time, we should get his review as well. In the meantime, I'll try running this locally as written myself.

@jenweber jenweber requested a review from Gaurav0 April 22, 2020 01:02
@jenweber
Copy link
Contributor

Hi @Gaurav0, if you have time, could you have a read through this? Thanks!

Co-Authored-By: Jen Weber <weberj10@gmail.com>
Copy link
Contributor

@Gaurav0 Gaurav0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a huge improvement. Thanks for your hard work, @alexeykostevich

@sivakumar-kailasam Do you want to review as well?

You can do this by passing `--project ember/ember-data --version 2.11.1` as an argument to the index script. e.g., `yarn start --project ember --version 2.11.0`.
You need an additional flag `AWS_SHOULD_PUBLISH=true` for publishing the docs.
```bash
# Clone Ember.js and Ember Data repositories.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make the structure of the docs clear. ember.js, data, ember-api-docs, and ember-jsonapi-docs should all be cloned in the same directory.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's an excellent point! I'll create another PR to include this information.

## Generating API Documentation and Testing API Docs Locally
# Generate docs for a particular project/release.
yarn gen --project ember --version 3.17.0
yarn gen --project ember-data --version 3.17.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another gotcha: the version here should match the one in the package.json of your project, but you can't use 'beta' or 'canary'. So for example if the ember-data package.json says "3.19.0-beta.2" use "3.19.0".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! Thank you for sharing! I'll create another PR to include this information.

@sivakumar-kailasam sivakumar-kailasam merged commit fc205d1 into ember-learn:master Apr 22, 2020
@alexeykostevich alexeykostevich deleted the doc/readme-update branch April 23, 2020 13:53
@alexeykostevich alexeykostevich mentioned this pull request Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants