doc_curation.md_helper
-
class
doc_curation.md_helper.MdFile(file_path)[source]
-
classmethod
devanaagarify_titles(md_files, dry_run=False)[source]
-
dump_to_file(yml, md, dry_run)[source]
-
classmethod
fix_index_files(dir_path, dry_run=False)[source]
-
classmethod
fix_titles(md_files, spreadhsheet_id, worksheet_name, id_column, title_column, md_file_to_id, google_key='/home/vvasuki/gitland/vvasuki-git/sysconf/kunchikA/google/sanskritnlp/service_account_key.json', dry_run=False)[source]
-
classmethod
get_md_files_from_path(dir_path, file_pattern, file_name_filter=None)[source]
-
get_title(omit_chapter_id=True)[source]
-
get_upaakhyaana(omit_id=True)[source]
-
prepend_to_content(prefix_text, dry_run=True)[source]
-
read_md_file() → Tuple[Dict, str][source]
-
replace_content(new_content, dry_run=True)[source]
-
replace_in_content(pattern, replacement, dry_run=True)[source]
-
set_title(title, dry_run)[source]
-
set_title_from_filename(dry_run)[source]
-
classmethod
set_titles_from_filenames(dir_path, file_pattern='**/*.md', dry_run=False)[source]