-
Notifications
You must be signed in to change notification settings - Fork 694
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
Conversation
The documentation part is currently only the renamed maintainance.md and needs more work. |
There was a problem hiding this 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 🙂
$ 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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
contributing/samples.md
Outdated
- draft [default: true] | ||
- true | ||
- false | ||
- tags [default: ''] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
|
||
``` | ||
- formats | ||
- websites |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
contributing/samples.md
Outdated
|
||
## Frontmatter | ||
|
||
Samples can define a YAML-based frontmatter. Here is a template to get you started: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rephrased it
contributing/samples.md
Outdated
|
||
**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: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
contributing/samples.md
Outdated
Other supported flags are: | ||
|
||
```yaml | ||
- formats [default: websites,ads,email,stories]: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
contributing/samples.md
Outdated
|
||
## Writing the sample | ||
|
||
Samples are annotated HTML files. Use HTML comments (`<!-- ... -->`) to document your sample code: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this 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!
No description provided.