2023-11-26 14:07:17 +00:00
|
|
|
# Redmine - project management software
|
|
|
|
|
# Copyright (C) 2006-2023 Jean-Philippe Lang
|
|
|
|
|
#
|
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
|
#
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
2010-04-09 23:42:41 +00:00
|
|
|
begin
|
|
|
|
|
require 'yard'
|
|
|
|
|
|
|
|
|
|
YARD::Rake::YardocTask.new do |t|
|
2014-09-07 03:11:35 +00:00
|
|
|
files = ['app/**/*.rb']
|
2023-11-18 04:18:59 +00:00
|
|
|
files += Dir['lib/**/*.rb', 'plugins/**/*.rb'].reject {|f| f.match(/test/)}
|
2010-08-07 15:11:15 +00:00
|
|
|
t.files = files
|
2010-08-07 15:11:26 +00:00
|
|
|
|
|
|
|
|
static_files = ['doc/CHANGELOG',
|
|
|
|
|
'doc/COPYING',
|
|
|
|
|
'doc/INSTALL',
|
|
|
|
|
'doc/RUNNING_TESTS',
|
|
|
|
|
'doc/UPGRADING'].join(',')
|
|
|
|
|
|
2018-06-08 00:55:41 +00:00
|
|
|
t.options += ['--no-private', '--output-dir', './doc/app', '--files', static_files]
|
2010-04-09 23:42:41 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
rescue LoadError
|
|
|
|
|
# yard not installed (gem install yard)
|
|
|
|
|
# http://yardoc.org
|
|
|
|
|
end
|