Skip to content

Commit 19f5bdd

Browse files
committed
Add ruby/rack docs
1 parent c8e8f32 commit 19f5bdd

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed

docs/file-scrapers.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,17 @@ bundle exec rake docs
270270
cp -r docs $DEVDOCS/docs/minitest
271271
```
272272

273+
### Ruby / Rack
274+
275+
```sh
276+
git clone https://github.com/rack/rack
277+
cd rack/
278+
sed -i 's/gem "rdoc"/gem "rdoc", "<7"/' Gemfile
279+
bundle install
280+
bundle exec rdoc
281+
cp -r doc $DEVDOCS/docs/rack
282+
```
283+
273284
### Ruby on Rails
274285
* Run `git clone --branch v$RELEASE --depth 7 https://github.com/rails/rails.git && cd rails`
275286
* Open `railties/lib/rails/api/task.rb` and comment out any code related to sdoc (`configure_sdoc`)

lib/docs/scrapers/rdoc/rack.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module Docs
2+
class Rack < Rdoc
3+
4+
self.name = 'Ruby / Rack'
5+
self.slug = 'rack'
6+
self.release = '3.2.6'
7+
self.links = {
8+
home: 'https://rack.github.io/rack/3.2/index.html',
9+
code: 'https://github.com/rack/rack'
10+
}
11+
12+
options[:root_title] = 'Rack'
13+
14+
options[:attribution] = <<-HTML
15+
&copy; 2007-2021 Leah Neukirchen<br>
16+
Licensed under the MIT License.
17+
HTML
18+
19+
def get_latest_version(opts)
20+
get_latest_github_release('rack', 'rack', opts)
21+
end
22+
end
23+
end

public/icons/docs/rack/16.png

1.53 KB
Loading

public/icons/docs/rack/16@2x.png

3.33 KB
Loading

public/icons/docs/rack/SOURCE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://github.com/rack/rack/blob/main/contrib/logo.webp

0 commit comments

Comments
 (0)