Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EbookFoundation/free-programming-books
/ functions
Functions
6 in github.com/EbookFoundation/free-programming-books
⨍
Functions
6
◇
Types & classes
0
↓ 2 callers
Function
lint_file
Analyzes a single Markdown file for RTL/LTR issues. Args: path (str): The path to the Markdown file to analyze. cfg (dict):
scripts/rtl_ltr_linter.py:196
↓ 1 callers
Function
get_changed_lines_for_file
Returns a set of line numbers (1-based) that were changed in the given file in the current PR. This function uses 'git diff' to compare the
scripts/rtl_ltr_linter.py:404
↓ 1 callers
Function
is_rtl_filename
Checks if the given filename indicates an RTL filename. Args: path (str): The path to the file. Returns: bool: True if
scripts/rtl_ltr_linter.py:77
↓ 1 callers
Function
load_config
Loads configuration from the specified YAML file. If the file does not exist or an error occurs during loading, default values will be u
scripts/rtl_ltr_linter.py:29
↓ 1 callers
Function
main
Main entry point for the RTL/LTR Markdown linter. Parses command-line arguments, loads configuration, and scans the specified files or direc
scripts/rtl_ltr_linter.py:445
↓ 1 callers
Function
split_by_span
Splits text into segments based on nested <span> tags with dir attributes. Args: text (str): The input string to split. base
scripts/rtl_ltr_linter.py:125