To ease the use of markdown and browse those hard written contents on browser its a little effort.
This system can display a nicely formatted HTML for your markdown with simplicity.
To use this, simply put all your markdown, whether it's multi directory or single to the doc folder. Then run this project, either using Docker or, Flask. Boom!
I would recommend using docker, but if you want to run using Flask built-in server. Follow this steps
- For Mac/linux/Ubuntu
- Install python 3.7+
- Install Git
- Clone this project
git clone https://github.com/sabbir360/markdown-directory-to-html.git
- Install virtualenv
pip3 install virtualenv
cd markdown-directory-to-html
and Create a virtualenvvirtualenv .env
- Load virtualenv
source .env/bin/activate
- Install required package
pip3 install -r requirements
- Copy your markdown directory and files at doc folder.
- Run it
python app.py
and browse127.0.0.1:5000
- For windows
- Install python 3.7+
- Install Git
- Clone this project
git clone https://github.com/sabbir360/markdown-directory-to-html.git
- Install virtualenv
pip install virtualenv
cd markdown-directory-to-html
and Create a virtualenvvirtualenv venv
- Load virtualenv
venv\Script\activate
- Install required package
pip install -r requirements
- Copy your markdown directory and files at doc folder.
- Run it
python app.py
and browse127.0.0.1:5000
If you want to avoid these hassles, Install
- Install Git
- Docker.
- Docker Compose
- Clone this project
git clone https://github.com/sabbir360/markdown-directory-to-html.git
cd markdown-directory-to-html
docker-compose build
and thendocker-compose up -d
- Browse
127.0.0.1:5000
- To remove this from docker
docker-compose down
- Inside your virtualenv run
python -m unittest discover tests
coverage run -m unittest discover tests
coverage report -m
- For html check
coverage html
and browsehtmlcov\index.html
- This project has some error for unwanted Markdown format
- For linking any internal directories
- Generate HTML Site, so no more python dependancy
- Search content
- Those will be solved in the future, or you can raise issue, contribute or, contact me