From cbc40bb130fb52f1990ce1fd41e834a5f3fdbcdd Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Sat, 3 Aug 2024 11:29:40 +0100 Subject: [PATCH] Sync rdoc --- .../generator/template/darkfish/_head.rhtml | 1 + .../template/darkfish/_sidebar_toggle.rhtml | 3 + .../generator/template/darkfish/class.rhtml | 4 +- .../generator/template/darkfish/css/rdoc.css | 75 +++++++++++++++---- .../generator/template/darkfish/index.rhtml | 4 +- .../template/darkfish/js/darkfish.js | 17 +++++ .../generator/template/darkfish/page.rhtml | 5 +- .../template/darkfish/servlet_not_found.rhtml | 5 +- .../template/darkfish/servlet_root.rhtml | 4 +- .../template/darkfish/table_of_contents.rhtml | 9 +++ lib/rdoc/parser/ruby.rb | 3 + lib/rdoc/rd/block_parser.rb | 8 +- lib/rdoc/rd/inline_parser.rb | 8 +- lib/rdoc/rdoc.gemspec | 3 +- test/rdoc/test_rdoc_rdoc.rb | 2 +- 15 files changed, 115 insertions(+), 36 deletions(-) create mode 100644 lib/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml diff --git a/lib/rdoc/generator/template/darkfish/_head.rhtml b/lib/rdoc/generator/template/darkfish/_head.rhtml index d5aed3e9ef..69649ad3b5 100644 --- a/lib/rdoc/generator/template/darkfish/_head.rhtml +++ b/lib/rdoc/generator/template/darkfish/_head.rhtml @@ -1,4 +1,5 @@ + <%= h @title %> diff --git a/lib/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml b/lib/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml new file mode 100644 index 0000000000..b51448a8f7 --- /dev/null +++ b/lib/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml @@ -0,0 +1,3 @@ + diff --git a/lib/rdoc/generator/template/darkfish/class.rhtml b/lib/rdoc/generator/template/darkfish/class.rhtml index d6510336df..915b2f9c9f 100644 --- a/lib/rdoc/generator/template/darkfish/class.rhtml +++ b/lib/rdoc/generator/template/darkfish/class.rhtml @@ -1,5 +1,7 @@ -