scikits_index / code / templates.py

names = [
	"header",
	"footer",
	"main",
	"about",
	"contribute",
	"package_info",
]

header_template = """

<html>
<head>
	<title>SciKits - %(name)s</title>
	<script type="text/javascript" src="/static/jquery.js"></script>
	<script type="text/javascript" src="/static/jquery.corners.min.js"></script>

	<link href="/static/sphinxdoc.css" rel="stylesheet" type="text/css" />
	<link href="/static/images/download_32.png" rel="icon" type="image/png" />
	<link href="/rss.xml" rel="alternate" type="application/rss+xml" title="SciKits Releases" />

</head>

<body>

<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px">
<table></tr>
<td><a href="/"><img src="/static/images/scipyshiny_small.png" width="64" border="0" /></a>
<td><a href="/"><span style="font-size: 36px;">SciKits</span></a></td>
</tr></table>
</div>

<div class="related">
	<h3>Navigation</h3>
	<ul>
	<li><a href="/">Home</a> |&nbsp;</li>
	<li><a href="/about">About SciKits</a> |&nbsp;</li>
	<li><a href="/scikits">Download a SciKit</a> |&nbsp;</li>
	<li><a href="/contribute">Contribute</a></li>
	</ul>
</div>

<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">

	%(admin_sidebar_html)s

	%(newest_packages_html)s

	<h3>Quick search</h3>
	%(search_box_html)s

</div>
</div>

<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">

<div class="section" id="%(name)s">

"""

footer_template = """

</div> <!-- section -->
</div> <!-- body -->
</div> <!-- bodywrapper -->
</div> <!-- documentwrapper -->
</div> <!-- document -->

<div class="clearer"></div>

<div class="footer">
See the <a href="http://code.google.com/p/scikits-index/source/checkout">source</a>.
Created page in %(load_time)0.3f seconds. Edit <a href="/edit?template_name=%(name)s">this page</a> (<a href="/edit">all</a>).
<br />
Designed by <a href="http://janto.blogspot.com/">Janto Dreijer</a>.
Appearance based on <a href="http://sphinx.pocoo.org/">Sphinx</a> and <a href="http://www.vistaicons.com/icon/i160s0/phuzion_icon_pack.htm">Phuzion icons</a>.
</div>

<script>
$(document).ready( function(){
	$('.rounded').corners();
});
</script>

%(google_analytics)s

</body>
</html>

"""

# =======================================

main_template = """
<p>
Welcome to SciKits!  Here you'll find a searchable index of
add-on toolkits that complement <a href="http://www.scipy.org">SciPy</a>, a library of scientific computing routines.
</p>

<p>
The SciKits cover a broad spectrum of application domains,
including financial computation, audio processing, geosciences,
computer vision, engineering, machine learning, medical computing
and bioinformatics.  <a href="/about">Learn more...</a>
</p>

<p>

<table class="contentstable" align="center" style="margin-left: 30px"><tr>
	<td width="50%%">

	<p class="biglink">
	<img src="/static/images/download_32.png" width="32" style="float: left; padding-bottom: 20px; padding-right: 10px;"/>
	<a class="biglink" href="/scikits">Download a SciKit</a><br/>
	<span class="linkdescr">Index of all SciKits.</span>
	</p>

	<p class="biglink">
	<img src="/static/images/organize_32.png" width="32" style="float: left; padding-bottom: 20px; padding-right: 10px;"/>
	<a class="biglink" href="/contribute">Contribute</a><br/>
	<span class="linkdescr">Add your own SciKit or join an existing project.</span>
	</p>

	</td>
</tr>
</table>

</p>
"""

about_template = """

<h1>About SciKits</h1>

<p>
SciKits (short for SciPy Toolkits), are add-on packages for <a href="http://www.scipy.org">SciPy</a>, hosted and developed separately from the main SciPy distribution.  All SciKits are available under the 'scikits' namespace and are licensed under <a href="http://www.opensource.org">OSI-approved licenses</a>.
</p>
<p>
Packages are packages as toolkits (instead of in the main, monolithic SciPy distribution) when:
<ol>
<li>The package is deemed too specialized to live in SciPy itself or
<li>The package has a GPL (or similar) license which is incompatible with SciPy's BSD license or
<li>The package is meant to be included in SciPy, but development is still in progress.</li>

</ol>
</p>

"""

contribute_template = """
<h1>Contribute</h1>

<h3>Add your own package</h3>

<p>
<a href="http://www.scipy.org/scipy/scikits/">SciKits developer resources</a>
</p>

<p>
<!-- Register at PyPI or add to SVN repository -->
</p>

<h3>Join a project</h3>
<p>
Join a mailing list.
</p>
"""

package_info_template = """
<a href="" style="text-decoration:none"><h1>%(name)s</h1></a>
<i>%(revision)s</i>
<p>
%(shortdesc)s
</p>

<p>
<img src="/static/images/download_32.png" width="16" border="0" /> Download:  %(download_link)s <br />
Homepage: <a href="%(homepage)s">%(homepage)s</a> <br />
PyPI: <a href="http://pypi.python.org/pypi/%(name)s">http://pypi.python.org/pypi/%(name)s</a> <br />
Source Repository: <a href="%(repo_url)s">%(repo_url)s</a> <br />
People: %(people)s <br />
</p>

<h3>Description</h3>
<i>fetched from source</i>
<div style="background-color:#f0f0f0; padding:5px" class="rounded">
%(escaped_description)s
</div>

<h3>Installation</h3>

<h4>PyPI</h4>
<p>
You can download the latest distribution from PyPI here: <a href="http://pypi.python.org/pypi/%(name)s">http://pypi.python.org/pypi/%(name)s</a>
</p>

<h4>Easy Install</h4>
<p>
Install the <a href="http://peak.telecommunity.com/DevCenter/EasyInstall">Easy Install</a> tools. Afterwards you can install %(name)s from the terminal by executing:
<pre>sudo easy_install %(name)s</pre>
</p>

<p>
If you prefer to do a local installation, specify an installation prefix:
<pre>easy_install --prefix=${HOME} %(name)s</pre>
and ensure that your <code>PYTHONPATH</code> is up to date, e.g.:
<pre>export PYTHONPATH=$PYTHONPATH:${HOME}/lib/python2.5/site-packages</pre>
</p>

<h4>Source code</h4>
<p>
You can get the latest sources from the repository using
<pre>svn checkout <a href="%(repo_url)s">%(repo_url)s</a></pre>
</p>

"""
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.