Welcome to MarkdownRecord!
This document will walk you through the many powerful features of MarkdownRecord, and is created with MarkdownRecord itself. Hopefully, you are rendering this page locally from your own application, and will be able to get a peak under the hood to see how it all works by looking directly at the source markdown files.
If you haven't installed it locally yet, you can find instructions here.
After following the installation guide, you should see a markdown_record
folder inside your application root. This folder contains three subdirectories: content
, layouts
and rendered
.
Feel free to poke around and explore the files in the directories mentioned above as you go through this guide. They will serve as a great reference to help make sense of the features and concepts described here.
The general workflow while using MarkdownRecord, once installed in your application, is as follows:
MarkdownRecord::ContentFragment
model to directly reference your rendered content inside your application. MarkdownRecord::Base
to interact with your html and json rendered content, taking advantage of the associations you can define manually as well a the automatic associations they have based on content location.The next step is to read through the Rendering Basics section to understand the basic rendering process of markdown source content into HTML and JSON.
The following links will take you to other sections of this guide. Each section builds upon the last, so it is recommended to read through them in order if you are new to MarkdownRecord.
Version 0.1.4 is the second beta version to be published and is packed with tons of big improvements. This is the first version that is really usable. Changes since 0.1.3 are as follows:
main_app
is no longer necessary.render_fragment
view helper.dom_id
view helper.meta[:name]
field isn't set.relative_parent_id
for content fragments, which overrides the parent
just like parent_id
but with a relative id.find_relative
method on MarkdownRecord::ContentFragment
.The above content was rendered from source files at: content/v_0_1/home