20 Commits

Author SHA1 Message Date
Gabriele Ciccotelli
caa05be694 Add RTL/LTR Markdown linter for mixed-direction text consistency and PR annotation (#11877)
* Add RTL/LTR Markdown linter for mixed-direction text consistency and PR annotation

Introduce a Python-based linter (scripts/rtl_ltr_linter.py) to automatically detect and annotate issues related to mixed Right-To-Left (RTL) and Left-To-Right (LTR) text in Markdown files. The linter analyzes list items, book entries, and metadata for potential bidirectional text rendering problems, such as missing Unicode directionality markers (RLM/LRM) and improper handling of LTR keywords or symbols in RTL contexts.

Key features:
- Scans all Markdown files in the repository, with full logs saved as workflow artifacts.
- Annotates only changed or added lines in pull requests, providing targeted feedback in the GitHub Actions Job Summary.
- Detects common RTL/LTR issues, including:
  - Missing directionality markers after LTR keywords (e.g., "HTML") or symbols (e.g., "C#") in RTL text.
  - BIDI (bidirectional) mismatches that may affect text display.
  - Incorrect ordering of author names and metadata in RTL contexts.
- Configurable via rtl_linter_config.yml for keywords, symbols, and severity levels.
- Includes a GitHub Actions workflow (rtl-ltr-linter.yml) for automated checks on PRs.

* Add test cases for RTL/LTR linter in English and Arabic book lists

Add sample entries to free-programming-books-en.md and free-programming-books-ar.md to test the RTL/LTR Markdown linter.
These test cases include various combinations of RTL and LTR text, keywords, symbols, and metadata to verify that the linter correctly detects directionality issues and outputs the expected logs and annotations.

* Restore original book lists after RTL/LTR linter test cases

Revert test entries in free-programming-books-en.md and free-programming-books-ar.md, restoring the original book lists. This commit removes temporary test data used for validating the RTL/LTR Markdown linter, preparing the repository for merging the PR with a clean state.

No functional changes to the linter or configuration files; only test content has been removed.

* Update RTL/LTR linter workflow and script: run only on RTL file changes or "RTL" label, fail only on errors

The GitHub Actions workflow for the RTL/LTR Markdown linter now runs only if:
- The PR modifies .md files related to RTL languages (ar, he, fa, ur), or
- The PR has the "RTL" label.
The linter script has been updated to fail the check only if errors are found on changed lines, not for warnings.

* Only upload linter artifact if linter step runs

Prevent warning about missing artifact by uploading the linter output log only if the linter step was executed (success or failure). This avoids unnecessary warnings when the linter is skipped because no RTL files were changed and no RTL label is present.

* Test workflow: modify non-RTL markdown file

Modified free-programming-books-en.md to verify that the RTL/LTR linter workflow does not run when only non-RTL markdown files are changed and the "RTL" label is not present.

* Test workflow: modify RTL markdown file to trigger linter

Modified free-programming-books-ar.md to verify that the RTL/LTR linter workflow runs as expected when an RTL markdown file is changed.

* Fix RTL/LTR BIDI issues in some markdown files

Applied directional markers (‎, ‏) and other formatting fixes to resolve BIDI (bidirectional text) errors and warnings reported by the linter in several .md files.

* Fix workflow: upload linter log only if linter step has not been skipped

Updated the workflow to upload the linter output artifact only when the linter step was actually executed (not skipped)

* Add debug step to check linter outcome in workflow

Added a debug step after the linter execution in the workflow to print the outcome and conclusion of the run_linter step.

* Set continue-on-error for linter step to allow artifact upload and debug

* Remove workflow debug step and update markdown file

Removed the debug step from the RTL/LTR linter workflow and applied further changes to a markdown file.

* Fix RTL/LTR BIDI issues in some markdown files

Applied directional markers (‎, ‏) and other formatting fixes to resolve BIDI (bidirectional text) errors and warnings reported by the linter in several .md files. This commit is a second batch of corrections to improve RTL/LTR rendering and pass the linter checks.

* Fix RTL/LTR BIDI issues in some markdown files

Applied directional markers (‎, ‏) and other formatting fixes to resolve BIDI (bidirectional text) errors and warnings reported by the linter in several .md files. This commit is a third batch of corrections to improve RTL/LTR rendering and pass the linter checks.

* Do not produce log file if no issues found

Updated the linter script to avoid creating the log file when no issues, warnings, or notices are found. If no issues are detected, the script now prints a "::notice ::No issues found"

* Always print annotation with number of errors and warnings found

Updated the linter script to always print an annotation indicating how many errors and warnings were found, even if there are none.

* Fix: always print summary annotation with number of issues found

* Add a missing newline character at end of file free-courses-he.md

* Update linter configuration and revert markdown files to pre-fix state

Updated the organization of keywords and symbols in the linter configuration file. Reverted all markdown files to their original state prior to the fixes.

* Update free-programming-books-he.md with fixes

* Update free-programming-books-he.md with further fixes

* Update free-programming-books-he.md with fixes

* Update free-programming-books-fa_IR.md with fixes

* Update free-programming-books-he.md with further fixes

* Update free-programming-books-ar.md with fixes

* Update free-programming-books-ar.md with further fixes

* Update free-podcasts-screencasts-ar.md with fixes

* Update free-podcasts-screencasts-fa_IR.md with fixes

* Update free-courses-he.md with fixes

* Update free-courses-he.md with further fixes

* Update free-courses-fa_IR.md with fixes

* Update free-courses-fa_IR.md with further fixes

* Update free-courses-ar.md with fixes

* Update free-courses-ar.md with further fixes

* Update free-courses-ar.md with further fixes

* Update free-courses-ur.md with fixes

* Update some markdown files with further improvements

* Fix alignment of nested lists in free-programming-books-fa_IR.md

* Update CONTRIBUTING.md and CONTRIBUTING-it.md with RTL/LTR linter error fixing guidelines

Added a section to CONTRIBUTING.md and CONTRIBUTING-it.md explaining how to fix RTL/LTR Markdown linter errors, including when to use ‏ and ‎ with practical examples for contributors working on files with mixed RTL and LTR text
2025-05-28 10:46:25 -04:00
Hridyanshu
1547c6338f Added Nextjs Resources in free-courses-ur.md (#11697)
* Added Nextjs Resources in free-courses-ur.md

* corrected spacing

* Update courses/free-courses-ur.md

Co-authored-by: Eric Hellman <eric@hellman.net>

---------

Co-authored-by: Hridyanshu7 <himank7794@gmail.com>
Co-authored-by: Eric Hellman <eric@hellman.net>
2024-10-27 13:16:43 -04:00
Shrey kumar gupta
471726d8e6 Add Comprehensive Free Resources for Algorithms and System Design. (#11494)
* Added a new book and some courses in english resources file. Algorithms book, system design and dsa courses

* Added a new book and some courses in english resources file. Algorithms book, system design and dsa courses

* Fix linter warnings by correcting blank line spacing in free-courses-ur.md

* Fix linter warnings by correcting blank line spacing in free-courses-ur.md again!

* Fix linter warnings by correcting blank line spacing in free-courses-ur.md again!!

* Changes as per contributing.md  made

* fixed line spaces

* hygiene check

* Changed resource location from courses to problem-sets-competitive-programming.md
2024-10-12 12:29:59 -04:00
Ajay Singh
1b3efe04a4 Added a Course in Python (#11507)
* Added a Course in Python

* Update free-courses-ur.md
2024-10-12 12:10:38 -04:00
Lakshmi N
ea1b270a03 Fixing broken ui in case of "|" (#10880)
* Fixing ui in case of "|"

* Fix lint
2023-11-21 20:08:41 -05:00
Eric Hellman
c5ccfb8334 Roll-up PR (draft) (#10980)
* hindi hibernate course

* add a react tutorial

* add three playgrounds from #9775

* duplicate

* from #10628

* add figma course from #10649

* line
2023-11-17 12:29:15 -05:00
Ajay Singh
028f11d4c0 Patch1 (#10958)
* Added C Course in Urdu

* Update free-courses-ur.md

Co-authored by: Eric Hellman <eric@hellman.net>

* Update free-courses-ur.md

* Update free-courses-ur.md
2023-11-04 22:46:56 -04:00
Ajay Singh
56590566b2 Added a Java Course (#10960)
* Added a Java Course

Co-authored by: Eric Hellman <eric@hellman.net>

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md
2023-11-02 14:18:18 -04:00
Ajay Singh
cf1838c9d9 Added an android course (#10949) 2023-11-01 11:19:18 -04:00
Ajay Singh
5d7b1a031b Added an android development course (#10948) 2023-11-01 11:18:37 -04:00
Ajay Singh
6a393269c8 Added an android course (#10946) 2023-11-01 11:10:45 -04:00
Ajay Singh
833afdc8a7 Added an algorithm course (Ready to merge) (#10857)
* Added an algorithm course

* Update free-courses-ur.md

* Update free-courses-ur.md

* Updated free-courses-ur.md

* Update free-courses-ur.md
2023-10-29 13:45:56 -04:00
Ajay Singh
500980fb9e Added A Course in Android (#10734)
* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md
2023-10-25 22:45:12 -04:00
Ajay Singh
e1e6b0329c Added an CSS Course (#10718)
* Added an CSS Course

* Update free-courses-ur.md
2023-10-25 22:35:20 -04:00
Ajay Singh
caf63627db Fixed Wrong Content Description (#10705) 2023-10-23 23:49:23 -04:00
Ajay Singh
6358ceb5c4 Added a C++ course (#10636)
* Added a C++ course

Co-authored by: Eric Hellman <eric@hellman.net>

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md
2023-10-23 15:44:42 -04:00
Ashu
c81d7d645f adding-new-index-and-course (#10521)
* adding-new-index-and-course

* Update free-programming-books-langs.md

* adding new book

* Adding-New-Urdu-Course

* Update free-courses-ur.md
2023-10-21 09:46:11 -04:00
Ajay Singh
85f63f2f8d Patch2 (#10529)
* Added Another C++ Course

Co-authored by: Eric Hellman <eric@ebookfoundation.org>

* Update free-courses-ur.md
2023-10-21 00:46:19 -04:00
Ajay Singh
1d0ac7b91e Cppcourse (#10419)
* Update free-courses-ur.md

I have added a free Youtube course in Hindi/Urdu and it is completely free.

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md

Added a Free Javascript Course in Hindi/Urdu.

* Added Cplusplus course in Hindi/Urdu File

I have added a C++ Course in the Hindi/Urdu File of the repository which is previously been created.

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md

* Update free-courses-ur.md
2023-10-19 17:59:32 -04:00
Mohammad Rabi Ul Hadi
1948818475 Added 2 courses in Urdu (#10360)
* Create free-courses-ur.md

* Update courses/free-courses-ur.md

Co-authored-by: Eric Hellman <eric@hellman.net>

* Update courses/free-courses-ur.md

Co-authored-by: Eric Hellman <eric@hellman.net>

* Update courses/free-courses-ur.md

Co-authored-by: Eric Hellman <eric@hellman.net>

* Update README.md for 

added a link to this page from README.md

* Update free-courses-ur.md

removed rtl dir

---------

Co-authored-by: Eric Hellman <eric@hellman.net>
2023-10-16 16:20:57 -04:00