|
2 | 2 |
|
3 | 3 | The current directory contains useful scripts used/to use with `tldr` pages.
|
4 | 4 |
|
| 5 | +> [!NOTE] |
| 6 | +> [Git](https://git-scm.com/) and [Python](https://www.python.org/) must be installed in your system to run/test the scripts locally. |
| 7 | +
|
5 | 8 | ## Summary
|
6 | 9 |
|
7 | 10 | This section contains a summary of the scripts available in this directory. For more information about each script, please refer to the header of each script.
|
8 | 11 |
|
9 | 12 | - [pdf](pdf/README.md) directory contains the `render.py` and `build-pdf.sh` script and related resources to generate a PDF document of tldr-pages for a specific language or platform (or both).
|
10 | 13 | - [build.sh](build.sh) script builds the ZIP archives of the `pages` directory.
|
11 | 14 | - [build-index.sh](build-index.sh) script builds the index of available pages.
|
12 |
| -- [check-pr.sh](check-pr.sh) script checks the pages syntax and performs various checks on the PR. |
| 15 | +- [check-pr.sh](check-pr.sh) script checks the page's syntax and performs various checks on the PR. |
13 | 16 | - [deploy.sh](deploy.sh) script deploys the ZIP and PDF archives to the static website repository.
|
14 |
| -- [send-to-bot.py](send-to-bot.py) is a Python script that send the build or tests output to tldr-bot. |
| 17 | +- [send-to-bot.py](send-to-bot.py) is a Python script that sends the build or test output to tldr-bot. |
15 | 18 | - [set-alias-page.py](set-alias-page.py) is a Python script to generate or update alias pages.
|
16 | 19 | - [set-more-info-link.py](set-more-info-link.py) is a Python script to generate or update more information links across pages.
|
17 | 20 | - [set-page-title.py](set-page-title.py) is a Python script to update the title across pages.
|
18 |
| -- [test.sh](test.sh) script runs some basic tests on every PR/commit to make sure that the pages are valid and that the code is formatted correctly. |
| 21 | +- [test.sh](test.sh) script runs some basic tests on every PR/commit to ensure the pages are valid and the code is formatted correctly. |
19 | 22 | - [wrong-filename.sh](wrong-filename.sh) script checks the consistency between the filenames and the page title.
|
20 | 23 | - [update-command.py](update-command.py) is a Python script to update the common contents of a command example across all languages.
|
21 | 24 |
|
22 | 25 | ## Compatibility
|
23 | 26 |
|
24 |
| -The below table shows the compatibility of user-executable scripts with different platforms. |
| 27 | +The table below shows the compatibility of user-executable scripts with different platforms: |
25 | 28 |
|
26 | 29 | | Script | Linux | macOS (`osx`) | Windows |
|
27 | 30 | | ------ | ----- | ----- | ------- |
|
28 | 31 | | [render.py](pdf/render.py) | β
| β
| β
|
|
29 |
| -| [build-pdf.sh](pdf/build-pdf.sh) | β
| β
| β | |
30 |
| -| [build.sh](build.sh) | β
| β
| β | |
| 32 | +| [build-pdf.sh](pdf/build-pdf.sh) | β
| β
| β (WSL β
)| |
| 33 | +| [build.sh](build.sh) | β
| β
| β (WSL β
)| |
31 | 34 | | [set-alias-pages.py](set-alias-pages.py) | β
| β
| β
|
|
32 | 35 | | [set-more-info-link.py](set-more-info-link.py) | β
| β
| β
|
|
33 | 36 | | [set-page-title.py](set-page-title.py) | β
| β
| β
|
|
34 |
| -| [wrong-filename.sh](wrong-filename.sh) | β
| β | β | |
| 37 | +| [wrong-filename.sh](wrong-filename.sh) | β
| β | β (WSL β
)| |
35 | 38 | | [update-command.py](update-command.py) | β
| β
| β
|
|
0 commit comments