Nobuyoshi Nakada
ec6d1cf28f
[ruby/rdoc] Get rid of ruby-mode.el confusions
...
63fac51198
2022-02-09 22:22:45 +09:00
Nobuyoshi Nakada
994b3f1dc6
[ruby/rdoc] Allow cross references to negation operator method
...
69cafb213a
2022-02-09 19:41:12 +09:00
Nobuyoshi Nakada
8db06fe2c9
[ruby/rdoc] Allow cross references to logical operator methods
...
17c0da304d
2022-02-09 19:41:11 +09:00
Soutaro Matsumoto
cbd54cba03
[ruby/rdoc] Skip parentheses on singleton class declaration
...
b6c6d4f978
2022-02-09 18:45:05 +09:00
Nobuyoshi Nakada
88b1d21dbb
[ruby/rdoc] Allow cross references to backtick method
...
52c33157f1
2022-02-09 18:44:41 +09:00
Nobuyoshi Nakada
202f690a5e
[ruby/rdoc] Allow cross references to operator methods
...
Make operator methods, e.g., `Regexp#=~`, `Integer#<=>`, cross
reference targets.
5d332a4128
2022-02-09 18:44:40 +09:00
Nobuyoshi Nakada
dec96dd897
[ruby/rdoc] Support all struct definition functions
...
Currently only `rb_struct_define_without_accessor` is supported by
https://github.com/ruby/rdoc/pull/73 . We should support other
three functions too.
d42288f06c
2022-02-09 18:43:07 +09:00
gemmaro
d77f2ff5b4
[ruby/rdoc] Fix typo in RDoc::Task example
...
7a77e55c2a
2022-01-24 10:17:16 +09:00
aycabta
03f16d37bf
[ruby/rdoc] Version 6.4.0
...
4797f28df8
2021-12-24 17:04:11 +09:00
aycabta
2e50989ad3
[ruby/rdoc] Resolve class and method of the same name correctly
...
1e16284fe5
2021-12-09 18:16:05 +09:00
Mike Dalessio
4ffc3fb019
[ruby/rdoc] fix: alias to method with call-seq
...
This change fixes alias call-seq to return nil if the method's
call-seq does not specify the alias.
Previously, the alias's call-seq would be an empty string in this case
which broke darkfish rendering.
This change also backfills test coverage for 0ead786 which moved
call-seq deduplication into AnyMethod.
5ce2789b6f
2021-10-16 06:31:11 +09:00
Mike Dalessio
4c42540da2
[ruby/rdoc] Support linking #==
...
See related commits:
- ebc66662 for #===
- 4943d208 for #[], #[]=, #<<, and #>>
8e47f7840a
2021-10-16 01:40:47 +09:00
Mike Dalessio
7aec65add4
[ruby/rdoc] feat: add support for :category: on C functions
...
45c92005fe
2021-10-16 01:39:36 +09:00
Mike Dalessio
fbd0516afc
[ruby/rdoc] fix: comments in C files use the global markup option
...
Previously, Parser::C comments all defaulted to "rdoc" format, even
when the user had set a different default with the `--markup=<choice>`
option.
4643b08a26
2021-10-16 01:39:06 +09:00
Mike Dalessio
d4894e81c0
[ruby/rdoc] extract Comment creation in Parser::C
...
This is a prefactor for fixing comment format handling.
a3d366feed
2021-10-16 01:39:05 +09:00
aycabta
4b024234b2
[ruby/rdoc] Update SourceCodePro font files
...
d3201d0d47
2021-10-11 21:15:07 +09:00
Hiroshi SHIBATA
83662f1d99
Removed needless rake and bundler files for rdoc
2021-09-28 16:13:45 +09:00
Nobuyoshi Nakada
0fbde94b27
[ruby/rdoc] Convert upper case copyright and registered marks
...
3bca7dc093
2021-09-11 17:03:52 +09:00
Nobuyoshi Nakada
bc0ea95ca8
[ruby/rdoc] Convert tick double quote in character entity references
...
6ed889aac9
2021-09-11 17:03:38 +09:00
Nobuyoshi Nakada
6944163415
[ruby/rdoc] Convert a backtick to an open single quote
...
82eaefbae4
2021-09-11 17:03:33 +09:00
Nobuyoshi Nakada
c5c0f5c652
[ruby/rdoc] Convert single quotes in character entity references
...
As well as double quotes.
https://github.com/ruby/rdoc/pull/824#discussion_r683173389
09002bdab5
2021-09-11 17:03:26 +09:00
Hiroshi SHIBATA
94845d0170
Removed needless Gemfile in ruby repo.
2021-09-03 20:35:29 +09:00
Nobuyoshi Nakada
76c7388c1f
[ruby/rdoc] Add tests for --template-stylesheets
option
...
Also flattens `@options.template_stylesheets` when parsing the
command lines.
Fixes #205
Fixes #828 too
857002a763
2021-09-03 19:13:15 +09:00
Hiroshi SHIBATA
078969914d
[ruby/rdoc] minitest is not need to run rubygems test now
...
27c5f946d2
2021-09-03 19:10:20 +09:00
aycabta
cf2faf2e33
[ruby/rdoc] Move RDoc::RDoc#load_options to RDoc::RDoc.load_options
...
ac85e01756
2021-09-02 00:32:13 +09:00
aycabta
b8f771fba2
Update parser files of RDoc generated by the latest Racc
2021-08-10 02:36:00 +09:00
aycabta
44635ebe9a
Update parser files of RDoc generated by the latest KPeg
2021-08-10 02:36:00 +09:00
aycabta
6b439e9c4e
[ruby/rdoc] Use HEAD of kpeg
...
I compared the results between the latest release of kpeg gem (1.1.0)
and HEAD of kpeg gem with `time` command, and the execution time is
reduced from 38.35s sec to 35.06 sec.
ref. https://github.com/evanphx/kpeg/pull/43
682bcb48ce
2021-08-10 02:36:00 +09:00
aycabta
d082510429
[ruby/rdoc] Add "rake clean" task to erase generated parser files
...
4e3e635afa
2021-08-10 02:36:00 +09:00
aycabta
b277a6d26d
Import copied Rakefile from original RDoc repository
2021-08-10 02:36:00 +09:00
aycabta
d8eeee97ce
[ruby/rdoc] Move dev dependency of gettext to Gemfile
...
a177377b6f
2021-08-10 02:36:00 +09:00
aycabta
638c72e162
[ruby/rdoc] Use single quote in Gemfile
...
e4b68d414c
2021-08-10 02:36:00 +09:00
aycabta
b685c60bef
Import copied Gemfile from original RDoc repository
2021-08-10 02:36:00 +09:00
Hiroshi SHIBATA
02a3cac658
[ruby/rdoc] Bump version to 6.3.2
...
0a3a674583
2021-07-06 11:02:14 +09:00
Nobuyoshi Nakada
3dacc14fd3
[ruby/rdoc] Fix links without paths
...
424bd5db4d
2021-07-05 11:34:37 +09:00
Nobuyoshi Nakada
f88a9097a4
[ruby/rdoc] Fix for explicit http link
...
caf234665c
2021-07-05 11:34:35 +09:00
Nobuyoshi Nakada
7c8aa0a5d2
[ruby/rdoc] Allow a label in a link to another document text
...
85bb2d33bb
2021-07-05 11:34:33 +09:00
aycabta
caa123b50e
[ruby/rdoc] Support ActiveSupport::Concern.included
...
ref. 168ddaa08a/activerecord/lib/active_record/core.rb (L9-L20)
a2d651dade
Co-authored-by: Fumiaki MATSUSHIMA <mtsmfm@gmail.com>
2021-07-05 11:34:29 +09:00
Ulysse Buonomo
ec9a9af375
[ruby/rdoc] Fix chained inclusion ancestors_of
...
Fixes #814
Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>
b45f747216
2021-07-05 11:34:25 +09:00
xstnztk
c7d1989986
[ruby/rdoc] Document 'ruby:' to show core documentation in ri
...
ri supports 'ruby:' as a kind of "pseudo gem name" to display files of the core Ruby documentation such as syntax and NEWS. Add the appropriate documentation to the description of options shown by "ri --help".
a0e5df6702
2021-07-05 11:34:22 +09:00
Hiroshi SHIBATA
193eea9dcd
[ruby/rdoc] Specify working directory for RDoc::Options#check_files
...
f6cca9bd2f
2021-06-23 11:05:16 +09:00
aycabta
9137caaf45
[ruby/rdoc] Add a dependency on psych gem 4.0.0 or newer
...
ebe185c877
2021-06-02 11:35:45 +09:00
aycabta
c264d30261
Use YAML.safe_load to use the permitted_classes option
2021-05-21 21:45:03 +09:00
Nobuyoshi Nakada
59b327aa58
[ruby/rdoc] Drop support for Ruby 2.4
...
f480b970cc
2021-05-21 15:53:34 +09:00
Yusuke Endoh
21d24767e8
[ruby/rdoc] Update rdoc.gemspec by adding lib/rdoc/markup/table.rb
...
Fixes ruby/rdoc#808
80766fd389
2021-05-21 15:51:53 +09:00
aycabta
0ee24b4fab
[ruby/rdoc] Version 6.3.1
...
9307f932b7
2021-05-21 13:42:24 +09:00
aycabta
b1c73f239f
[ruby/rdoc] Use File.open to fix the OS Command Injection vulnerability in CVE-2021-31799
...
a7f5d6ab88
2021-05-21 13:42:24 +09:00
Yusuke Endoh
ffdf0232ef
lib/rdoc/rdoc.rb: Allow only RDoc::Options in .rdoc_options
...
Follow-up of d8fd92f620
. Instead of using
unsafe_load blindly, RDoc::Options is only supposed to be allowed.
2021-05-17 12:53:42 +09:00
Hiroshi SHIBATA
d8fd92f620
Workaround with fbb4e3f96c
in rdoc
2021-05-17 12:04:40 +09:00
Nobuyoshi Nakada
64b991b0cd
[ruby/rdoc] Links to document texts without "rdoc-ref:" prefix
...
While links to generated HTML from RDoc file needs to be prefixed
by "rdoc-ref:" currently, in case of explicit references this
seems just redundant.
Also GitHub RDoc support does not work with this prefix.
This patch lets links to such document texts (".rb", ".rdoc" and
".md" now) refer URLs generated by `RDoc::TopLevel#http_url`
without the prefix.
f18b27b69d
2021-04-03 01:22:09 +09:00