This repository was archived by the owner on Jan 21, 2022. It is now read-only.
File tree 5 files changed +67
-7
lines changed
5 files changed +67
-7
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ gem "middleman-livereload"
5
5
gem "redcarpet" , "~>2.2.2"
6
6
7
7
gem 'middleman-syntax'
8
+
9
+ gem 'sinatra'
Original file line number Diff line number Diff line change 70
70
rack (1.5.2 )
71
71
rack-livereload (0.3.15 )
72
72
rack
73
+ rack-protection (1.5.2 )
74
+ rack
73
75
rack-test (0.6.2 )
74
76
rack (>= 1.0 )
75
77
rb-fsevent (0.9.3 )
81
83
rouge (0.3.10 )
82
84
thor
83
85
sass (3.2.10 )
86
+ sinatra (1.4.4 )
87
+ rack (~> 1.4 )
88
+ rack-protection (~> 1.4 )
89
+ tilt (~> 1.3 , >= 1.3.4 )
84
90
sprockets (2.10.0 )
85
91
hike (~> 1.2 )
86
92
multi_json (~> 1.0 )
@@ -105,3 +111,4 @@ DEPENDENCIES
105
111
middleman-livereload
106
112
middleman-syntax
107
113
redcarpet (~> 2.2.2 )
114
+ sinatra
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ bundle exec middleman build
4
+ bundle exec middleman server
Original file line number Diff line number Diff line change 47
47
# end
48
48
# end
49
49
50
+
50
51
require 'navigation'
51
52
require 'quicklinks'
52
53
@@ -125,3 +126,56 @@ def sub_pages(dir)
125
126
end
126
127
127
128
end
129
+
130
+ #Redirects
131
+ require "sinatra"
132
+
133
+ class BOSHRedir < Sinatra ::Base
134
+ get "/" do
135
+ redirect to ( 'http://docs.cloudfoundry.org/bosh' )
136
+ end
137
+ end
138
+
139
+ map "/docs/running/bosh/index.html" do
140
+ run BOSHRedir
141
+ end
142
+
143
+ class ServicesRedir < Sinatra ::Base
144
+ get "/" do
145
+ redirect to ( 'http://docs.cloudfoundry.org/services/' )
146
+ end
147
+ end
148
+
149
+ map "/docs/running/architecture/services" do
150
+ run ServicesRedir
151
+ end
152
+
153
+ class UsingServicesRedir < Sinatra ::Base
154
+ get "/" do
155
+ redirect to ( 'http://docs.cloudfoundry.org/devguide/services/' )
156
+ end
157
+ end
158
+
159
+ map "/docs/using/services" do
160
+ run UsingServicesRedir
161
+ end
162
+
163
+ class ServicesAPIRedir < Sinatra ::Base
164
+ get "/" do
165
+ redirect to ( 'http://docs.cloudfoundry.org/services/api.html' )
166
+ end
167
+ end
168
+
169
+ map "/docs/running/architecture/services/api.html" do
170
+ run ServicesAPIRedir
171
+ end
172
+
173
+ class DeployingCFRedir < Sinatra ::Base
174
+ get "/*" do
175
+ redirect to ( 'http://docs.cloudfoundry.org/deploying/' )
176
+ end
177
+ end
178
+
179
+ map "/docs/running/deploying-cf/" do
180
+ run DeployingCFRedir
181
+ end
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments