Problem Statement - Parse all MD files from a GitHub repository and render the result in HTML format in a web server
- Fork this repository
- Write a web server of your choice (Flask, for example) which will recursively parse all MD files from the forked repository
- The index page of your server needs to list all file paths as hyperlinks
- Clicking on any of them, server routes to a different page where the parsed MD file is displayed in HTML format
We have the directory structure as
- Introduction/Chapter-One.md
- Introduction/Chapter-Two.md
- Setup/Chapter-One.md
- Setup/Chapter-Two.md
- images/
- README.md
Let's assume your server runs on port 5000.
The index page of your server needs to be accessible in your web browser as mentioned below -
Note: The hyperlinks used here are for demo purpose only; they are not functional. Also, omit README.md file. images directory needs to be omitted as well since they do not contain any MD files
Let's say we click on Introduction/Chapter-One
Server needs to route to http://localhost:5000/Introduction/Chapter-One, where the result on your webpage is HTML equivalent of the parsed MD file