docs: hide revision and build date from HTML pages 03/9003/1
authorRyota MIBU <r-mibu@cq.jp.nec.com>
Tue, 2 Feb 2016 08:08:06 +0000 (17:08 +0900)
committerRyota MIBU <r-mibu@cq.jp.nec.com>
Tue, 2 Feb 2016 08:08:06 +0000 (17:08 +0900)
Revisions and build dates are stamped in each source rst files and show
up in each HTML pages (Some pages have multiple stamps...). We can see
document version in URL path of artifact and those build info by
clicking 'Show Source' as well.

Let's remove revisions and build dates from HTML pages, but remain in
source files so that developers can identify sources.

Change-Id: Ibd511137ec17c614c9aa624a7190e7ccfc568b7f
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
utils/docs-build.sh

index 6c863cb..e5d6b4a 100755 (executable)
@@ -78,7 +78,7 @@ function add_html_notes() {
             echo
             sed -i "s/ _sha1_/ $git_sha1/g" "$file"
         fi
-        sed -i -e "\$a\\\n.. only:: html\n$html_notes" "$file"
+        sed -i -e "\$a\\\n..\n$html_notes" "$file"
     done
 }