Point to new API documentation URL
authorPeter Hutterer <peter.hutterer@who-t.net>
Sun, 21 Jul 2013 22:31:36 +0000 (08:31 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 21 Jul 2013 22:34:55 +0000 (08:34 +1000)
And fix up the tool to publish it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
README.md
tools/publish-doc

index 7dec14f..98d0b76 100644 (file)
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ The eventual goal is that libevdev wraps all ioctls available to evdev
 devices, thus making direct access unnecessary.
 
 Go here for the API documentation:
-http://whot.github.io/libevdev/
+http://www.freedesktop.org/software/libevdev/doc/latest/
 
 File bugs in the freedesktop.org bugzilla:
 https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev
index 66777ab..2dcd45e 100755 (executable)
@@ -1,11 +1,7 @@
 #!/bin/bash
 
-git checkout master
+set -e
+
 make
-mv doc/html doc/publish
-git checkout gh-pages
-rm -rf doc/html
-mv doc/publish doc/html
-git add doc/html
-git commit -asm "Documentation update for `git log -n 1 --format="format:%h" master`"
-git checkout master
+rsync --delete -avz doc/html/ freedesktop.org:/srv/www.freedesktop.org/www/software/libevdev/doc/latest
+