-
Notifications
You must be signed in to change notification settings - Fork 384
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
#804 Update Allowed Tags And Attributes #823
Changes from 1 commit
0b987a6
30064ca
ba459a2
8cff768
dd807a8
a698eea
a066117
cfcf730
8f0a925
a400fa5
cfc0247
7f9a2db
b4bfd81
6f5e39d
2b1443e
c73f92b
f67041d
236968b
eab6207
eef4b8b
ae92a58
4597be5
44554c5
ed3c93d
c3b28c0
4b3ec53
af7b830
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# AMP Contributing Guide | ||
|
||
To clone this repository | ||
``` bash | ||
$ git clone --recursive [email protected]:Automattic/amp-wp.git | ||
``` | ||
|
||
### Updating Allowed Tags And Attributes | ||
|
||
The file `class-amp-allowed-tags-generated.php` has the AMP specification's allowed tags and attributes. It's used in sanitization. | ||
To update that file: | ||
1. `cd` to the root of this plugin | ||
2. run `bash bin/amphtml-update.sh` | ||
That script is intended for a Linux environment like [VVV](https://github.com/Varying-Vagrant-Vagrants/VVV). | ||
|
||
### PHPUnit Testing | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The way the dev lib runs PHPUnit ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this came up in #828,.along with questions about how to get pre-commit hook working from wp-dev-lib. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, @ThierryA. This commit adds your point to contributing.md:
|
||
|
||
Run tests: | ||
|
||
``` bash | ||
$ phpunit | ||
``` | ||
|
||
Run tests with an HTML coverage report: | ||
|
||
``` bash | ||
$ phpunit --coverage-html /tmp/report | ||
``` | ||
|
||
When you push a commit to your PR, Travis CI will run the PHPUnit tests and sniffs against the WordPress Coding Standards. |
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.
Perhaps add a welcoming sentence (ex. "Thanks for taking the time to contribute!")
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, @ThierryA. This commit adds your sentence to contributing.md: