add build date to rendered doc
authorChristian Weiske <cweiske@cweiske.de>
Mon, 13 Jul 2015 19:07:06 +0000 (21:07 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Mon, 13 Jul 2015 19:07:06 +0000 (21:07 +0200)
README.rst
build.sh

index c066bf1a9dcacb09fb50f5bb4d12836d7121ee7f..4c33e7e40e3261c4aaf674bf86006ee80c0c197f 100644 (file)
@@ -50,6 +50,8 @@ About
 This documentation has been written by Christian Weiske,
 cweiske+ouya@cweiske.de.
 
+Last update: ##UPDATE##
+
 
 License
 =======
index 3c4854e44e1c86e31c2b9d277bea6522458af677..5e526f029581e6adf82b5a1637010140a2962e21 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -1,10 +1,11 @@
 #!/bin/sh
 #rst2html README.rst ouya-store-api-docs.htm
+# --title: workaround for https://github.com/marianoguerra/rst2html5/issues/70
 rst2html5\
  --bootstrap-css\
  --stylesheet-path=styles.css --embed-stylesheet\
+ --title="OUYA store API documentation"\
  README.rst ouya-store-api-docs.htm
 
-# workaround for https://github.com/marianoguerra/rst2html5/issues/70
-sed -i 's#<title></title>#<title>OUYA store API documentation</title>#'\
- ouya-store-api-docs.htm
+# add current date to rendered docs
+sed -i "s/##UPDATE##/`date -Is`/" ouya-store-api-docs.htm