<commit_before># make_docs

> Generates HTML file for every MD file found in directory tree.

## Install

``` bash
npm install make_docs
```

## Usage
``` bash
make_docs
```
This will generate html files for all markdown files in current working directory and subdirectories.

## Features
* Html files are placed in the same directory where original md file located. This allows making links from md files to other files without hassle.
* Links to markdown files are converted to html files. [test link](readme.md)
* Generates Table of Contents (toc).

## Internals and customization
Program code is in [make_docs.js](make_docs.js). Output template is in [template.html](template.html). Feel free to customize them.

Alrogythm is:
1. Find all `**/*.md` files. 
2. Process each file using `marked` module.
3. Save result to `$file.md.html`. When saving, use `template.html` as template:
   * replace $body$ to body
   * replace $toc$ to toc.
   * replace $year$ to current year.
   
## Help
Please use Github for posting issues and questions: https://github.com/pavelvasev/make_docs/issues

## License
(c) 2015 <NAME> (MIT license)

See LICENSE for more info.<commit_msg>Better English in readme, thanks Oleg!<commit_after># make_docs

> Generates an HTML file for every MD file found in a directory tree.

## Install

``` bash
npm install make_docs
```

## Usage
``` bash
make_docs
```
This will generate html files for all markdown files in the current working directory and it's subdirectories.

## Features
* Html files are placed in the same directory where the original md file is located. This allows making links from md files to other files without hassle.
* Links to markdown files are converted to the links to html files. [test link](readme.md).
* Generates Table of Contents (toc).

## Internals and customization
The program code is in [make_docs.js](make_docs.js). The output template is in [template.html](template.html). Feel free to customize them.

The alrogythm is:
1. Find all `**/*.md` files. 
2. Process each file using `marked` module.
3. Save result to `$file.md.html`. When saving, use `template.html` as template:
   * replace $body$ with body
   * replace $toc$ with toc.
   * replace $year$ with current year.
   
## Help
Please use Github for posting issues and questions: https://github.com/pavelvasev/make_docs/issues

## License
(c) 2015 <NAME> (MIT license)

See LICENSE for more info.
{'fraction_non_alphanumeric': 0.09429280397022333, 'fraction_numerical': 0.005789909015715467, 'mean_word_length': 4.092631578947368, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2292882', 'n_tokens_mistral': 734, 'n_tokens_neox': 693, 'n_words': 326}