rdoc-markdown 0.21.1 → 0.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5103b919452fc2a8143563d54ce1c2e7ab3e4aaf2afdfe44d6057fcce9a2e5c4
4
- data.tar.gz: d8abe423253297371c5cb60c722bb24507c40d2a73ee9df37eca75a1b2dab60a
3
+ metadata.gz: feb14b11dc71c71a4e9e0af4a71f6d074706120984b7b5c6c890c126e8894e23
4
+ data.tar.gz: ea5b339442fe650abae65db6f5ce051a959c361056b651cde5fb7ae2b1daf778
5
5
  SHA512:
6
- metadata.gz: 3fa2a3b9e6cc98af9902d054f3ad4989e05639f9f55da4bd2d5e4f5a984d9e97833d1c4d06898439a00907ad783ec7329ad46c2c8ae614fcc46a001ceea444fd
7
- data.tar.gz: dedabad24735933e97d59127de66271a2a628287822e626c6eb4c5bf9631c613c512a05a511918c4a84fed34bffa61dd29166716fe61ae4badf38fa3e9220deb
6
+ metadata.gz: c0a5a47ff262d233b3bebb8f2016f1f31f3a0ce106ce3d25e68f46251bed353cc5df1a26e4534a9e92159e9ee458965d0864b91f94f4c48100f4f54d012824ce
7
+ data.tar.gz: a95167a0eed14716ce4014cd6330c73cb546fa45a553f747e883b64f7614c54638656ce6ce76a95bc6e64ae9f9f8051ceabcfd02c30c060e8d0aa1a94aa8ac85
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ ## 0.21.2
6
+
7
+ - Distinguish instance methods (`Class#method`) from class methods (`Class.method`) in search-index names, without changing their document paths or anchors.
8
+
3
9
  ## 0.21.1
4
10
 
5
11
  - Preserve hash-prefixed comments and literal Markdown headings in code examples when offsetting documentation headings.
data/README.md CHANGED
@@ -1,15 +1,8 @@
1
1
  # RDoc-Markdown
2
2
  RDoc plugin to generate markdown documentation and search index file (CSV).
3
3
 
4
- > [!CAUTION]
5
- > This gem relies on multiple hacks to generate "plausible" markdown documentation. This is **NOT PRODUCTION READY** — use at your own risk.
6
- >
7
- > RDoc maintainers are actively working on markdown support, things will improve with time...
8
-
9
4
  ## Motivation
10
- Markdown has become the de facto documentation standard. We can render markdown files on any device, possibly on a thermometer with a screen. And everyone knows markdown...
11
-
12
- It's a pity that RDoc can't output a proper markdown file. Somebody has to try to build it.
5
+ Markdown has become the de facto documentation standard. Rdoc should be able to output it too.
13
6
 
14
7
  ## Installation
15
8
 
@@ -34,7 +34,8 @@ module RDoc::Generator::Markdown::Index
34
34
  csv << [class_name, klass.type.capitalize, output_path]
35
35
 
36
36
  klass.method_list.select(&:display?).each do |method|
37
- csv << ["#{class_name}.#{method.name}", "Method", "#{output_path}##{method.aref}"]
37
+ separator = method.singleton ? "." : "#"
38
+ csv << ["#{class_name}#{separator}#{method.name}", "Method", "#{output_path}##{method.aref}"]
38
39
  end
39
40
  klass.constants.select(&:display?).sort.each do |const|
40
41
  name = const.name
@@ -5,6 +5,6 @@ module Rdoc
5
5
  # @private
6
6
  module Markdown
7
7
  # @private
8
- VERSION = "0.21.1"
8
+ VERSION = "0.21.2"
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdoc-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.1
4
+ version: 0.21.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav (Stas) Katkov
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  - !ruby/object:Gem::Version
209
209
  version: '0'
210
210
  requirements: []
211
- rubygems_version: 4.0.19
211
+ rubygems_version: 4.0.20
212
212
  specification_version: 4
213
213
  summary: RDoc plugin to generate markdown documentation
214
214
  test_files: []