Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/file-scrapers.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,16 @@ bundle exec rake docs
cp -r docs $DEVDOCS/docs/minitest
```

### Ruby / Rack

```sh
git clone https://github.com/rack/rack
cd rack/
bundle install
bundle exec rdoc
cp -r doc $DEVDOCS/docs/rack
```

### Ruby on Rails
* Run `git clone --branch v$RELEASE --depth 7 https://github.com/rails/rails.git && cd rails`
* Open `railties/lib/rails/api/task.rb` and comment out any code related to sdoc (`configure_sdoc`)
Expand Down
24 changes: 24 additions & 0 deletions lib/docs/scrapers/rdoc/rack.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module Docs
class Rack < Rdoc

self.name = 'Ruby / Rack'
self.slug = 'rack'
self.release = '3.2.4'
self.links = {
home: 'https://rack.github.io/rack/3.2/index.html',
code: 'https://github.com/rack/rack'
}
self.root_path = 'Rack.html'

options[:root_title] = 'Rack'

options[:attribution] = <<-HTML
&copy; 2007-2021 Leah Neukirchen<br>
Licensed under the MIT License.
HTML

def get_latest_version(opts)
get_latest_github_release('rack', 'rack', opts)
end
end
end
Binary file added public/icons/docs/rack/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/docs/rack/16@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/docs/rack/SOURCE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/rack/rack/blob/main/contrib/logo.webp
Loading