Vitor Henrique f4d1a1d775 scripts: use pathlib and avoid page iteration (#12183) 1 rok temu
..
pdf e9750a9922 cleanup: update PDF README 1 rok temu
README.md 561a364e0d tooling: add update-command script (#11974) 1 rok temu
build-index.js 6260eba27c build(deps): bump glob from 7.2.0 to 10.2.7 (#10377) 1 rok temu
build.sh 68306bbf63 cleanup: revert back don't build scripts archive step (#11838) 1 rok temu
check-pr.sh 54f284164d check-pr: fix typo (#12038) 1 rok temu
deploy.sh f1c35b53a3 scripts/deploy.sh: add deployment to GitHub releases 1 rok temu
send-to-bot.py 778555a1fb send-to-bot: remove once, let the tldr-bot always comment (#11547) 1 rok temu
set-alias-page.py 9c5ebf5f0b scripts: add option to dry-run (#11883) 1 rok temu
set-more-info-link.py f4d1a1d775 scripts: use pathlib and avoid page iteration (#12183) 1 rok temu
test.sh 4547f49a08 test: skip symlinked English folder and optimise the script (#11537) 1 rok temu
update-command.py 561a364e0d tooling: add update-command script (#11974) 1 rok temu
wrong-filename.sh d8fb257277 wrong-filename.sh: update output filename 1 rok temu

README.md

Scripts

The current directory contains useful scripts used/to use with tldr pages.

Summary

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.

  • pdf 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).
  • build.sh script builds the ZIP archives of the pages directory.
  • build-index.sh script builds the index of available pages.
  • check-pr.sh script checks the pages syntax and performs various checks on the PR.
  • deploy.sh script deploys the ZIP and PDF archives to the static website repository.
  • send-to-bot.py is a Python script that send the build or tests output to tldr-bot.
  • set-alias-page.py is a Python script to generate or update alias pages.
  • set-more-info-link.py is a Python script to generate or update more information links across pages.
  • 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.
  • wrong-filename.sh script checks the consistency between the filenames and the page title.
  • update-command.py is a Python script to update the common contents of a command example across all languages.

Compatibility

The below table shows the compatibility of user-executable scripts with different platforms.

Script Linux macOS (osx) Windows
render.py
build-pdf.sh
build.sh
set-alias-pages.py
set-more-info-link.py
wrong-filename.sh
update-command.py