path: root/test/rdoc
AgeCommit message (Collapse)Author
2022-04-14[ruby/rdoc] Apply matching word pairs to underscore-methodsNobuyoshi Nakada
Protected characters with `PROTECT_ATTR` should not have special roles.
2022-04-14[ruby/rdoc] Allow cross references to methods including underscoresNobuyoshi Nakada
As underscores are masked to "protect" from the conversion, consider also `PROTECT_ATTR` as a word character.
2022-04-13[ruby/rdoc] Only parse valid URLsPeter Zhu
Only valid characters for URLs should be used for generating URLs. A list of valid characters can be found in sections 2.2 and 2.3 of IETF RFC 3986 (
2022-03-22[ruby/rdoc] Expand the enclosing tree of the current fileNobuyoshi Nakada
2022-03-22[ruby/rdoc] Fold files in the page directoryNobuyoshi Nakada
2022-03-22[ruby/rdoc] Add test_generate_pageNobuyoshi Nakada
2022-03-16[ruby/rdoc] Fix full name of known classNobuyoshi Nakada
Properly set the name of `File::Constants`, which is the only name with a namespace in `RDoc::KNOWN_CLASSES`, and fixes longstanding bug that `File::Constants` becomes `File::File::Constants`. When it is generated by `rb_file_const` in dir.c, `name` is set to the qualified name as same as `full_name`, and generated in the normal way in file.c later, already set `full_name` is cleared and `name` will be constructed from the enclosing namespace and the `name`. It will results in duplicated namespace, `File::File::Constants`.
2022-03-14[ruby/rdoc] Fold class and module indexNobuyoshi Nakada
2022-03-09[ruby/rdoc] Support crossref of methods with multiple argumentsPeter Zhu
For example, consider the following markup: C1#m(a, b) Before this patch, it generated this HTML: <p><a href=\"C1.html#method-i-m\"><code>C1#m</code></a>(a, b)</p> Which places the method arguments outside of the link. Now it generates this HTML: <a href=\"C1.html#method-i-m\"><code>C1#m(a, b)</code></a>
2022-02-12[ruby/rdoc] Load YAML library for each testNobuyoshi Nakada
2022-02-12[ruby/rdoc] Dump plain objects as `RDoc::Options`Nobuyoshi Nakada
So that the generated `.rdoc_options` file is loadable.
2022-02-12[ruby/rdoc] Fix a test method nameNobuyoshi Nakada
2022-02-12[ruby/rdoc] Relative loading for easier development ↵Ulysse Buonomo
( This patch makes sure we only load relative code. Hence when coding or testing rdoc, we'll be sure to always be using the correct code. Discussion started at Signed-off-by: Ulysse Buonomo <> Co-authored-by: Nobuyoshi Nakada <>
2022-02-09[ruby/rdoc] Get rid of ruby-mode.el confusionsNobuyoshi Nakada
2022-02-09[ruby/rdoc] Allow cross references to negation operator methodNobuyoshi Nakada
2022-02-09[ruby/rdoc] Allow cross references to logical operator methodsNobuyoshi Nakada
2022-02-09[ruby/rdoc] Skip parentheses on singleton class declarationSoutaro Matsumoto
2022-02-09[ruby/rdoc] Allow cross references to backtick methodNobuyoshi Nakada
2022-02-09[ruby/rdoc] Allow cross references to operator methodsNobuyoshi Nakada
Make operator methods, e.g., `Regexp#=~`, `Integer#<=>`, cross reference targets.
2022-02-09[ruby/rdoc] Support all struct definition functionsNobuyoshi Nakada
Currently only `rb_struct_define_without_accessor` is supported by We should support other three functions too.
2021-12-09[ruby/rdoc] Support addition Object class when adding methods to top levelaycabta
2021-12-09[ruby/rdoc] Resolve class and method of the same name correctlyaycabta
2021-11-04[ruby/rdoc] Fix typos in test method names [ci skip]Nobuyoshi Nakada
2021-10-16[ruby/rdoc] fix: alias to method with call-seqMike Dalessio
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.
2021-10-16[ruby/rdoc] Support linking #==Mike Dalessio
See related commits: - ebc66662 for #=== - 4943d208 for #[], #[]=, #<<, and #>>
2021-10-16[ruby/rdoc] feat: add support for :category: on C functionsMike Dalessio
2021-10-16[ruby/rdoc] fix: comments in C files use the global markup optionMike Dalessio
Previously, Parser::C comments all defaulted to "rdoc" format, even when the user had set a different default with the `--markup=<choice>` option.
2021-10-16[ruby/rdoc] test: add coverage for comment format in a C fileMike Dalessio
2021-09-13Fixed leaked file descriptorHiroshi SHIBATA
Leaked file descriptor: TestRDocGeneratorDarkfish#test_template_stylesheets: 11 : #<File:./tmp20210913-30865-7c4ey8/hoge20210913-30865-evm2uo.css>
2021-09-11[ruby/rdoc] Convert upper case copyright and registered marksNobuyoshi Nakada
2021-09-11[ruby/rdoc] Convert tick double quote in character entity referencesNobuyoshi Nakada
2021-09-11[ruby/rdoc] Convert a backtick to an open single quoteNobuyoshi Nakada
2021-09-11[ruby/rdoc] Convert single quotes in character entity referencesNobuyoshi Nakada
As well as double quotes.
2021-09-06Removed obsoleted commentHiroshi SHIBATA
2021-09-06Removed redundant testsHiroshi SHIBATA
Notes: Merged:
2021-09-06Removed MiniTest::Assertion from test/rdocHiroshi SHIBATA
Notes: Merged:
2021-09-03[ruby/rdoc] Add tests for `--template-stylesheets` optionNobuyoshi Nakada
Also flattens `@options.template_stylesheets` when parsing the command lines. Fixes #205 Fixes #828 too
2021-09-03[ruby/rdoc] Try to load WEBrick for testingVít Ondruch
This is in similar vein Rake is optionally loaded in:
2021-09-03[ruby/rdoc] s/minitest/test-unit/gHiroshi SHIBATA
2021-09-03[ruby/rdoc] Removed duplicated docHiroshi SHIBATA
2021-09-02[ruby/rdoc] Move RDoc::RDoc#load_options to RDoc::RDoc.load_optionsaycabta
2021-07-05[ruby/rdoc] Fix links without pathsNobuyoshi Nakada
2021-07-05[ruby/rdoc] Fix for explicit http linkNobuyoshi Nakada
2021-07-05[ruby/rdoc] Allow a label in a link to another document textNobuyoshi Nakada
2021-07-05[ruby/rdoc] Fix assertions which look very likely unintendedNobuyoshi Nakada
2021-07-05[ruby/rdoc] Support ActiveSupport::Concern.includedaycabta
ref. Co-authored-by: Fumiaki MATSUSHIMA <>
2021-07-05[ruby/rdoc] Prefer omit to pendNobuyoshi Nakada
These conditions are not temporary, rather platform dependent.
2021-07-05[ruby/rdoc] Fix chained inclusion ancestors_ofUlysse Buonomo
Fixes #814 Signed-off-by: Ulysse Buonomo <>
2021-06-23Discard RDOCOPT environment variable to make tests stableNobuyoshi Nakada
2021-06-23Dispose the global rubygems configuration wholelyNobuyoshi Nakada