Skip to content

mredig/markdownrepo

Repository files navigation

README

This is a read only method of viewing a repository full of md documents, powered by parsedown. You will still need to edit the files in a text or markdown editor, but simply install this on a php server and point it to your directory and it will glob all the files and convert all markdown to html. All conversion is handled live, so you merely need to save and refresh your browser to view updates.

Features

  • Live conversion of md to html
  • built in search
  • LIVE search
    • with alphabetization!
  • works with an existing md repository
  • can display file modification date
  • permalink functionality without using a database or changing file modification dates
  • can popout article into new window for easier multitasking when referencing to the article while working in another tab
  • check out a live demo!

Use cases

  • want to easily document procedures for yourself/others
  • have lots of markdown files for whatever reason you want to be able to read easily and search
  • and more!

Installation

  1. clone repo into a webserver with php that also has access to the markdown files (this can be a mounted fileshare)
    1. git clone https://github.com/mredig/markdownrepo
    2. git submodule init
    3. git submodule update
  2. copy config-sample.php to config.php and customize the settings within
  3. (optional) if using a custom css file, perhaps edit it to support the following selectors (you can base it from the included css files)
    • #markdownRepoLiveSearch
    • .mdrTimestamp
    • .mdrPermalink
  4. navigate to the webserver address where you cloned into
    • http://serveraddress/markdownrepo

Requirements

  • server running php
    • and php-mbstring
  • browser
  • markdown files
    • file extension must be lowercase

About

php markdown repository viewer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published