Project

General

Profile

Actions

Patch #28943

closed

Remove RDoc tags

Added by Sho HASHIMOTO almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Documentation
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I was removed :nodoc: from *.rb because yard doesn't support :nodoc: and :nodoc: shows in generated html.


Files

remove_nodoc.patch (4.9 KB) remove_nodoc.patch Sho HASHIMOTO, 2018-06-04 17:52
Actions #1

Updated by Go MAEDA almost 6 years ago

I can not be sure if we should merge the change.

Currently, the codebase does not contain any Yard tags. And the author of Yard wrote that using "@private" tag is not recommended. Also, the patch changes the output of rdoc.

Sho HASHIMOTO, do you think those are OK?

Actions #2

Updated by Sho HASHIMOTO almost 6 years ago

Currently, the codebase does not contain any Yard tags.

umm... Redmine is already using Yard tags like these. rdoc can't parse normaly. I think supporting both(rdoc and yard) is unhappy. We can't use all of on one side only tag like :nodoc:, @param, ...

"@private" tag is not recommended.

I knew. Please remove :nodoc: if yard is taken and private private education loan isn't used. Maybe yard recommends writing all documents.

Actions #3

Updated by Sho HASHIMOTO almost 6 years ago

Redmine is not using important rdoc tag like call-seq, include, ...
Maybe, using yard will have only few problems.

$ egrep '#\s*:[a-zA-Z]+:' **/*.rb
lib/plugins/open_id_authentication/lib/open_id_authentication.rb:    def using_open_id?(identifier = nil) #:doc:
lib/plugins/open_id_authentication/lib/open_id_authentication.rb:    def authenticate_with_open_id(identifier = nil, options = {}, &block) #:doc:
lib/redmine/core_ext/string.rb:class String #:nodoc:
lib/redmine/core_ext/string/conversions.rb:module Redmine #:nodoc:
lib/redmine/core_ext/string/conversions.rb:  module CoreExtensions #:nodoc:
lib/redmine/core_ext/string/conversions.rb:    module String #:nodoc:
lib/redmine/core_ext/string/inflections.rb:module Redmine #:nodoc:
lib/redmine/core_ext/string/inflections.rb:  module CoreExtensions #:nodoc:
lib/redmine/core_ext/string/inflections.rb:    module String #:nodoc:
lib/redmine/helpers/gantt.rb:      # :nodoc:
lib/redmine/menu_manager.rb:    class MenuError < StandardError #:nodoc:
lib/redmine/plugin.rb:module Redmine #:nodoc:
lib/redmine/scm/adapters/abstract_adapter.rb:      class AbstractAdapter #:nodoc:
lib/redmine/scm/adapters/command_failed.rb:      class CommandFailed < StandardError #:nodoc:
lib/redmine/scm/adapters/cvs_adapter.rb:        # :pserver:anonymous@foo.bar:/path => /path
lib/redmine/scm/adapters/cvs_adapter.rb:        # :ext:cvsservername:/path => /path
lib/redmine/version.rb:  module VERSION #:nodoc:
test/mocks/open_id_authentication_mock.rb:    def authenticate_with_open_id(identity_url = params[:openid_url], options = {}) #:doc:

And I want to add Marc Since tag after this ticket. It will be useful for plugin developper.

Actions #4

Updated by Go MAEDA almost 6 years ago

  • Target version set to Candidate for next major release

Sho HASHIMOTO wrote:

umm... Redmine is already using Yard tags like these. rdoc can't parse normaly. I think supporting both(rdoc and yard) is unhappy. We can't use all of on one side only tag like :nodoc:, @param, ...

I had overlooked that. Thank you for pointing it out.

As Sho HASHIMOTO wrote, it is obvious that the document of Redmine is supposed to be generated with Yard because Redmine has a rake task "rake yard" and uses some Yard tags.

Actions #5

Updated by Go MAEDA almost 6 years ago

  • Target version changed from Candidate for next major release to 4.1.0

Setting target version to 4.1.0.

Actions #7

Updated by Sho HASHIMOTO almost 6 years ago

It is no problem for me! Thanks!

Actions #8

Updated by Go MAEDA almost 6 years ago

  • Subject changed from Remove :nodoc: to Remove RDoc tags
Actions #9

Updated by Go MAEDA almost 6 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Target version changed from 4.1.0 to 4.0.0

Committed. Thanks.

Actions #10

Updated by Sho HASHIMOTO almost 6 years ago

Thanks!!

Actions

Also available in: Atom PDF