Commit 2d2a6b9d authored by Paul Asmuth's avatar Paul Asmuth
Browse files

doc: basic markdown rendering

parent 588c98d7
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -57,6 +57,15 @@ class DocApp < Sinatra::Base
    render_with_layout
  end

  get "/documentation" do
    renderer = Redcarpet::Markdown.new(
      Redcarpet::Render::HTML.new(:no_link => true))
    @doc_yield = renderer.render(gfm(IO.read(
      File.join(BASEDIR, "src/index.md"))))
    @yield = render(:erb, IO.read(File.join(BASEDIR, 'web/documentation.erb')))
    render_with_layout
  end

=begin
  get '/*' do
    @route = params[:splat].first
@@ -97,7 +106,7 @@ task :render do
  builder = SinatraStatic.new(DocApp)
  target = File.join(BASEDIR, "target")

  routes = ["/"]
  routes = ["/", "/documentation"]

  routes.each do |path|
    puts "  + #{path}"
+25 −0
Original line number Diff line number Diff line
<h2>FnordMetric v1.1.2 Documentation</h2>
<p>FnordMetric is a framework for collecting and displaying timseries data. It is split up into
  three components:</p>

<h3>FnordMetric UI</h3>
<p>FnordMetric UI is a HTML5 / JavaScript API that lets you plugin realtime data and timeseries
  graphs into any webpage without having to write a single line of code. It gives you maximum
  flexiblitiy as you can control the complete layout and style with HTML and CSS. FnordMetric UI
  uses WebSockets to communicate with the backend. There are two backend implementations:
  FnordMetric Classic (ruby + redis) or FnordMetric Enterprise (JVM). You can use FnordMetric UI
  as a white label solution to power your custom realtime analytics apps.</p>
  <a href="#">Getting Started with FnordMetric UI &rarr;</a>

<h3>FnordMetric Classic</h3>
<p>FnordMetric Classic offers a ruby DSL for processing data streams and manipulating gauges that
  get stored in redis. It includes a collection of pre-made UI widgets which you can use to build
  beautiful web dashboards within minutes. You can also use the FnordMetric UI HTML5 API to display
  the data on another website or build highly customized / white label views.</p>
  <a href="#">Getting Started with FnordMetric Classic &rarr;</a>

<h3>FnordMetric Enterprise</h3>
<p>FnordMetric Enterprise is a JVM based timeseries database which serves as a backend for FnordMetric
  UI. It does not offer it's own user interface.</p>
  <a href="#">Getting Started with FnordMetric Enterprise &rarr;</a>
+16 −4
Original line number Diff line number Diff line
@@ -87,17 +87,29 @@ hr {
  color:#777;
}

#header h1 { font-size:23.5px; margin-bottom:25px; }
#header h1 { 
  font-size:23.5px;
  margin-bottom:25px;
}

#header h1 a {
  color:#fff;
  text-decoration:none;
}

#header a {
#header a.menu {
  float:right;
  color:#fff;
  text-decoration:none;
  line-height:30px;
  margin-top:7px;
  line-height:26px;
  margin-top:9px;
  margin-left:25px;
}

#header a.menu:hover {
  border-bottom: 1px solid #666;
}

.headbar {
  height:36px;
  background-color: #F4F4F4;
Loading