[Pkg-privacy-commits] [pond] 03/03: build documentation with jekyll
Ximin Luo
infinity0 at debian.org
Tue Oct 6 10:55:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository pond.
commit 6a91b46c31fc3324881b10f4d6809fe83a940085
Author: Ximin Luo <infinity0 at debian.org>
Date: Tue Oct 6 12:48:20 2015 +0200
build documentation with jekyll
---
debian/control | 3 ++-
debian/pond.doc-base | 8 ++++++++
debian/pond.docs | 1 +
debian/rules | 3 +++
4 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index d910f50..72d76ec 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,8 @@ Build-Depends: debhelper (>= 9), dh-golang, golang-go,
golang-goprotobuf-dev,
golang-golang-x-net-dev,
libtspi-dev,
- help2man
+ help2man,
+ jekyll
Standards-Version: 3.9.6
Homepage: https://github.com/agl/pond
Vcs-Git: https://anonscm.debian.org/git/pkg-privacy/packages/pond.git
diff --git a/debian/pond.doc-base b/debian/pond.doc-base
new file mode 100644
index 0000000..f6e30d7
--- /dev/null
+++ b/debian/pond.doc-base
@@ -0,0 +1,8 @@
+Document: pond
+Title: Pond Documentation
+Author: Adam Langley
+Section: Network/Communication
+
+Format: HTML
+Index: /usr/share/doc/pond/html/index.html
+Files: /usr/share/doc/pond/html
diff --git a/debian/pond.docs b/debian/pond.docs
new file mode 100644
index 0000000..1936cc1
--- /dev/null
+++ b/debian/pond.docs
@@ -0,0 +1 @@
+html
diff --git a/debian/rules b/debian/rules
index 0856880..fbb6488 100755
--- a/debian/rules
+++ b/debian/rules
@@ -43,6 +43,8 @@ MKMAN = H2M_VERSION=$(DEB_VERSION_UPSTREAM) GOPATH=$(DH_BUILDDIR) debian/mk-manp
override_dh_auto_build:
cd $(DH_BUILDDIR) && GOPATH=$$PWD go install $(GOFLAGS) -v $(DH_GOPKG_SUBDIRS:%=$(DH_GOPKG)/%)
+ # docs
+ jekyll build -s doc -d html
for i in $(POND_BIN_RENAME); do ln -s $$i $(DH_BUILDDIR)/bin/pond-$$i; done
rm -f debian/manpages
$(MKMAN) pond-client "run a pond client"
@@ -61,4 +63,5 @@ override_dh_auto_install:
override_dh_auto_clean:
dh_auto_clean
+ rm -rf html
rm -f debian/*.1 debian/manpages
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/pond.git
More information about the Pkg-privacy-commits
mailing list