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

started contribution guide #2281

Merged
merged 3 commits into from
Jun 7, 2019
Merged

started contribution guide #2281

merged 3 commits into from
Jun 7, 2019

Conversation

sebastianbenz
Copy link
Collaborator

No description provided.

@sebastianbenz
Copy link
Collaborator Author

The documentation part is currently only the renamed maintainance.md and needs more work.

@sebastianbenz sebastianbenz requested a review from pbakaus June 6, 2019 09:40
Copy link
Collaborator

@matthiasrohmer matthiasrohmer left a comment

Choose a reason for hiding this comment

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

Only nits. Thanks for documenting this 🙂

contributing/samples.md Outdated Show resolved Hide resolved
$ vim examples/source/1.components/amp-awesome/api.js
```

If your sample, does not fit into one of the existing categories, please [create an issue](https://github.com/ampproject/docs/issues/new) first and ask for feedback.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we encourage to ping the team either on #wg-outreach or via an issue in any case? This would enable us to push example ideas in a specific direction to cover certain use cases.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think a formal issue is better in this case

- draft [default: true]
- true
- false
- tags [default: '']
Copy link
Collaborator

Choose a reason for hiding this comment

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

Multi-category filtering still needs to be implemented, I'll file an issue.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thx!

contributing/samples.md Outdated Show resolved Hide resolved

```
- formats
- websites
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe update this sample with a format that isn't websites

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done


## Frontmatter

Samples can define a YAML-based frontmatter. Here is a template to get you started:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure I understand "can define". Must they have a defined YAML-based frontmatter?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

rephrased it


**Note the triple dash `<!---`!**. Also make sure to list all supported formats (websites,ads,email,stories).

If your sample is specific to an AMP Format, please define it as well:
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a bit confusing. Maybe something like:

You must list all the supported AMP formats for your sample. If your sample is specific AMP format, define that single format.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

Other supported flags are:

```yaml
- formats [default: websites,ads,email,stories]:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does the [default: websites,ads,email,stories] need to be defined in my frontmatter?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

turned these into YAML comments


## Writing the sample

Samples are annotated HTML files. Use HTML comments (`<!-- ... -->`) to document your sample code:
Copy link
Collaborator

Choose a reason for hiding this comment

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

This sounds like we should wrap our sample code in HTML comments. Maybe something like:

Add documentation to your sample's code by wrapping text in HTML comments.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

Copy link
Collaborator

@CrystalOnScript CrystalOnScript left a comment

Choose a reason for hiding this comment

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

Thanks for writing this! I'm excited to contribute a sample! I flagged a few things that were confusing to me - otherwise, LGTM!

@sebastianbenz sebastianbenz merged commit d5f82ea into future Jun 7, 2019
@sebastianbenz sebastianbenz deleted the contribution-docs branch June 7, 2019 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants