Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mil/markdown-tree
A Sinatra script to serve a hierarchy / tree directory of markdown files. Use intended for small sites built in markdown.
https://github.com/mil/markdown-tree
Last synced: 21 days ago
JSON representation
A Sinatra script to serve a hierarchy / tree directory of markdown files. Use intended for small sites built in markdown.
- Host: GitHub
- URL: https://github.com/mil/markdown-tree
- Owner: mil
- License: mit
- Created: 2012-03-08T22:04:04.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-01-24T15:58:43.000Z (almost 10 years ago)
- Last Synced: 2024-10-26T23:55:02.766Z (about 2 months ago)
- Language: CSS
- Homepage: http://userbound.com/interfaces/Markdown-Tree
- Size: 131 KB
- Stars: 105
- Watchers: 6
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- project-awesome - mil/markdown-tree - A Sinatra script to serve a hierarchy / tree directory of markdown files. Use intended for small sites built in markdown. (CSS)
- jimsghstars - mil/markdown-tree - A Sinatra script to serve a hierarchy / tree directory of markdown files. Use intended for small sites built in markdown. (CSS)
- awesome-starred - mil/markdown-tree - A Sinatra script to serve a hierarchy / tree directory of markdown files. Use intended for small sites built in markdown. (others)
README
Markdown Tree
=============What is it?
-----------
Take a folder with a hierarchy of markdown files and use this script to serve that folder as a live styled site with a built in navigation.Basically this is a Sinatra script to serve a hierarchy / tree directory of markdown files as a live dynamic site. Use intended for small sites built in markdown.
Why
---
There are many similar scripts done in a static fashion but I couldn't find a minimal system for serving markdown hierarchy based sites that was dynamic.For that reason I created Markdown Tree. Having a dynamically generated site allows me to not have to worry about regenerating my site every time I make a minor change.
Installation and Usage
-----
- Clone the repo: ```git clone git://github.com/mil/markdown-tree.git```
- Go into the directory: ```cd markdown-tree```
- Install the Sinatra and Redcarpet gems: ```gem install redcarpet sinatra```
- Run the script: ```ruby markdown-tree.rb```
* Visit http://localhost:4567 to browse your site!Folder Structure / Customization
--------------------------------
- **markdown-tree.rb** : The ruby script to run which serves your site
- **config.yaml** : 4 option config used by markdown-tree.rb
- **template/** : Contains the default template
* **template.erb** : ERB template pages are built from
- **content/** : Contains the hierarchy of markdown files for your SitesExample Sites
-------------
- [Default Example Site](http://markdown-tree.bladdo.net/)
- [My Personal Notes System](http://notes.bladdo.net) (for notes I take in class at Virginia Tech)Todos
--------------------------------
- Clean up the default template's CSS
- Add more error handling for reading fileCredits
-------
- Inspiration taken from static site generator mksite [mksite](http://zziplib.sourceforge.net/mksite/)
- Icons are [famfam's silk set](http://www.famfamfam.com/lab/icons/silk/)