Commit Graph

169 Commits (b6ac034ebbc19e17823d7ef55a90b06facc161d4)

Author SHA1 Message Date
Sebastiaan Speck 4e8f732c4d
scripts/wrong-filename.sh: remove too aggressive replacement 2024-05-05 22:09:10 +02:00
Sebastiaan Speck c8d6b81588
scripts/wrong-filename.sh: add ignore list + extra replacements (#12729) 2024-05-05 21:02:10 +02:00
Sebastiaan Speck fe67f26e3a
CI: Only ignore TLDR003, TLDR004 and TLDR015 for specific languages (#12715)
Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>
2024-05-05 13:31:02 +02:00
Lena b9941d2ecf
fix: allow CI to run when PDFs haven't been generated (#12669) 2024-04-25 07:03:17 +02:00
Vitor Henrique f4d1a1d775
scripts: use pathlib and avoid page iteration (#12183)
* scripts: use pathlib and simplify page iteration

* scripts: remove unnecessary loop

* scripts: remove obsolete condition

* scripts: raise SystemError and readd coloring

* scripts: remove unused "sys" import

* scripts: use Path instead of str for git add

* scripts: revert condition removal

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-13 19:14:50 +05:30
Lena f1c35b53a3 scripts/deploy.sh: add deployment to GitHub releases 2024-01-28 18:57:30 +05:30
Vitor Henrique 561a364e0d
tooling: add update-command script (#11974)
* tooling: add update-command script

* update-command: add os import

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* update-command: remove sync argument and small refactor

* update-command: add shebang and license

* update-command: remove unused function

* update-command: add dry-run option

* update-command: add docs in header

* update-command: fix old_common_part var name

* update-command: require command without .md

* update-command: fix command name in description

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>

* update-command: remove ".md" suffix in description

* update-command: enclosing positional parameters with angle brackets

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* update-command: enclose paremeters with double angle brackets

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* update-command: refine wording

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* update-command: remove unused functions

* update-command: detect tldr root from any subdir

* update-command: call place_placeholders directly

* update-command: add summary and compatibility to scripts/README.md

* scripts/update-command.py: remove unused method

* scripts/update-command.py: use logger.info instead of print

* scripts/update-command.py: rename command to cmd_example

* scripts/README.md: use command example instead of command

* scripts/update-command.py: remove nonexistent optional argument

* scripts/update-command.py: improve interactive example

* scripts/update-command.py: run black

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-01-27 23:10:42 +08:00
Sebastiaan Speck 54f284164d
check-pr: fix typo (#12038) 2024-01-08 20:38:24 +01:00
Sebastiaan Speck 31dd28e9a7
check-pr: only check if new platform-specific page exists as common duplicate (#11993) 2024-01-06 19:13:20 +01:00
Sebastiaan Speck b2f0fb4c04
scripts/check-pr: check only for English pages (#11980) 2024-01-03 19:04:10 +05:30
Sebastiaan Speck 9c5ebf5f0b
scripts: add option to dry-run (#11883) 2024-01-02 06:53:39 +01:00
Sebastiaan Speck 36a50f5495
check-pr: fix check_duplicates (#11954) 2024-01-01 15:57:04 +01:00
Sebastiaan Speck 006c2f6b22
deploy: use single-quoted argument (#11951) 2023-12-31 13:20:51 +01:00
Sebastiaan Speck ca222b2b81
check-pr: add special case for '(' and ')' (#11869) 2023-12-27 22:17:30 +01:00
Sebastiaan Speck 4e280a9efe
check-pr: add < and > as special cases and refactor (#11841) 2023-12-27 12:06:40 +05:30
Lena 79cd77711e
scripts/deploy.sh: exit immediately if there aren't any changes (#11836)
* clean up the script
2023-12-26 18:32:55 +05:30
K.B.Dharun Krishna 68306bbf63
cleanup: revert back don't build scripts archive step (#11838)
Revert "Revert "scripts: don't build archives when pages haven't been changed" (#11837)"

This reverts commit 6aa6cd8659.
2023-12-26 00:09:17 +05:30
K.B.Dharun Krishna 6aa6cd8659
Revert "scripts: don't build archives when pages haven't been changed" (#11837)
Revert "scripts: don't build archives when pages haven't been changed (#11825)"

This reverts commit d123d51d17.
2023-12-25 23:35:30 +05:30
Lena d123d51d17
scripts: don't build archives when pages haven't been changed (#11825)
* scripts/build.sh: don't build archives when pages haven't been changed

* scripts: don't build the index when pages haven't been changed, fix
deploy.sh

* feat: check for changes before committing in deploy.sh

* cleanup: update scripts/deploy.sh

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-25 12:40:22 +05:30
Lena 9855e2e02c
scripts/deploy.sh: remove redundant paths from the sumfile (#11822) 2023-12-24 22:21:07 +05:30
K.B.Dharun Krishna d8fb257277 wrong-filename.sh: update output filename
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-12-24 10:55:30 +05:30
K.B.Dharun Krishna e9750a9922 cleanup: update PDF README 2023-12-24 10:55:30 +05:30
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
K.B.Dharun Krishna 2550de7185 cleanup: update files
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-12-24 10:55:30 +05:30
K.B.Dharun Krishna 6eff6f3b48 fix: broken links in scripts summary
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-24 10:55:30 +05:30
K.B.Dharun Krishna b2dc1a28d1 feat: add documentation for scripts
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-24 10:55:30 +05:30
K.B.Dharun Krishna ab65385f5d
cleanup: remove id_ed25519_tldr_asset_upload.enc file (#11808) 2023-12-22 15:07:51 +05:30
Sebastiaan Speck e215cdbc18 build-pdf: add special language cases 2023-12-22 15:03:43 +05:30
Sebastiaan Speck 2397113710 build-pdf: add the option to build a single language 2023-12-22 15:03:43 +05:30
Sebastiaan Speck ebab29116d deploy: only move files that exist 2023-12-22 15:03:43 +05:30
Sebastiaan Speck 670bc47fe2 deploy: remove PDF's from sha256sum
Removing PDF's from sha256sum since every commit will include zero or N PDF's, so the sha256sum will always be different.
2023-12-22 15:03:43 +05:30
Sebastiaan Speck a67677eaaf build-pdf: refactor the script 2023-12-22 15:03:43 +05:30
Sebastiaan Speck 77d0160191 build-pdf: only determine language if needed 2023-12-22 15:03:43 +05:30
Sebastiaan Speck f907fcbb2f build-pdf: only build changed folders since last commit 2023-12-22 15:03:43 +05:30
K.B.Dharun Krishna 10e2c5b145
Revert "build-pdf: only build changed folders since last commit" (#11795)
Revert "build-pdf: only build changed folders since last commit (#11773)"

This reverts commit 1de7b5a80b.
2023-12-19 17:40:57 +05:30
Sebastiaan Speck 1de7b5a80b
build-pdf: only build changed folders since last commit (#11773)
* build-pdf: only build changed folders since last commit

* build-pdf: only determine language if needed

* build-pdf: refactor the script
2023-12-19 17:38:20 +05:30
Juri Dispan 9d383ade68
*: fix typos in command names (#11730)
* *: fix typos in command names

* command name fixes in other languages

* fix incorrectly translated commands

* change incorrect file name

* qm move disk alias pages

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-14 17:41:19 +05:30
Sebastiaan Speck 778555a1fb
send-to-bot: remove once, let the tldr-bot always comment (#11547) 2023-11-20 21:06:02 +01:00
Sebastiaan Speck 4547f49a08
test: skip symlinked English folder and optimise the script (#11537)
* test: skip symlinked English folder and optimise the script

* Update test.sh

* Update test.sh

* Update test.sh

* Update test.sh

* Update test.sh

* Update test.sh

* Update test.sh
2023-11-18 11:48:52 +01:00
Sebastiaan Speck 6edd7d1854
check-pr: use better regex (#11525)
* check-pr: more descriptive message

* check-pr: better regex

* Update check-pr.sh
2023-11-17 23:15:25 +05:30
Sebastiaan Speck 8f1ca06f30
check-pr: add outdated-check (#11498) 2023-11-14 16:36:02 +01:00
K.B.Dharun Krishna ec531b230b
scripts/test.sh: remove TLDR005 from ignore list for languages (#11486)
* scripts/test.sh: remove TLDR005 from ignore list for languages

* scripts/test.sh: ignore TLDR005 in Chinese pages

* scripts/test.sh: fix indentation

* scripts/test.sh: reorder ignore list
2023-11-13 19:52:16 +05:30
Sebastiaan Speck 84fceb978b
scripts: make set-alias-page.py runnable (#11477) 2023-11-12 13:08:51 +01:00
Sebastiaan Speck 75d9f61819
check-pr: add check to see if English page exists (#11470) 2023-11-12 10:48:15 +01:00
Sebastiaan Speck 4ea80ce3b3
check-pr: fix GitHub Action to gather the diff (#11425) 2023-11-11 19:35:12 +01:00
K.B.Dharun Krishna 5c26174aa9
pages/*: update links and more info link script (#11390)
* pages/*: update links and more info link script

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* cleanup: reformat code

* ax-webapp: fix link

* curl: fix false positive

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-11-06 23:14:12 +05:30
Sebastiaan Speck c059eb1c19
scripts: fix typo (#11396) 2023-11-06 13:31:28 +01:00
K.B.Dharun Krishna f1aa0a8fe5
Revert "pages/*: add standard translation and links (#11331)" (#11374)
This reverts commit 39642c3fed80aaed7212bca6b7cc4c345ed229ee.
2023-11-06 14:02:32 +05:30
K.B.Dharun Krishna 8538a31451
pages/*: add standard translation and links (#11331)
* pages/*: add standard translation and links

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* fix1: false positives; standardize Bengali, Hindi, Nepali periods

* fix: periods in recently added Bengali pages

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* fix: false positives in modified files

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* cleanup: update to native period in Bengali l10n

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-11-06 14:02:31 +05:30
Lena 250b9d7c21
scripts: use `[[` instead of `[`, fix literal shell globs (#11290)
* build.sh: move `*` outside quotes (it doesn't get expanded)

* scripts: use `[[` instead of `[` in if statements
2023-10-26 22:11:24 +05:30