Project

General

Profile

Actions

Patch #28943

closed

Remove RDoc tags

Patch #28943: Remove RDoc tags

Added by Sho HASHIMOTO over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Documentation
Target version:

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

Updated by Go MAEDA over 8 years ago Actions #1

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?

Updated by Sho HASHIMOTO over 8 years ago Actions #2

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 isn't used. Maybe yard recommends writing all documents.

Updated by Sho HASHIMOTO over 8 years ago Actions #3

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 @since tag after this ticket. It will be useful for plugin developper.

Updated by Go MAEDA over 8 years ago Actions #4

  • 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.

Updated by Go MAEDA over 8 years ago Actions #5

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

Setting target version to 4.1.0.

Updated by Sho HASHIMOTO over 8 years ago Actions #7

It is no problem for me! Thanks!

Updated by Go MAEDA over 8 years ago Actions #8

  • Subject changed from Remove :nodoc: to Remove RDoc tags

Updated by Go MAEDA over 8 years ago Actions #9

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

Committed. Thanks.

Updated by Sho HASHIMOTO over 8 years ago Actions #10

Thanks!!

Actions

Also available in: PDF Atom