From 7ee9107d8eed4f76081827a7268d23e962e07820 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Fri, 23 Aug 2013 17:45:21 +0300 Subject: [PATCH] docs: add the documentation URL and a makefile recipe for documentation updates --- Makefile.am | 22 ++++++++++++++++++++++ docs/reference/libgsignon-glib-docs.xml | 5 +++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index b31445a..5fdae8f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,6 +21,9 @@ dist_noinst_DATA = \ m4/introspection.m4 dist-hook: git-changelog-hook + @echo + @echo "==== Run 'make update-online-doc' to update online documentation ====" + @echo git-changelog-hook: Makefile $(AM_V_at)if $(top_srcdir)/build-aux/missing --run git \ @@ -39,3 +42,22 @@ valgrind: EXTRA_DIST = dists tools .PHONY: git-changelog-hook + +update-online-doc: + @tar zxf $(PACKAGE)-$(VERSION).tar.gz && \ + pushd . > /dev/null && \ + cd .. && \ + git clone https://code.google.com/p/accounts-sso.gsignon-docs/ ; \ + cd accounts-sso.gsignon-docs && \ + git pull ; \ + mkdir -p $(PACKAGE) && \ + rm -rf $(PACKAGE)/* && \ + popd > /dev/null && \ + cp -rf $(PACKAGE)-$(VERSION)/docs/reference/html/* ../accounts-sso.gsignon-docs/$(PACKAGE)/ && \ + pushd . > /dev/null && \ + cd ../accounts-sso.gsignon-docs && \ + git add $(PACKAGE)/* && \ + git commit -m "Updated documentation for $(PACKAGE) to version $(VERSION)" && \ + git push ; \ + popd > /dev/null && \ + rm -rf $(PACKAGE)-$(VERSION) \ No newline at end of file diff --git a/docs/reference/libgsignon-glib-docs.xml b/docs/reference/libgsignon-glib-docs.xml index cb83094..1685173 100644 --- a/docs/reference/libgsignon-glib-docs.xml +++ b/docs/reference/libgsignon-glib-docs.xml @@ -9,8 +9,9 @@ libgsignon-glib Reference Manual This document is for libgsignon-glib, version &version;. The latest - version of this documentation can be built from the source code at - https://code.google.com/p/accounts-sso/source/checkout?repo=libgsignon-glib. + version of this documentation can be found on-line at + + http://gsignon-docs.accounts-sso.googlecode.com/git/libgsignon-glib/index.html. -- 2.34.1