summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Bicking <ian@ianbicking.org>2005-08-22 03:18:32 +0000
committerIan Bicking <ian@ianbicking.org>2005-08-22 03:18:32 +0000
commitf83477f03e51c03b588fbf07f64d6202f9f06777 (patch)
tree29f9d843fe2af7a1d222428a20039f934aef7bde
parent457f6acd0f96be00148ea2e4ab4fb354019c3ea2 (diff)
downloadpaste-git-f83477f03e51c03b588fbf07f64d6202f9f06777.tar.gz
Added Paste-Deploy to build process, linked into navigation
-rw-r--r--docs/doc.conf2
-rw-r--r--docs/index.txt1
-rwxr-xr-xdocs/rebuild10
-rw-r--r--docs/template.tmpl1
4 files changed, 12 insertions, 2 deletions
diff --git a/docs/doc.conf b/docs/doc.conf
index 2107087..8c73fba 100644
--- a/docs/doc.conf
+++ b/docs/doc.conf
@@ -2,8 +2,10 @@ import os
base = os.path.dirname(__file__)
dest = os.path.join(os.path.dirname(os.path.dirname(base)), 'htdocs')
+deploy_base = '/home/paste/Paste-Deploy'
dirs[base] = os.path.join(dest, 'docs')
dirs[os.path.join(base, 'web')] = dest
dirs[os.path.join(base, 'web', 'community')] = os.path.join(dest, 'community')
dirs[os.path.join(base, 'web', 'download')] = os.path.join(dest, 'download')
+dirs[os.path.join(deploy_base, 'docs')] = os.path.join(dest, 'deploy')
template = os.path.join(base, 'template.tmpl')
diff --git a/docs/index.txt b/docs/index.txt
index d88bfa0..039202f 100644
--- a/docs/index.txt
+++ b/docs/index.txt
@@ -6,6 +6,7 @@ Reference
* `Paste Reference Documentation
<http://pythonpaste.org/docs/reference.html>`_
+* `paste.deploy <http://pythonpaste.org/deploy/paste-deploy.html>`_
* `Configuration <configuration.html>`_
* `Integrating Frameworks Info Paste <integration.html>`_
* `Roadmap for Paste <roadmap.html>`_
diff --git a/docs/rebuild b/docs/rebuild
index 10c0f27..ea73637 100755
--- a/docs/rebuild
+++ b/docs/rebuild
@@ -4,6 +4,7 @@ here=`pwd`
parent=`dirname $here`
echo "Adding $parent to \$PYTHONPATH"
export PYTHONPATH=$parent:$PYTHONPATH
+DEPLOY_BASE="/home/paste/Paste-Deploy"
NORMAL="DeveloperGuidelines Paste servers StyleGuide index web/index \
what-is-paste testing-applications url-parsing-with-wsgi \
@@ -35,7 +36,12 @@ chmod +x web/index.html
cp include/reference_header.txt reference.txt
echo ":extracted: `date`" >> reference.txt
echo >> reference.txt
-python ../paste/docsupport/extract.py paste >> reference.txt
+python2.4 ../paste/docsupport/extract.py paste >> reference.txt
rst2html.py reference.txt > reference.html
-python ../paste/docsupport/gensite.py
+
+pushd $DEPLOY_BASE/docs/
+./rebuild
+popd
+
+python2.4 ../paste/docsupport/gensite.py
chmod +x ~paste/htdocs/index.html
diff --git a/docs/template.tmpl b/docs/template.tmpl
index 2f666d4..ed42a38 100644
--- a/docs/template.tmpl
+++ b/docs/template.tmpl
@@ -20,6 +20,7 @@
<li><a href="/docs/">Documentation</a>
<ul>
<li><a href="/docs/TodoTutorial.html">To-Do Tutorial</a></li>
+ <li><a href="/deploy/paste-deploy.html">paste.deploy</a></li>
<li><a href="/docs/what-is-paste.html">What Is Paste?</a></li>
<li><a href="/docs/configuration.html">Configuration</a></li>
<li><a href="/docs/testing-applications.html">Testing Applications</a></li>