[DRE-commits] [ruby-sentry-raven] 03/04: Generate docs

Balasankar C balasankarc-guest at moszumanska.debian.org
Sat Jan 30 08:58:10 UTC 2016


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository ruby-sentry-raven.

commit f500c2da425c72e7fa218780dbf7d61779b2fd31
Author: Balasankar C <balasankarc at autistici.org>
Date:   Sat Jan 30 14:25:18 2016 +0530

    Generate docs
---
 debian/links                      |  1 +
 debian/ruby-sentry-raven.doc-base |  8 ++++++++
 debian/ruby-sentry-raven.docs     |  1 +
 debian/rules                      | 11 +++++++++++
 4 files changed, 21 insertions(+)

diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..150d38a
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+/usr/share/javascript/jquery/jquery.js usr/share/doc/ruby-sentry-raven/doc/js/jquery.js
diff --git a/debian/ruby-sentry-raven.doc-base b/debian/ruby-sentry-raven.doc-base
new file mode 100644
index 0000000..e00781b
--- /dev/null
+++ b/debian/ruby-sentry-raven.doc-base
@@ -0,0 +1,8 @@
+Document: sentry-raven-doc
+Title: Debian Sentry Raven manual
+Author: Sentry Team
+Section: Programming/Ruby
+
+Format: HTML
+Index: /usr/share/doc/ruby-sentry-raven/doc/index.html
+Files: /usr/share/doc/ruby-sentry-raven/doc/*
diff --git a/debian/ruby-sentry-raven.docs b/debian/ruby-sentry-raven.docs
index b43bf86..b3f4d9c 100644
--- a/debian/ruby-sentry-raven.docs
+++ b/debian/ruby-sentry-raven.docs
@@ -1 +1,2 @@
 README.md
+doc/
diff --git a/debian/rules b/debian/rules
index 3454d59..0daf338 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,3 +4,14 @@ export GEM2DEB_TEST_RUNNER = --check-dependencies
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_auto_build:
+	dh_auto_build
+	rdoc --main=README.md --exclude=commands lib
+	rm -rf usr/share/doc/ruby-sentry-raven/doc/js/jquery.js
+	rm -rf doc/js/navigation.js.gz doc/js/search_index.js.gz doc/js/searcher.js.gz doc/js/searcher.js.gz
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf doc
+	rm -rf Gemfile.lock

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-sentry-raven.git



More information about the Pkg-ruby-extras-commits mailing list