MDir lets you easily browse and view your markdown files.
- Browser and view your markdown files in your browser.
- Plain directory structure and plain markdown files, no database needed.
- Github Flavored Markdown.
- Mermaid diagrams support.
You will need to have PHP >= 7.1 installed on your machine. Then follow these steps:
- Clone this repo to your local machine.
- Run `composer install' to install the dependencies.
- Modify the config file
config/app.php
to suit your needs. - Start the web server. There are 3 ways you can do this:
- With the built-in web server.
- Run the command
php react-server.php
.
- Run the command
- With Roadrunner. The steps are:
- Download and install the roadrunner binary.
- Run
rr serve
, whererr
is the roadrunner binary.
- Setup an old-fashioned LAMP/LNMP website (you can skip the M part, because MDir doesn't need MySQL to function). Please refer to guides on the internet on how to do this.
- With the built-in web server.
- Open
http://localhost:5000/
in your browser.
- Figure out how to make anchor links and Mermaid renders work better together
This project is based on the following works:
- Parsedown - Markdown parser.
- Commonmark - Markdown parser.
- Symfony - Infrastructural libraries.
- Pure - CSS library.
- github-markdown-css - CSS for markdown.
- Mermaid - Diagrams support.