Commit Graph

33 Commits (ad99bdc752011ad0fa77985e7b72220eb46571e8)

Author SHA1 Message Date
Sebastiaan Speck dff913f486
`scripts/_common.py`: add a shared Python file to move duplicated code (#12755)
* `scripts/_common.py`: add a shared Python file to move duplicated code

---------

Co-authored-by: Vítor Henrique <87824454+vitorhcl@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-05-18 06:03:40 +05:30
Sebastiaan Speck bc3423250b
scripts/set-alias-page.py, scripts/set-more-info-link.py: sync documentation and get_tldr_root (#12744)
Co-authored-by: Vítor Henrique <87824454+vitorhcl@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-05-13 16:21:30 +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
Sebastiaan Speck 9c5ebf5f0b
scripts: add option to dry-run (#11883) 2024-01-02 06:53:39 +01:00
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 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
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
K.B.Dharun Krishna fd24c5b49a
scripts/set-more-info-link.py: add Czech translation (#10894) 2023-10-15 22:17:23 +02:00
Tristan Jahnke e747bd8132
scripts/*.py: update coding style (#10761)
* convert to f string

* use a next function instead of a for-loop

* remove uneeded else statement

* use in operator instead of multi comparison

* conver to f string

* adds extra line between function defs

* revert/change to PR comment around looping

* remove uneeded loops

* revert to keep old style choice
2023-10-04 14:02:15 +05:30
K.B.Dharun Krishna b84d4ad3af
pages.th/*: remove period (#10449) 2023-07-14 09:50:02 +05:30
Tan Siret A afac125d3c
*: update link label in Turkish translation (#9453) 2022-10-31 06:52:35 -03:00
phatsss c2d7b27c80
*: add Lao translation (#8893) 2022-10-24 09:15:57 -03:00
K.B.Dharun Krishna f9e89c9007
pages.th/*: fix more information label (#8585) 2022-10-02 11:34:41 -03:00
lincc adf4448df8
set-more-info-link.py: add Catalan translation (#7797) 2022-02-18 21:55:31 -03:00
lincc 27cbb29209
set-more-info-link.py, translation-templates/*: add Uzbek language (#7536) 2021-12-26 12:57:58 -03:00
Sailesh Shrestha ce9834c29b
set-more-info-link.py, translation-templates/*: add Nepali translation (#7228) 2021-11-06 17:41:18 -03:00
Axel Navarro 782e90e596
set-more-info-link: fix Turkish translation (#7227) 2021-11-01 22:31:50 +00:00
Arun Isaac c087c6e253
set-more-info-link.py: improve Tamil translation (#7366) 2021-11-01 16:29:28 -03:00
lincc 0920259600
set-more-info-link.py, translation-templates/*: add bn, sr, uk translation tags (#7101) 2021-10-20 14:25:03 -03:00
marchersimon d63065b882
Replace non-breaking space with regular space in French pages (#6842) 2021-10-07 09:37:39 +02:00
marchersimon 088f340e55
set-more-info-link.py: add Arabic translation (#6813) 2021-10-05 18:03:46 -03:00
marchersimon 1a98d09a48
*: fix period in Japanese translation (#6812) 2021-10-05 21:10:14 +01:00
marchersimon cc25275e96
set-more-info-link.py, pages.hi/*: fix punctuation in Hindi translation (#6570) 2021-10-03 15:22:06 -03:00
lincc 9c6d2865dc
set-more-information.py: add sync option (#6405) 2021-09-15 13:14:00 -10:00
Matthew Peveler 3fa29ea1c2
tooling: add black and flake8 for python formatting/linting (#6454) 2021-09-03 12:17:51 -03:00
marchersimon c70c0c2688
Chinese pages: remove space in More info link (#6305) 2021-08-31 15:13:49 +08:00
CleanMachine1 6637acf662
scripts: add SPDX-License-Identifier in files (#6215) 2021-07-16 14:15:31 +01:00
Stig124 0bf9645dd5
set-more-info-link.py: add shebang (#6077) 2021-05-30 17:16:53 -03:00
marchersimon 0a15df6ce3
German pages: replace `Mehr Informationen` with `Weitere Informationen` (#5814) 2021-04-24 07:09:56 -04:00
bl-ue cebded9a37 set-more-info-link.py: remove leading space in Persian label 2021-04-04 00:44:50 +01:00
bl-ue 1665bf4027
set-more-info-link.py: hbs -> sh (#5671)
For #5664
2021-04-03 02:03:50 +03:00
bl-ue 4706f21e46
scripts: add set-more-info-link.py (#5654)
* scripts: add set-more-info-link.py

* scripts/set-more-info-link.py: use current tldr repo if the script is being run from scripts/

* scripts/set-more-info-link.py: allow passing .md extension

* scripts/set-more-info-link.py: differentiate between links added and updated

* set-more-info-link.py: make omitting .md optional, rather than adding it optional

* set-more-info-link.py: make IGNORE_FILES a tuple rather than a str
2021-04-01 18:54:56 +03:00