Commit graph

690 commits

Author SHA1 Message Date
zzak
b171e99791 [ruby/rdoc] Actually execute RDoc document task for coverage
7e70d41585
2023-02-06 23:09:05 +00:00
zzak
da9ee7bcf3 [ruby/rdoc] Add newline before return
6d609cb64c

Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
2023-02-03 23:41:06 +00:00
zzak
e04d20bc48 [ruby/rdoc] Add rdoc:coverage default task
157fbaf575
2023-02-03 23:41:06 +00:00
Hiroshi SHIBATA
cc25e81fb7 Update generated version of racc on parser headers 2022-12-26 15:09:21 +09:00
Hiroshi SHIBATA
4cbd3e1944 Merge RDoc-6.5.0 2022-12-09 16:36:22 +09:00
Nobuyoshi Nakada
bda070f016
[ruby/rdoc] Fix =end delimiter
e1679fa7e4
2022-12-09 15:40:05 +09:00
Nobuyoshi Nakada
acd857b989
[ruby/rdoc] Non-RD part feature has not been imported to RDoc
fe0159de2f
2022-12-09 15:40:04 +09:00
Nobuyoshi Nakada
b749bc05d0
[ruby/rdoc] Use Tempfile
0b9dde5ab4
2022-12-09 15:40:04 +09:00
Hiroshi SHIBATA
d7b00b55a9 [ruby/rdoc] Bump version to 6.4.0
c5e7ee03ac
2022-12-05 04:59:54 +00:00
Nobuyoshi Nakada
f0c9d2a0c8 [ruby/rdoc] Fix =end delimiter
e1679fa7e4
2022-12-01 02:36:20 +09:00
Nobuyoshi Nakada
99cad3fccd [ruby/rdoc] Non-RD part feature has not been imported to RDoc
fe0159de2f
2022-12-01 02:36:20 +09:00
Nobuyoshi Nakada
c87b3ee671 [ruby/rdoc] Use Tempfile
0b9dde5ab4
2022-12-01 02:36:20 +09:00
Sven Riedel
e0901f46b7 [ruby/rdoc] Add --no-skipping-tests option
33925f885f
2022-11-28 04:36:29 +00:00
Nobuyoshi Nakada
5b1db79129 [ruby/rdoc] Revert "Refactor RDoc::Markup::Parser#tokenize"
This reverts commit 41ceae93b3.

5d2c47e8b8
2022-11-27 19:46:12 +00:00
Nobuyoshi Nakada
21977b95e2 [ruby/rdoc] Refactor RDoc::Markup::Parser#tokenize
Make verbatims text or newline only, and simplify `build_verbatim`.

41ceae93b3
2022-11-27 17:24:38 +00:00
nick evans
29862ce273 [ruby/rdoc] Darkfish: group method call-seq in div.method-header
This way, custom CSS styles can be easily applied to the entire method
header at once.  Otherwise, it can be tricky to make a border that goes
around the entire set of method call-seq, but not the method
description.

5db4bce01e
2022-11-27 17:24:17 +00:00
nick evans
ae3817bc61 [ruby/rdoc] Darkfish: Nest sidebar ToC as a tree of headings
This uses `<details><summary>heading</summary><ul>nested</ul></detail>`,
similar to how the classes and pages lists are now nested.

e57beff287
2022-11-27 17:18:16 +00:00
Nobuyoshi Nakada
511864d1a7 [ruby/rdoc] Refine regexp usages and reduce substring allocations
a976fb9d39
2022-11-27 16:35:08 +00:00
Nobuyoshi Nakada
1b67c58f41 [ruby/rdoc] Pull up handle_tab_width to RDoc::Parser
To share with the duplicate code in RDoc::Parser::Ruby#initialize.

27829ac119
2022-11-27 16:35:07 +00:00
Shugo Maeda
5129ca3e05 [ruby/rdoc] Delay require "readline" in case the terminal is in raw mode 2022-10-27 08:16:06 +00:00
Nobuyoshi Nakada
39909d8c18 [ruby/rdoc] Escape search results
https://hackerone.com/reports/1321358

2ebf8fd510
2022-10-07 12:12:09 +09:00
Nobuyoshi Nakada
a3cb09c7d1 [ruby/rdoc] Escape file names
https://hackerone.com/reports/1321358

8c07cc4657
2022-10-07 12:12:08 +09:00
Nobuyoshi Nakada
8d0b2162a0 [ruby/rdoc] Escape main title
https://hackerone.com/reports/1187156

5dedb5741d
2022-10-07 12:09:23 +09:00
Nobuyoshi Nakada
586e18b946 [ruby/rdoc] Escape HYPERLINKs
ac35485be6
2022-10-07 12:09:22 +09:00
Nobuyoshi Nakada
9e3ab9da7f [ruby/rdoc] Escape RDOCLINKs
https://hackerone.com/reports/1187156

7cecf1efae
2022-10-07 12:09:21 +09:00
Nobuyoshi Nakada
deaa656608 [ruby/rdoc] Escape TIDYLINKs
https://hackerone.com/reports/1187156

1ad2dd3ca2
2022-10-07 12:09:20 +09:00
Takashi Kokubun
1f2c84de83
[ruby/rdoc] Remove trailing spaces to fix CI
5224898228

369e4fa32d
2022-10-06 11:56:05 -07:00
Nobuyoshi Nakada
cf3056be69 [ruby/rdoc] Add center align
512cc55a0e
2022-10-06 23:22:02 +09:00
Nobuyoshi Nakada
28e24ce355 [ruby/rdoc] Allow spaces around pipes
3b3a583580
2022-10-06 23:21:16 +09:00
Nobuyoshi Nakada
7c03c82444 [ruby/rdoc] Allow escaped pipes in cells
333952a62d
2022-10-06 23:17:49 +09:00
Nobuyoshi Nakada
f6c916c7ef [ruby/rdoc] Allow leading pipes to be ommitted
d263a2c9c4
2022-10-06 23:16:54 +09:00
Nobuyoshi Nakada
a19bf47d03 [ruby/rdoc] Allow trailing pipes to be ommitted
1318048877
2022-10-06 23:14:29 +09:00
Nobuyoshi Nakada
75a53f6be0 [ruby/rdoc] Allow RDoc markups in table cells
b16d3f1727
2022-10-06 18:24:44 +09:00
Daniel Colson
3e84290213 [ruby/rdoc] Remove unused abbrev require
This library originally used `abbrev` to expand abbreviations into
fully-qualified classes, but that was replaced in
f9ffe6684e

`abbrev` is no longer used anywhere, so this commit removes the require.

b76775f27d
2022-10-06 10:04:41 +09:00
Nobuyoshi Nakada
5beb75ce8d
[ruby/rdoc] Allow multiple footnotes without in-between blank lines
e4e054e3ce used four footnotes
without blank lines.  And the ChangeLog generated from that commit
resulted in ``undefined method `parts' for nil`` error.

For now, let a footnote terminated by the next footnote mark.

Also refined the error message when undefined footnote is used.

a7f290130b
2022-08-08 01:12:49 +09:00
Burdette Lamar
23a84d53c6 [ruby/rdoc] [DOC] Removes remaining old Markup Reference (https://github.com/ruby/rdoc/pull/910)
4e44c9c6cf
2022-08-07 21:07:23 +09:00
Nobuyoshi Nakada
af265d73fb [ruby/rdoc] Fix blockquote with word in verbatim
75eee668a5
2022-07-30 11:04:11 +09:00
Nobuyoshi Nakada
f29f1d22c3 [ruby/rdoc] Fix formatting blockquote in verbatim
Reported at https://github.com/ruby/rdoc/pull/907#discussion_r932505816

86384ac7f9
2022-07-29 09:21:33 +09:00
Burdette Lamar
c56e957dec [ruby/rdoc] Link from RDoc::Markup to RDoc::MarkupReference (https://github.com/ruby/rdoc/pull/906)
Recently new RDoc::MarkupReference replaces Markup Reference in RDoc::Markup (which was always the goal).

825be7eaf4
2022-07-29 01:06:34 +09:00
Peter Zhu
ba098fa151 Sync RDoc 2022-07-25 16:29:14 -04:00
Peter Zhu
dd362a786a [ruby/rdoc] Fix call-seq for aliased method with similar names
deduplicate_call_seq has a bug that skips call-seq for methods where the
alias is a prefix of the method name. For example, if the alias name is
"each" and the current method name is "each_line", then
deduplicate_call_seq will skip all call-seq for "each_line" since it
will believe that it is for the alias.

1148988ccc
2022-07-18 22:36:57 +09:00
Nobuyoshi Nakada
b564ef3698 [ruby/rdoc] Fix the known classes more
9f47234e0e
2022-07-11 13:43:14 +09:00
Nobuyoshi Nakada
86df6f4bb3 [ruby/rdoc] Fix an exception class name
87301da71b
2022-07-11 13:14:06 +09:00
Nobuyoshi Nakada
5ccdcd8168 [ruby/rdoc] Remove dead code
f727854bd5
2022-06-28 21:24:59 +09:00
Nobuyoshi Nakada
131422ceea [ruby/rdoc] Support attributes defined by rb_struct_define
854b370763
2022-06-28 20:17:30 +09:00
Nobuyoshi Nakada
98bf8c83fa [ruby/rdoc] Refinement is added since ruby 3.1
c051eb90d1
2022-06-28 15:49:05 +09:00
Nobuyoshi Nakada
51be2cf6d2 [ruby/rdoc] Parse also InitVM-prefixed functions
Initialization depending on VM is separated.

030d10fccd
2022-06-28 14:51:49 +09:00
Nobuyoshi Nakada
082c2d1b05 [ruby/rdoc] [DOC] Undocument internal constants [ci skip]
6d7bf24bb8
2022-06-07 11:44:58 +09:00
Nobuyoshi Nakada
dbfb3b1917 [ruby/rdoc] Allow boolean arguments to rb_attr and rb_define_attr
Currently only literal `0` and `1` are accepted as `read`/`write`
flags.
This patch allows other boolean arguments, C macros (`FALSE`/`TRUE`),
Ruby `VALUE`s (`Qfalse`/`Qtrue`), and C99 `bool`s (`false`/`true`), as
well.

169dc02e3c
2022-06-07 10:42:10 +09:00
Nobuyoshi Nakada
5460675bbc [ruby/rdoc] Use command array form of IO.popen always
So that an exception raises by non-existent command, not via shell.

fd94dce69d
2022-06-04 20:32:27 +09:00