mirror of
https://github.com/EbookFoundation/free-programming-books.git
synced 2026-06-04 13:54:27 +08:00
caa05be694
* 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
9.4 KiB
9.4 KiB
Index
- Ansible
- Blockchain
- C, C++
- C#
- Git
- HTML and CSS
- Java
- JavaScript
- Kotlin
- Linux
- Machine Learning
- Network
- PHP
- Python
- Storage
- Web Development
Ansible
- آموزش رایگان انسیبل - Morteza Bashsiz
Blockchain
- دوره بلاک چین، رمزارزها و بیت کوین - Jadi Mirmirani
C
- آموزش زبان C - Mohammad Moein Bagh Sheikhi
- برنامه نویسی پیشرفته - Ramtin Khosravi
- درس اصول برنامهنویسی سی و سی پلاس پلاس از دانشگاه صنعتی اصفهان - Kiarash Bazargan
C#
- آموزش Asp.Net MVC به همراه پروژه عملی - Iman Madaeny (نیاز به ثبت نام دارد)
- دوره مقدماتی دات نت 5 تحت وب - Ehsan Babaei (نیاز به ثبت نام دارد)
Git
- آموزش گیت، گیت هاب و گیت لب - فرادرس - Jadi Mirmirani (نیاز به ثبت نام دارد)
HTML and CSS
- آموزش css - محمدحسین سیدآقایی
- آموزش html - محمدحسین سیدآقایی
Java
- آموزش برنامهنویسی جاوا - Java Cup
- آموزش ديتابيس در جاوا
- برنامه نویسی پیشرفته(جاوا) - Gholamali Nejad Hajali Irani
- برنامهنویسی حرفهای تحت وب در جاوا - Gholamali Nejad Hajali Irani
JavaScript
- آموزش فارسی جاوا اسکریپت مقدماتی تا پیشرفته - JavaScript Tutorial - Mansour Kalagar
- دوره اموزشی جاوا اسکریپت از صفر - Mehran Tarif (Silicium)
React
- ری اکت جی اس ۲۰۲۰ - Amir Azimi
Vue.js
- آموزش Vue.js از صفر تا صد با 8 درس رایگان - میلاد حیدری
Kotlin
- آموزش کامل برنامه نویسی با کاتلین - Amirahmad Adibi
- دوره آموزشی کاتلین - Mehrdad Dolatkhah
- دوره رایگان برنامه نویسی اندروید - Omid Sharifmehr
Linux
- آموزش رایگان لینوکس - Morteza Bashsiz
- آموزش لینوکس برای آدم های شاد - Jadi Mirmirani
- آموزش لینوکس مقدماتی - Hamid Emamian
- دوره الپیک ۱ - جادی | LPIC-1 with Jadi - Jadi Mirmirani
Machine Learning
- درس یادگیری ماشین دانشگاه استنفورد - Andrew Ng
- درس یادگیری ماشین دانشگاه صنعتی شریف - Mahdiyeh Soleymani
Network
- درک مقدماتی شبکه - Jadi Mirmirani
PHP
- آموزش پیاچپی - سکان آکادمی - Behzad Moradi
- آموزش PHP - سبز دانش - Omid Rajaei
Codeigniter
Laravel
- آموزش لاراول - Hesam Mousavi
- آموزش لاراول - Abolfazl Talebi
Yii
- آموزش yii framework 2 - Mehrdad Seifzade
Python
- آموزش پایتون رایگان (برنامه نویسی python از صفر) - Omid Rajaei (بههمراه کوئیز و تمرین بیشتر با ثبتنام رایگان)
- دوره آموزش رایگان زبان پایتون ( Python ) از مقدماتی تا پیشرفته - Mohammad Ordokhani (TopLearn) (نیاز به ثبت نام دارد)
- دوره مقدماتی تا پیشترفته پایتون - کدتراپی - CodeTherapy
- متخصص پایتون (Python) - Reza Davalit
Django
- آموزش مقدماتی Django Rest Framework (DRF) - TorhamDev : Tech With Tori
- دوره اموزش جنگو مقدماتی تا پیشرفته - Mehran Tarif (Silicium)
- سوکت نویسی با کتابخانه جنگو چنلز - Shahriar Shariati
- Django2 All In One Course - دوره کامل جنگو و مهندسی بک اند - Boby Cloud
FastAPI
- آموزش FastAPI - TorhamDev : Tech With Tori
Flask
- آموزش توسعه وب با فریمورک فلسک - Alireza Ayinmehr
Storage
- آموزش رایگان سف - Morteza Bashsiz
Web Development
- آموزش اینسپکت المنت - Hossein Badrnezhad
- آموزش طراحی وب - Siavash Mahmoudian
- برنامه نویسی وب - Mohammad Salehe
- برنامه نویسی وب با HTML و CSS - Hossein Badrnezhad (نیاز به ثبت نام دارد)
- دوره آموزشی بوت استرپ 5 - Mehran Tarif (Silicium)
- وبفریمورکها چگونه کار میکنند؟ - Shahriar Shariati