<commit_before># convert_md_2_rst

Convert Markdown to reStructuredText extension for Sphinx Doc

Scans for '.md' files and converts them to '.rst' files using pandoc.

For use it just copy the file 'convert_md_2_rst.py' to your source directory and add
'convert_md_2_rst' to the 'extensions' value of your 'conf.py' file.

Ensure that the source path is in the Python sys path. For that
purpose you may add this line to 'conf.py':

sys.path.insert(0, os.path.abspath('.'))

IMPORTANT: The code assumes that you use the folder 'source' for your Sphinx Doc
files. If different, just change it in the 'convert_md_2_rst.py' file.

For converting docstrings Markdown to reStructuredText you may use @embolalia
extension [Sphinx-Pandoc][].

[Sphinx-Pandoc]: https://github.com/embolalia/Sphinx-Pandoc<commit_msg>adding thank note for @embolalia<commit_after># convert_md_2_rst

Convert Markdown to reStructuredText extension for Sphinx Doc

Scans for '.md' files and converts them to '.rst' files using pandoc.

For use it just copy the file 'convert_md_2_rst.py' to your source directory and add
'convert_md_2_rst' to the 'extensions' value of your 'conf.py' file.

Ensure that the source path is in the Python sys path. For that
purpose you may add this line to 'conf.py':

sys.path.insert(0, os.path.abspath('.'))

IMPORTANT: The code assumes that you use the folder 'source' for your Sphinx Doc
files. If different, just change it in the 'convert_md_2_rst.py' file.

For converting docstrings Markdown to reStructuredText you may use @embolalia
extension [Sphinx-Pandoc][].

Thanks to @embolalia for the inspiration and source code reference for this
extension.

[Sphinx-Pandoc]: https://github.com/embolalia/Sphinx-Pandoc
{'fraction_non_alphanumeric': 0.07844276583381755, 'fraction_numerical': 0.005810575246949448, 'mean_word_length': 4.8175675675675675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3154362', 'n_tokens_mistral': 564, 'n_tokens_neox': 551, 'n_words': 228}