com web/doc: Build latest PhD's guide using PHP/HowTo format: README.md build-ops-sample cron/weekly/phd-guide
| From: | Maciej Sobaczewski | Date: | Sun, 11 Dec 2016 07:51:54 +0000 |
| Subject: | com web/doc: Build latest PhD's guide using PHP/HowTo format: README.md build-ops-sample cron/weekly/phd-guide | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-2429@lists.php.net to get a copy of this message | ||
Commit: df31ed0e7e0c6cc8411dac7025d06b681b84e9e4
Author: Sobak <msobaczewski@gmail.com> Sun, 11 Dec 2016 08:51:54 +0100
Parents: a663390dfc2db9acbae2d330476d96e5c756b0d6
Branches: master
Link: http://git.php.net/?p=web/doc.git;a=commitdiff;h=df31ed0e7e0c6cc8411dac7025d06b681b84e9e4
Log:
Build latest PhD's guide using PHP/HowTo format
It was unused anyway after switching docs' howto to Markdown,
so I thought it can be still utilized for PhD's Guide itself.
Changed paths:
M README.md
M build-ops-sample
A cron/weekly/phd-guide
Diff:
diff --git a/README.md b/README.md
index 983a158..895dc9d 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,7 @@ Requirements:
-
@SVNDIR@ - absolute path to dir where scripts will clone SVN repos to and then use
them and then use it for generating data
- @DOCDIR@ - relative path to the directory with documentation in SVN repo
- @DOCWEB@ - absolute path to directory with this website
+ - @PHDDIR@ - absolute path to directory with PhD installed from Git master
- @SCRIPTSDIR@- absolute path to /scripts/ directory
- @SRCDIR@ - path to the directory with PHP source code in SVN repo
5. Configure the virtual host under Apache. Current suggested settings are:
diff --git a/build-ops-sample b/build-ops-sample
index 9a8c4cd..ca8e456 100644
--- a/build-ops-sample
+++ b/build-ops-sample
@@ -5,6 +5,7 @@ PHP=@PHP@
SVNDIR=@SVNDIR@
DOCDIR=@DOCDIR@
DOCWEB=@DOCWEB@
+PHDDIR=@PHDDIR@
SCRIPTSDIR=@SCRIPTSDIR@
SQLITEDIR=@SQLITEDIR@
-SRCDIR=@SRCDIR@
\ No newline at end of file
+SRCDIR=@SRCDIR@
diff --git a/cron/weekly/phd-guide b/cron/weekly/phd-guide
new file mode 100644
index 0000000..064e6f2
--- /dev/null
+++ b/cron/weekly/phd-guide
@@ -0,0 +1,18 @@
+#!/bin/sh/
+
+# This task renders PhD's guide and places it on /phd/docs/
+#
+# Globally installed phd is not used yet, because valid
+# renderer is available only in master version at the moment.
+#
+# This will be simplified after next PhD release, but ${PHDDIR}
+# will still be needed for getting latest sources for the Guide.
+
+. dirname $0/../../build-ops
+
+cd ${DOCWEB}/www/phd/
+
+${PHP} ${PHDDIR}/render.php -d ${PHDDIR}/docs/phd-guide/phd-guide.xml --package$
+
+mv docs2/php-howto/* docs2/
+rm -r docs2/php-howto/