Here is the content of web documents from WebDoky. In fact, these are articles from MDN translated into Ukrainian (see the license for this repository)
The repository has built-in text validation using the LanguageTool CLI. This works when creating a PR.
To add a word that is unfamiliar to LanguageTool, but which LanguageTool needs to use to generate correction suggestions, add it as a separate line in the `uk_spelling_additions.txt' file.
To add a word that is unfamiliar to LanguageTool and should be ignored, add it as a separate line in the uk_ignore_additions.txt
file (in most cases, `uk_spelling_additions.txt' is preferable).
To ban a word that LanguageTool treats as a normative word, add it as a separate line to the uk_prohibited_additions.txt
file.
The changes made will take effect the next time the PR is checked after the update on GitHub.
To disable a specific LanguageTool rule, add it as a separate line to the disabled_rules.txt
file.
The changes made will take effect the next time the PR is checked after the update on GitHub.
- Finds new changes in
index.md
files (or newindex.md
files). If more than 1 file is changed, or if there are zero files, it stops with an error. - Determines the type of changes: update or new translation.
- Generates a branch name based on the path to the modified Markdown file.
- Checks if the target branch does not exist on the remote repository. If it does, it fails with an error. (**Merged branches must be removed manually on GitHub.)
- Deletes the old local branch with the same name, if it exists.
- Moves to the
master
branch. - Pulls updates to
master
. - Creates the target branch anew and moves to it.
- Adds the directory with the translation (where the
index.md
file is located) to the future commit. - Adds files with LanguageTool additions (
./*_additions.txt
) to the future commit. - Creates a commit with an automatically generated message.
- Sends updates to the branch on GitHub.
In short, this script creates a branch based on the file path and sends it to GitHub. The PR must be created manually.
It is called in one of the following ways:
yarn finishupdate
yarn fu
For this script to work, you need to go to the branch you want to update yourself.
- Finds new changes in
index.md
files (or newindex.md
files). If more than 1 file is changed, or if there are zero files, it stops with an error. - Determines the type of changes: update or new translation.
- Generates a branch name based on the path to the modified Markdown file. (This name must subsequently coincide with the current branch, at least in the part after
/
). - Moves to the
master
branch. - Pulls updates to
master
. - Goes to the target branch.
- Adds the directory with the translation (where the
index.md
file is located) to the future commit. - Adds files with LanguageTool additions (
./*_additions.txt
) to the future commit. - Creates a commit with an automatically generated message.
- Sends updates to the branch on GitHub.
In short, this script adds a new commit with corrections to an existing translation or update and sends it out.
It is called in one of the following ways:
yarn finishupdate --update
yarn fu --update
yarn fux