tldr/scripts
K.B.Dharun Krishna 5f0fa5d873 cleanup: update command in wrong-filename.sh
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-12-24 10:55:30 +05:30
..
pdf build-pdf: add special language cases 2023-12-22 15:03:43 +05:30
README.md cleanup: update files 2023-12-24 10:55:30 +05:30
build-index.js build(deps): bump glob from 7.2.0 to 10.2.7 (#10377) 2023-07-06 08:47:20 -07:00
build.sh scripts: use `[[` instead of `[`, fix literal shell globs (#11290) 2023-10-26 22:11:24 +05:30
check-pr.sh check-pr: use better regex (#11525) 2023-11-17 23:15:25 +05:30
deploy.sh deploy: only move files that exist 2023-12-22 15:03:43 +05:30
send-to-bot.py send-to-bot: remove once, let the tldr-bot always comment (#11547) 2023-11-20 21:06:02 +01:00
set-alias-page.py feat: add documentation for scripts 2023-12-24 10:55:30 +05:30
set-more-info-link.py feat: add documentation for scripts 2023-12-24 10:55:30 +05:30
test.sh test: skip symlinked English folder and optimise the script (#11537) 2023-11-18 11:48:52 +01:00
wrong-filename.sh cleanup: update command in wrong-filename.sh 2023-12-24 10:55:30 +05:30

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.

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