aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/rdoc] [DOC] Undocument internal constants [ci skip]Nobuyoshi Nakada2022-06-071-2/+2
| | | | https://github.com/ruby/rdoc/commit/6d7bf24bb8
* [ruby/rdoc] Allow boolean arguments to `rb_attr` and `rb_define_attr`Nobuyoshi Nakada2022-06-071-8/+13
| | | | | | | | | | 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. https://github.com/ruby/rdoc/commit/169dc02e3c
* [ruby/rdoc] Use command array form of `IO.popen` alwaysNobuyoshi Nakada2022-06-041-46/+4
| | | | | | So that an exception raises by non-existent command, not via shell. https://github.com/ruby/rdoc/commit/fd94dce69d
* [ruby/rdoc] Make all documents at the top level `extra_rdoc_files` [ci skip]Nobuyoshi Nakada2022-06-041-12/+1
| | | | https://github.com/ruby/rdoc/commit/6b1a011243
* [ruby/rdoc] Remove `RDoc::RI::Driver#in_path?`Nobuyoshi Nakada2022-06-041-11/+0
| | | | https://github.com/ruby/rdoc/commit/83051403d6
* [ruby/rdoc] Stop checking if pager command foundNobuyoshi Nakada2022-06-041-4/+0
| | | | | | `IO.popen` does that job. https://github.com/ruby/rdoc/commit/3bbbc5ac84
* [ruby/rdoc] Remove never used win32consoleNobuyoshi Nakada2022-06-041-5/+0
| | | | https://github.com/ruby/rdoc/commit/47a1aef447
* [ruby/rdoc] Fix dead link in RDoc::MarkupPeter Zhu2022-05-121-1/+1
| | | | https://github.com/ruby/rdoc/commit/521c9ebd29
* [ruby/rdoc] Fix a typo [ci skip]Kazuhiro NISHIYAMA2022-04-251-1/+1
| | | | https://github.com/ruby/rdoc/commit/b42c4a2fe2
* [ruby/rdoc] Fix links in docsPeter Zhu2022-04-151-4/+4
| | | | | | | www.ruby-lang.org without the leading https:// will generate an incorrect link because it will be treated as a relative link. https://github.com/ruby/rdoc/commit/28f32149b6
* [ruby/rdoc] Apply matching word pairs to underscore-methodsNobuyoshi Nakada2022-04-141-2/+3
| | | | | | | Protected characters with `PROTECT_ATTR` should not have special roles. https://github.com/ruby/rdoc/commit/c318af0ea2
* [ruby/rdoc] Allow cross references to methods including underscoresNobuyoshi Nakada2022-04-141-1/+7
| | | | | | | As underscores are masked to "protect" from the conversion, consider also `PROTECT_ATTR` as a word character. https://github.com/ruby/rdoc/commit/db58bb5170
* [ruby/rdoc] Only parse valid URLsPeter Zhu2022-04-131-1/+3
| | | | | | | | | 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 (https://www.ietf.org/rfc/rfc3986.txt). https://github.com/ruby/rdoc/commit/2bd8fcdd4f
* [ruby/rdoc] Expand the enclosing tree of the current fileNobuyoshi Nakada2022-03-221-1/+4
| | | | https://github.com/ruby/rdoc/commit/f9f90ef2ff
* [ruby/rdoc] Fold files in the page directoryNobuyoshi Nakada2022-03-221-1/+18
| | | | https://github.com/ruby/rdoc/commit/b7b4cdab6c
* [ruby/rdoc] Allow method source code to scroll [ci skip]Nobuyoshi Nakada2022-03-201-1/+1
| | | | https://github.com/ruby/rdoc/commit/1bb0496c53
* [ruby/rdoc] Use the custom style `details summary` only in `nav-section`Nobuyoshi Nakada2022-03-201-16/+19
| | | | https://github.com/ruby/rdoc/commit/7736d3a89c
* [ruby/rdoc] Fix full name of known classNobuyoshi Nakada2022-03-161-2/+3
| | | | | | | | | | | | | | 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`. https://github.com/ruby/rdoc/commit/3a8d6df562
* [ruby/rdoc] Start with open when only one visible class/moduleNobuyoshi Nakada2022-03-141-8/+10
| | | | https://github.com/ruby/rdoc/commit/6bb93001db
* [ruby/rdoc] Fold class and module indexNobuyoshi Nakada2022-03-142-3/+41
| | | | https://github.com/ruby/rdoc/commit/4c7c46fcc4
* [ruby/rdoc] Refine `pretty_print`Nobuyoshi Nakada2022-03-133-2/+7
| | | | https://github.com/ruby/rdoc/commit/acb91ea74a
* [ruby/rdoc] Clean documents for backwards compatibilityNobuyoshi Nakada2022-03-132-5/+3
| | | | https://github.com/ruby/rdoc/commit/23e61a208e
* [ruby/rdoc] Scrollable sidebarMasafumi Koba2022-03-111-0/+4
| | | | | | | This change makes the sidebar scrollable via `position: sticky` and `overflow: auto`; See also <https://caniuse.com/?search=sticky> https://github.com/ruby/rdoc/commit/4d52e24840
* [ruby/rdoc] Support crossref of methods with multiple argumentsPeter Zhu2022-03-091-1/+11
| | | | | | | | | | | | | | | | | | 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> https://github.com/ruby/rdoc/commit/05a2b2222b
* [ruby/rdoc] Use `Marshal.load io` instead of `Marshal.load io.read`Kazuhiro NISHIYAMA2022-03-021-4/+4
| | | | https://github.com/ruby/rdoc/commit/135198a31c
* [ruby/rdoc] Prefer `require 'cgi/util'` instead of `require 'cgi'`Yusuke Endoh2022-02-225-5/+5
| | | | | | | RDoc is using only CGI.escape, escapeHTML, and unescape. We don't have to load the whole source code of cgi gem. https://github.com/ruby/rdoc/commit/d096222cc2
* [ruby/rdoc] Dump plain objects as `RDoc::Options`Nobuyoshi Nakada2022-02-122-19/+22
| | | | | | So that the generated `.rdoc_options` file is loadable. https://github.com/ruby/rdoc/commit/6cf6e1647b
* [ruby/rdoc] Update generated filesNobuyoshi Nakada2022-02-123-10/+26
|
* [ruby/rdoc] Relative loading for easier development ↵Ulysse Buonomo2022-02-1216-75/+88
| | | | | | | | | | | | | | | (https://github.com/ruby/rdoc/pull/821) 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 https://github.com/ruby/rdoc/pull/817. Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com> https://github.com/ruby/rdoc/commit/aa41bd48eb Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* [ruby/rdoc] Optimize RawLine by using a regexp instead of negative ↵Yusuke Endoh2022-02-121-37/+8
| | | | | | | | | | | | look-ahead rule This improves the performance in some cases. `rdoc .../gems/sinatra-2.1.0/README.md` takes 10.5 sec. before this change, and 7.1 sec. after this change. `make rdoc` of ruby/ruby takes 19.3 sec. before this change, 18.1 sec. after this change. https://github.com/ruby/rdoc/commit/7cf8281e3e
* [ruby/rdoc] Simplify attribute exclusiveness conditionsNobuyoshi Nakada2022-02-091-24/+4
| | | | https://github.com/ruby/rdoc/commit/45e33c4b85
* [ruby/rdoc] Get rid of ruby-mode.el confusionsNobuyoshi Nakada2022-02-091-1/+2
| | | | https://github.com/ruby/rdoc/commit/63fac51198
* [ruby/rdoc] Allow cross references to negation operator methodNobuyoshi Nakada2022-02-091-1/+1
| | | | https://github.com/ruby/rdoc/commit/69cafb213a
* [ruby/rdoc] Allow cross references to logical operator methodsNobuyoshi Nakada2022-02-091-1/+1
| | | | https://github.com/ruby/rdoc/commit/17c0da304d
* [ruby/rdoc] Skip parentheses on singleton class declarationSoutaro Matsumoto2022-02-091-1/+24
| | | | https://github.com/ruby/rdoc/commit/b6c6d4f978
* [ruby/rdoc] Allow cross references to backtick methodNobuyoshi Nakada2022-02-091-1/+1
| | | | https://github.com/ruby/rdoc/commit/52c33157f1
* [ruby/rdoc] Allow cross references to operator methodsNobuyoshi Nakada2022-02-091-1/+1
| | | | | | | Make operator methods, e.g., `Regexp#=~`, `Integer#<=>`, cross reference targets. https://github.com/ruby/rdoc/commit/5d332a4128
* [ruby/rdoc] Support all struct definition functionsNobuyoshi Nakada2022-02-091-71/+61
| | | | | | | | Currently only `rb_struct_define_without_accessor` is supported by https://github.com/ruby/rdoc/pull/73. We should support other three functions too. https://github.com/ruby/rdoc/commit/d42288f06c
* [ruby/rdoc] Fix typo in RDoc::Task examplegemmaro2022-01-241-1/+1
| | | | https://github.com/ruby/rdoc/commit/7a77e55c2a
* [ruby/rdoc] Version 6.4.0aycabta2021-12-241-1/+1
| | | | https://github.com/ruby/rdoc/commit/4797f28df8
* [ruby/rdoc] Resolve class and method of the same name correctlyaycabta2021-12-091-20/+28
| | | | https://github.com/ruby/rdoc/commit/1e16284fe5
* [ruby/rdoc] fix: alias to method with call-seqMike Dalessio2021-10-161-1/+1
| | | | | | | | | | | | | 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. https://github.com/ruby/rdoc/commit/5ce2789b6f
* [ruby/rdoc] Support linking #==Mike Dalessio2021-10-161-1/+1
| | | | | | | | | See related commits: - ebc66662 for #=== - 4943d208 for #[], #[]=, #<<, and #>> https://github.com/ruby/rdoc/commit/8e47f7840a
* [ruby/rdoc] feat: add support for :category: on C functionsMike Dalessio2021-10-163-0/+10
| | | | https://github.com/ruby/rdoc/commit/45c92005fe
* [ruby/rdoc] fix: comments in C files use the global markup optionMike Dalessio2021-10-161-1/+5
| | | | | | | | Previously, Parser::C comments all defaulted to "rdoc" format, even when the user had set a different default with the `--markup=<choice>` option. https://github.com/ruby/rdoc/commit/4643b08a26
* [ruby/rdoc] extract Comment creation in Parser::CMike Dalessio2021-10-161-9/+12
| | | | | | This is a prefactor for fixing comment format handling. https://github.com/ruby/rdoc/commit/a3d366feed
* [ruby/rdoc] Update SourceCodePro font filesaycabta2021-10-112-0/+0
| | | | https://github.com/ruby/rdoc/commit/d3201d0d47
* Removed needless rake and bundler files for rdocHiroshi SHIBATA2021-09-281-107/+0
|
* [ruby/rdoc] Convert upper case copyright and registered marksNobuyoshi Nakada2021-09-111-2/+2
| | | | https://github.com/ruby/rdoc/commit/3bca7dc093
* [ruby/rdoc] Convert tick double quote in character entity referencesNobuyoshi Nakada2021-09-111-1/+1
| | | | https://github.com/ruby/rdoc/commit/6ed889aac9