[DRE-commits] [nanoc] 12/21: move old rake task to debian/ and generate documentation with it
Cédric Boutillier
boutil at moszumanska.debian.org
Thu Jan 5 14:04:56 UTC 2017
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository nanoc.
commit d03664735b642716165ee5b83282297830ab95b9
Author: Cédric Boutillier <boutil at debian.org>
Date: Wed Jan 4 23:43:34 2017 +0100
move old rake task to debian/ and generate documentation with it
---
debian/doc.rake | 16 ++++++++++++++++
debian/rules | 2 +-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/debian/doc.rake b/debian/doc.rake
new file mode 100644
index 0000000..69ec842
--- /dev/null
+++ b/debian/doc.rake
@@ -0,0 +1,16 @@
+require 'yard'
+
+YARD::Rake::YardocTask.new(:doc) do |yard|
+ yard.files = Dir['lib/**/*.rb']
+ yard.options = [
+ '--markup', 'markdown',
+ '--markup-provider', 'kramdown',
+ '--charset', 'utf-8',
+ '--readme', 'README.md',
+ '--files', 'NEWS.md,LICENSE',
+ '--output-dir', 'doc/yardoc',
+# '--template-path', 'doc/yardoc_templates',
+# '--load', 'doc/yardoc_handlers/identifier.rb',
+ '--query', '@api.text != "private"'
+ ]
+end
diff --git a/debian/rules b/debian/rules
index 40377e3..30c7f25 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,7 +18,7 @@ override_dh_auto_install:
dh_auto_install
#mkdir doc/yardoc_handlers
#ln -s ../../debian/identifier.rb doc/yardoc_handlers/identifier.rb
- rake -f tasks/doc.rake doc
+ rake -f debian/doc.rake doc
override_dh_installman:
mkdir man/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/nanoc.git
More information about the Pkg-ruby-extras-commits
mailing list