зеркало из https://github.com/github/ruby.git
c5f0fe1285
(https://github.com/ruby/rdoc/pull/1176) * Move method source block to the top Currently, if a method description is long (e.g. `Array.new`), users need to click the method toggle button next to the method title, and then scroll down to the source code expanded below the description. This commit changes the behavior so that the source code is expanded immediately below the method title. * Update method toggle's interface 1. Display the method toggle button by default instead of displaying on hover 2. Only toggle the source code when clicking the method toggle button, not when clicking the entire method title section. This will allow us to display an anchor link next to the method title 3. Simplify the toggle source button's appearance * Use details tag for method toggling * Rename method-click-advice to method-source-toggle * Improve method controls' display on mobile By moving the method controls out of the method header, we can display them to the right of the method name on desktop, and below the method name on mobile. * Add "Example" label to example code blocks The label should help users distinguish example code blocks from other code blocks, such as method source code. It's only applied to Ruby code examples. * Revert "Add "Example" label to example code blocks" This reverts commit https://github.com/ruby/rdoc/commit/69fc9ce6a379. * Give source code blocks a different background color * Change targeted method's highlighting color to work better with the new method source https://github.com/ruby/rdoc/commit/e608a84af3 |
||
---|---|---|
.. | ||
code_object | ||
generator | ||
i18n | ||
markdown | ||
markup | ||
parser | ||
rd | ||
ri | ||
stats | ||
.document | ||
code_object.rb | ||
code_objects.rb | ||
comment.rb | ||
cross_reference.rb | ||
encoding.rb | ||
erb_partial.rb | ||
erbio.rb | ||
generator.rb | ||
i18n.rb | ||
known_classes.rb | ||
markdown.rb | ||
markup.rb | ||
options.rb | ||
parser.rb | ||
rd.rb | ||
rdoc.gemspec | ||
rdoc.rb | ||
ri.rb | ||
rubygems_hook.rb | ||
servlet.rb | ||
stats.rb | ||
store.rb | ||
task.rb | ||
text.rb | ||
token_stream.rb | ||
tom_doc.rb | ||
version.rb |