* [gentoo-commits] proj/R_overlay:master commit in: scripts/, /, doc/rst/, doc/html/
@ 2012-08-20 11:41 André Erdmann
0 siblings, 0 replies; only message in thread
From: André Erdmann @ 2012-08-20 11:41 UTC (permalink / raw
To: gentoo-commits
commit: 14c9bc32aca7c135f77aedfec416558ef6ff383d
Author: André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Mon Aug 20 11:41:04 2012 +0000
Commit: André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Mon Aug 20 11:41:04 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=14c9bc32
doc: remove ..header directive, add html title
---
Makefile | 4 +++-
doc/html/usage.html | 11 ++++++-----
doc/rst/usage.rst | 5 -----
scripts/roverlay_rst2html.sh | 13 +++++++++++++
4 files changed, 22 insertions(+), 11 deletions(-)
diff --git a/Makefile b/Makefile
index cb33000..3981a92 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,8 @@ PYVER :=
PYTHON := python$(PYVER)
PYDOC_SH = ./scripts/do_pydoc.sh
+RST_HTML = ./scripts/roverlay_rst2html.sh
+
DOCDIR := ./doc
SELFDOC := $(DOCDIR)/pydoc
@@ -77,7 +79,7 @@ $(SELFDOC): $(SELFDOC)/roverlay
pydoc: $(SELFDOC)
html: $(DOCDIR)/html $(DOCDIR)/rst/usage.rst
- rst2html.py $(DOCDIR)/rst/usage.rst $(DOCDIR)/html/usage.html
+ $(RST_HTML) $(DOCDIR)/rst/usage.rst $(DOCDIR)/html/usage.html
htmldoc: html
diff --git a/doc/html/usage.html b/doc/html/usage.html
index 6772a17..71d60df 100644
--- a/doc/html/usage.html
+++ b/doc/html/usage.html
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.9: http://docutils.sourceforge.net/" />
-<title></title>
+<title>Automatically Generated Overlay of R packages</title>
<style type="text/css">
/*
@@ -314,10 +314,6 @@ ul.auto-toc {
</style>
</head>
<body>
-<div class="header">
-Automatically Generated Overlay of R packages - Manual (Aug 20 2012)
-<hr class="header"/>
-</div>
<div class="document">
@@ -2567,5 +2563,10 @@ becomes "loop until resolver closes".</p>
</div>
</div>
</div>
+<div class="footer">
+<hr class="footer" />
+Generated on: 2012-08-20.
+
+</div>
</body>
</html>
diff --git a/doc/rst/usage.rst b/doc/rst/usage.rst
index 87e4ed6..5e04d49 100644
--- a/doc/rst/usage.rst
+++ b/doc/rst/usage.rst
@@ -1,8 +1,3 @@
-.. |date| date:: %b %d %Y
-
-.. header:: Automatically Generated Overlay of R packages - Manual (|date|)
-
-
.. _roverlay-9999.ebuild:
http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=blob;f=roverlay-9999.ebuild;hb=refs/heads/master
diff --git a/scripts/roverlay_rst2html.sh b/scripts/roverlay_rst2html.sh
new file mode 100755
index 0000000..ca8a449
--- /dev/null
+++ b/scripts/roverlay_rst2html.sh
@@ -0,0 +1,13 @@
+#!/bin/bash -u
+usage() { echo "usage: $0 <rst file> <html file>"; exit 1; }
+
+[[ $# -eq 2 ]] || usage
+
+from="${1}"
+to="${2}"
+
+[[ -r "${from}" ]] || usage
+
+TITLE='Automatically Generated Overlay of R packages'
+
+rst2html.py --title "${TITLE}" --date "${from}" "${to}"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-20 11:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-20 11:41 [gentoo-commits] proj/R_overlay:master commit in: scripts/, /, doc/rst/, doc/html/ André Erdmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox