Revision: 7454
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7454&view=rev
Author: jdh2358
Date: 2009-08-11 10:45:16 +0000 (Tue, 11 Aug 2009)
Log Message:
-----------
added fancy screenshot
Modified Paths:
--------------
trunk/py4science/examples/sphinx_qs/custom_look.rst
Added Paths:
-----------
trunk/py4science/examples/sphinx_qs/_static/fancy_screenshot.png
Added: trunk/py4science/examples/sphinx_qs/_static/fancy_screenshot.png
===================================================================
(Binary files differ)
Property changes on:
trunk/py4science/examples/sphinx_qs/_static/fancy_screenshot.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/py4science/examples/sphinx_qs/custom_look.rst
===================================================================
--- trunk/py4science/examples/sphinx_qs/custom_look.rst 2009-08-11 10:39:12 UTC
(rev 7453)
+++ trunk/py4science/examples/sphinx_qs/custom_look.rst 2009-08-11 10:45:16 UTC
(rev 7454)
@@ -9,5 +9,43 @@
sites created with the default css, so here we'll invoke Tufte's
phrase "Intelligence imitates but genious steals and grab their css
and part of their layout. As before, you can either get the required
-files :file:`_static/sphinx.css` and :file:`_templates:layout.html`
-from the website or svn (see :ref:`fetching-the-data`)
+files :file:`_static/default.css`, :file:`_templates:layout.html` and
:file:`_static\logo.png`
+from the website or svn (see :ref:`fetching-the-data`). Since I did a
+svn checkout before, I will just copy the stuff I need from there::
+
+ home:~/tmp/py4sci> cp ../sphinx_qs/_static/default.css _static/
+ home:~/tmp/py4sci> cp ../sphinx_qs/_templates/layout.html _templates/
+ home:~/tmp/py4sci> cp ../sphinx_qs/_static/logo.png _static/
+ home:~/tmp/py4sci> ls _static/ _templates/
+ _static/:
+ basic_screenshot.png default.css logo.png
+
+ _templates/:
+ layout.html
+
+Sphinx will automatically pick up the css and layout html files since we put
them in the
+default places with the default names, but we have to manually include the
logo in our :file:`layout.html`. Let's take a look at the
+layout file: the first part puts a horizontal navigation bar at the top of our
page, like you see on the `sphinx <http://sphinx.pocoo.org>`_ and `matplotlib
<http://matplotlib.sourceforge.net/>`_ sites, the second part includes a logo
that when we click on it will take us `home` and the last part moves the
vertical navigation panels to the right side of the page.
+
+ {% extends "!layout.html" %}
+
+
+ {% block rootrellink %}
+ <li><a href="{{ pathto('index') }}">home</a>| </li>
+ <li><a href="{{ pathto('search') }}">search</a>| </li>
+ <li><a href="{{ pathto('contents') }}">documentation </a>
»</li>
+ {% endblock %}
+
+
+ {% block relbar1 %}
+
+ <div style="background-color: white; text-align: left; padding: 10px 10px
15px 15px">
+ <a href="{{ pathto('index') }}"><img src="{{
+ pathto("_static/logo.png", 1) }}" border="0" alt="py4sci"/></a>
+ </div>
+ {{ super() }}
+ {% endblock %}
+
+ {# put the sidebar before the body #}
+ {% block sidebar1 %}{{ sidebar() }}{% endblock %}
+ {% block sidebar2 %}{% endblock %}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins