RTFMd 0.10301.8 → 0.10301.9

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -4,10 +4,11 @@ RTFMd
4
4
  Forked from `defunkt/gollum` with:
5
5
 
6
6
  * Sinatra mountable app
7
- * Stylized to look like ronn HTML man pages
7
+ * ronn styled
8
8
  * Read-only
9
9
  * Multiple wiki repositories
10
- * Support Markdown (and ronn)
10
+ * Markdown, ronn, boson, capistrano support
11
+ * GitHub callbacks
11
12
 
12
13
  ## DESCRIPTION
13
14
 
@@ -29,13 +30,14 @@ RTFMd follows the rules of [Semantic Versioning](http://semver.org/) and uses
29
30
  ## RUNNING
30
31
 
31
32
  To view your RTFMd repository locally via the built in web
32
- interface, simply install the RTFMd gem, navigate to your repository via the
33
- command line, and run the executable:
33
+ interface, unblde the RTFMd and thin gem, navigate to your repository
34
+ via the command line, and run:
34
35
 
35
- bin/rtfmd
36
+ RTFMd_CONFIG=$(bundle show RTFMd)/config/rtfmd.ru
37
+ RTFMd_WIKI=$(pwd) bundle exec thin start -R $RTFMd_CONFIG
36
38
 
37
39
  This will start up a web server running the RTFMd frontend and you can view
38
- your wiki at http://localhost:3000
40
+ your wiki at http://localhost:3000/$(basename $(pwd))
39
41
 
40
42
  ## REPO STRUCTURE
41
43
 
data/RTFMd.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'RTFMd'
7
- s.version = '0.10301.8'
7
+ s.version = '0.10301.9'
8
8
  s.date = '2011-12-16'
9
9
 
10
10
  s.summary = "A simple, Markdown documentation helper."
data/bin/rtfmd CHANGED
@@ -1,12 +1,17 @@
1
1
  #!/bin/bash -e
2
2
 
3
+ RTFMd_BASE_PATH="/"
4
+ RTFMd_WIKI=$(pwd)
5
+
6
+ export RTFMd_WIKI RTFMd_BASE_PATH
7
+
3
8
  if [[ -n $1 ]]; then
4
9
  RTFMd_WIKI=$1; shift
5
- else
6
- RTFMd_WIKI=$(pwd)
7
10
  fi
8
11
 
9
- export RTFMd_WIKI
12
+ if [[ -n $1 ]]; then
13
+ RTFMd_BASE_PATH=$1; shift
14
+ fi
10
15
 
11
16
  bundle check 2>&- || { bundle install --local && bundle check; }
12
17
  exec bundle exec thin start -R config/rtfmd.ru
data/config/rtfmd.ru CHANGED
@@ -2,11 +2,9 @@ require 'sinatra/base'
2
2
  require 'gollum'
3
3
  require 'gollum/frontend/app'
4
4
 
5
- base_path = "/#{File.basename(Dir.pwd)}"
6
-
7
5
  Precious::App.set(:gollum_path, ENV['RTFMd_WIKI'])
8
6
  Precious::App.set(:wiki_options, {
9
- :base_path => base_path
7
+ :base_path => ENV['RTFMd_BASE_PATH']
10
8
  })
11
9
 
12
10
  map base_path do
@@ -26,9 +26,6 @@
26
26
 
27
27
  </div>
28
28
  <div id="footer">
29
- <ul class="actions">
30
- <li class="minibutton"><a href="#">Back to Top</a></li>
31
- </ul>
32
29
  </div>
33
30
  </div>
34
31
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RTFMd
3
3
  version: !ruby/object:Gem::Version
4
- hash: 41211
4
+ hash: 41209
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 10301
9
- - 8
10
- version: 0.10301.8
9
+ - 9
10
+ version: 0.10301.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tom Bombadil