* scripts: add set-more-info-link.py
* scripts/set-more-info-link.py: use current tldr repo if the script is being run from scripts/
* scripts/set-more-info-link.py: allow passing .md extension
* scripts/set-more-info-link.py: differentiate between links added and updated
* set-more-info-link.py: make omitting .md optional, rather than adding it optional
* set-more-info-link.py: make IGNORE_FILES a tuple rather than a str
* 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.