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 +8 -6
- data/RTFMd.gemspec +1 -1
- data/bin/rtfmd +8 -3
- data/config/rtfmd.ru +1 -3
- data/lib/gollum/frontend/templates/pages.mustache +0 -3
- metadata +3 -3
data/README.md
CHANGED
@@ -4,10 +4,11 @@ RTFMd
|
|
4
4
|
Forked from `defunkt/gollum` with:
|
5
5
|
|
6
6
|
* Sinatra mountable app
|
7
|
-
*
|
7
|
+
* ronn styled
|
8
8
|
* Read-only
|
9
9
|
* Multiple wiki repositories
|
10
|
-
*
|
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,
|
33
|
-
command line, and run
|
33
|
+
interface, unblde the RTFMd and thin gem, navigate to your repository
|
34
|
+
via the command line, and run:
|
34
35
|
|
35
|
-
|
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
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
|
-
|
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 =>
|
7
|
+
:base_path => ENV['RTFMd_BASE_PATH']
|
10
8
|
})
|
11
9
|
|
12
10
|
map base_path do
|
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:
|
4
|
+
hash: 41209
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 10301
|
9
|
-
-
|
10
|
-
version: 0.10301.
|
9
|
+
- 9
|
10
|
+
version: 0.10301.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tom Bombadil
|