Skip to content

Python based http server, which can render your markdown documents directories to html.

License

Notifications You must be signed in to change notification settings

sabbir360/markdown-directory-to-html

Repository files navigation

Markdown to HTML Website/Documents

Introduction

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.

Demo

Demo of this project

How to use

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!

How to run this project

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 virtualenv virtualenv .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 browse 127.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 virtualenv virtualenv 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 browse 127.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 then docker-compose up -d
  • Browse 127.0.0.1:5000
  • To remove this from docker docker-compose down

How to run unittest

  • Inside your virtualenv run python -m unittest discover tests

How to see code coverage

  • coverage run -m unittest discover tests
  • coverage report -m
  • For html check coverage html and browse htmlcov\index.html

Limitation / future plan

  • 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

About

Python based http server, which can render your markdown documents directories to html.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published