* Updated command line usage to:
* Reflect changes made to the CLI.
* Demonstrate recommended use of pip.
* Made some grammar changes.
* Added more useful alt text to the images.
* Converted the top comment to a multi-line string.
* Replaced `i` with `enumerate`.
* Gave the `ArgumentParser` a name and description.
* Added `basic` as a color choice and made it the default.
* Added `color` as a long flag.
* Removed no longer used variables and `if` statement.
By default actions/checkout@v2 only checks out the latest commit of the current branch. Unfortunately, this causes the `git diff` check in `check-pr.sh` to fail, as `master` branch isn't available`.
This change checks out all commits of all branches, which allows `git diff` to work correctly.
Ideally, I'd like to use the `ref` setting of actions/checkout@v2, but that only supports a single ref so it's not possible to checkout the PR branch _and_ `master` branch at the same time.
This script will be run by Travis-CI (on PR builds only) to run some useful
checks. Refer to the comment at the top of the script for more information.
Refactor the script from top to bottom:
1. Switch to Python 3.
2. Add functionality for commenting only once (used for commenting messages
generated by the check-pr script).
3. Split the functionality clearly into two different actions: one for
pr-check information, and one for build errors.
4. Add additional env vars checks and error checks.
The npm test script was dirty and had the unneeded side effect of generating an
output file. This change moves the test to a real bash script that runs the
appropriate tests and also additional checks when ran from Travis CI during a PR
build.
Previously they were stored separately in their own arrays.
This made them disconnected, and impossible to know if a page
belonged to which platform and language combination.
This PR adds an array of objects called `targets` which contains
platform/language pairs.
- Added `-q` to the zip command to create the archive since Travis
was having trouble handling its very long output (thus making
the build fail).
- Moved the actual building of the index and the archive from
deploy.sh to a new build.sh script.
- Added a `script` step in .travis.yml to run build.sh after npm
test.
- Specified a clone depth of 1 in .travis.yml to make things faster
since we don't need to do any git operation during the build.