Unified · Split
| @@ -163,6 +163,18 @@ tar xj --strip-components=1 · 162 unmodified lines | |||
| 163 | ### Ruby / Minitest | 163 | ### Ruby / Minitest |
| 164 | ### Ruby on Rails | 164 | ### Ruby on Rails |
| 165 | ### Ruby | 165 | ### Ruby |
| 166 | Download the tarball of Ruby from https://www.ruby-lang.org/en/downloads/, extract it, run | ||
| 167 | `./configure && make html` in your terminal (while your are in the ruby directory) and move | ||
| 168 | `.ext/html` to `path/to/devdocs/docs/ruby~$VERSION/`. | ||
| 169 | |||
| 170 | Or run the following commands in your terminal: | ||
| 171 | ```sh | ||
| 172 | curl https://cache.ruby-lang.org/pub/ruby/$VERSION/ruby-$RELEASE.tar.gz > ruby.tar; \ | ||
| 173 | tar -xf ruby.tar; cd ruby-$RELEASE; ./configure && make html; mv .ext/html path/to/devdocs/docs/ruby~$VERSION | ||
| 174 | ``` | ||
| 175 | |||
| 176 | To generate the htmls file you have to run `make` command but it does not install Ruby in your system, only generates html files so you have not | ||
| 177 | to worry about cleaning or removing a new Ruby installation. | ||
| 166 | 178 | ||
| 167 | ## Salt Stack | 179 | ## Salt Stack |
| 168 | 180 | ||
| @@ -63,12 +63,16 @@ module Docs · 62 unmodified lines | |||
| 63 | /\AXMP/] | 63 | /\AXMP/] |
| 64 | 64 | ||
| 65 | options[:attribution] = <<-HTML | 65 | options[:attribution] = <<-HTML |
| 66 | Ruby Core © 1993–2017 Yukihiro Matsumoto<br> | 66 | Ruby Core © 1993–2020 Yukihiro Matsumoto<br> |
| 67 | Licensed under the Ruby License.<br> | 67 | Licensed under the Ruby License.<br> |
| 68 | Ruby Standard Library © contributors<br> | 68 | Ruby Standard Library © contributors<br> |
| 69 | Licensed under their own licenses. | 69 | Licensed under their own licenses. |
| 70 | HTML | 70 | HTML |
| 71 | 71 | ||
| 72 | version '3' do | ||
| 73 | self.release = '3.0.0' | ||
| 74 | end | ||
| 75 | |||
| 72 | version '2.7' do | 76 | version '2.7' do |
| 73 | self.release = '2.7.2' | 77 | self.release = '2.7.2' |
| 74 | end | 78 | end |
| @@ -102,6 +106,7 @@ module Docs · 27 unmodified lines | |||
| 102 | return version | 106 | return version |
| 103 | end | 107 | end |
| 104 | end | 108 | end |
| 109 | |||
| 105 | end | 110 | end |
| 106 | end | 111 | end |
| 107 | end | 112 | end |