Skip to content

Latest commit

 

History

History
131 lines (81 loc) · 9.49 KB

CONTRIBUTING.md

File metadata and controls

131 lines (81 loc) · 9.49 KB

Contributing to AMP HTML

The AMP HTML project strongly encourages technical contributions!

We hope you'll become an ongoing participant in our open source community but we also welcome one-off contributions for the issues you're particularly passionate about.

Reporting issues with AMP

Bugs

If you find a bug in AMP, please file a GitHub issue. Members of the community are regularly monitoring issues and will try to fix open bugs quickly according to our prioritization guidelines.

The best bug reports provide a detailed description of the issue (including screenshots if possible), step-by-step instructions for predictably reproducing the issue, and possibly even a working example that demonstrates the issue.

Questions about AMP

Questions about how to use AMP or other general questions about AMP should be asked on Stack Overflow under the AMP HTML tag instead of filing an issue here.

Questions and issues related to Google Search should be asked on Google's AMP forum.

Suggestions and feature requests

The AMP Project is meant to evolve with feedback. The project and its users appreciate your thoughts on ways to improve the design or features.

To make a suggestion or feature request file a GitHub issue describing your idea.

If you are suggesting a feature that you are intending to implement, please see the Contributing features section below for next steps.

Contributing code

The AMP Project accepts and greatly appreciates code contributions!

If you are contributing code to the AMP Project consider joining the AMP Project on GitHub.

Tips for new open source contributors

If you are new to contributing to an open source project, Git/GitHub, etc. welcome! We are glad you're interested in contributing to the AMP Project.

The Getting Started End-to-End Guide provides step-by-step instructions for everything from creating a GitHub account to getting your code reviewed and merged. Even if you've never contributed to an open source project before you'll soon be building AMP, making improvements and seeing your code live across the web.

The community has created a list of Great First Issues specifically for new contributors to the project. Feel free to find one that interests you and jump in! Make sure to comment on the issue first so others know you are starting on it.

If you run into any problems we have plenty of people who are willing to help; see the How to get help section of the Getting Started guide.

How to contribute code

The Getting Started Quick Start Guide has installation steps and instructions for building/testing AMP.

DEVELOPING.md has some more advanced instructions that may be necessary depending on the complexity of the changes you are making.

A few things to note:

  • The AMP Project follows the fork & pull model for accepting contributions.
  • Familiarize yourself with our Design Principles.
  • We follow Google's JavaScript Style Guide. More generally make sure to follow the same comment and coding style as the rest of the project.
  • Include tests when contributing code. There are plenty of tests that you can use as examples.
  • A key feature of AMP is performance. All changes will be analyzed for any performance impact; we particularly appreciate changes that make things even faster. Please include any measured performance impact with substantial pull requests.

Contributing features

Follow this process for contributing new features:

  • Familiarize yourself with the AMP Design Principles
  • Create a new GitHub issue to start discussion of the new feature.
  • Before starting on the code get approval for your feature from an OWNER of your feature's area and a core committer. In most cases the people who can give this approval and are most familiar with your feature's area will get involved proactively or someone else in the community will add them. If you are having trouble finding the right people add a comment on the issue or reach out on one of the channels in How to get help.
  • Consider bringing the eng design for your feature to our weekly design review.
  • Follow the guidelines for Contributing code described above.

Contributing extended components

A key feature of the AMP HTML project is its extensibility - it is meant to support “Extended Components” that provide first-class support for additional rich features.

Because Extended Components may have significant impact on AMP HTML performance, security, and usage, Extended Component contributions will be very carefully analyzed and scrutinized.

In particular we strive to design the overall component set, so that a large number of use cases can be composed from them. Instead of creating a new component it may thus be a better solution to combine existing components to a similar effect.

We have a few additional resources that provide an introduction to contributing extended components:

For further detail on integrating third party services, fonts, embeds, etc. see our 3p contribution guidelines.

Contributor License Agreement

The AMP Project hosted at GitHub requires all contributors to sign a Contributor License Agreement (individual or corporation) in order to protect contributors, users and Google in issues of intellectual property.

When you create a Pull Request a check will be run to ensure that you have signed the CLA. Make sure that you sign the CLA with the same email address you associate with your commits (likely via the user.email Git config as described on GitHub's Set up Git page).

Ongoing participation

We actively encourage ongoing participation by community members.

Discussion channels

Technical issues, designs, etc. are discussed using several different channels:

Weekly status updates

Weekly updates from members of the community are tracked using Weekly Status GitHub issues.

We encourage everyone who is actively contributing to AMP to add a comment to the relevant Weekly Status issue.

Weekly design reviews

The community holds weekly engineering design reviews via video conference. We encourage everyone in the community to participate in these discussions and to bring their designs for new features and significant bug fixes to these reviews.

See Also