diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md index b800a09d66..af80f764f3 100644 --- a/docs/file-scrapers.md +++ b/docs/file-scrapers.md @@ -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`) diff --git a/lib/docs/scrapers/rdoc/rack.rb b/lib/docs/scrapers/rdoc/rack.rb new file mode 100644 index 0000000000..5d2e6e1e75 --- /dev/null +++ b/lib/docs/scrapers/rdoc/rack.rb @@ -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 + © 2007-2021 Leah Neukirchen
+ Licensed under the MIT License. + HTML + + def get_latest_version(opts) + get_latest_github_release('rack', 'rack', opts) + end + end +end diff --git a/public/icons/docs/rack/16.png b/public/icons/docs/rack/16.png new file mode 100644 index 0000000000..fccb58ca27 Binary files /dev/null and b/public/icons/docs/rack/16.png differ diff --git a/public/icons/docs/rack/16@2x.png b/public/icons/docs/rack/16@2x.png new file mode 100644 index 0000000000..868976bab3 Binary files /dev/null and b/public/icons/docs/rack/16@2x.png differ diff --git a/public/icons/docs/rack/SOURCE b/public/icons/docs/rack/SOURCE new file mode 100644 index 0000000000..2e41f8fc88 --- /dev/null +++ b/public/icons/docs/rack/SOURCE @@ -0,0 +1 @@ +https://github.com/rack/rack/blob/main/contrib/logo.webp