aboutsummaryrefslogtreecommitdiffstats
path: root/pycco_resources
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2010-07-09 11:49:17 -0700
committerNick Fitzgerald <fitzgen@gmail.com>2010-07-09 11:49:17 -0700
commit0e64b7c0933a1993dc3d31770c1550cea4d10f04 (patch)
tree7dc5fb9d5933f0e014cf5398db095bf1c806d3d9 /pycco_resources
parent1937035182b4a8dae63252a0856b4d8e3df4e64d (diff)
downloadpycco-0e64b7c0933a1993dc3d31770c1550cea4d10f04.tar.gz
pycco-0e64b7c0933a1993dc3d31770c1550cea4d10f04.zip
Moving the resources in to their own module to ensure that setup.py installs
them correctly.
Diffstat (limited to 'pycco_resources')
-rw-r--r--pycco_resources/__init__.py (renamed from pycco_resources/pycco.css)53
-rw-r--r--pycco_resources/pycco.html46
2 files changed, 52 insertions, 47 deletions
diff --git a/pycco_resources/pycco.css b/pycco_resources/__init__.py
index 921633b..a7b8cd9 100644
--- a/pycco_resources/pycco.css
+++ b/pycco_resources/__init__.py
@@ -1,3 +1,4 @@
+css = """\
/*--------------------- Layout and Typography ----------------------------*/
body {
font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
@@ -182,4 +183,54 @@ body .bp { color: #954121 } /* Name.Builtin.Pseudo */
body .vc { color: #19469D } /* Name.Variable.Class */
body .vg { color: #19469D } /* Name.Variable.Global */
body .vi { color: #19469D } /* Name.Variable.Instance */
-body .il { color: #666666 } /* Literal.Number.Integer.Long */ \ No newline at end of file
+body .il { color: #666666 } /* Literal.Number.Integer.Long */
+"""
+
+html = """\
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="content-type" content="text/html;charset=utf-8">
+ <title>{{ title }}</title>
+ <link rel="stylesheet" href="pycco.css">
+</head>
+<body>
+<div id='container'>
+ <div id="background"></div>
+ {{#sources?}}
+ <div id="jump_to">
+ Jump To &hellip;
+ <div id="jump_wrapper">
+ <div id="jump_page">
+ {{#sources}}
+ <a class="source" href="{{ url }}">{{ basename }}</a>
+ {{/sources}}
+ </div>
+ </div>
+ </div>
+ {{/sources?}}
+ <table cellspacing=0 cellpadding=0>
+ <thead>
+ <tr>
+ <th class=docs><h1>{{ title }}</h1></th>
+ <th class=code></th>
+ </tr>
+ </thead>
+ <tbody>
+ {{#sections}}
+ <tr id='section-{{ num }}'>
+ <td class=docs>
+ <div class="octowrap">
+ <a class="octothorpe" href="#section-{{ num }}">#</a>
+ </div>
+ {{{ docs_html }}}
+ </td>
+ <td class=code>
+ <div class='highlight'><pre>{{{ code_html }}}</pre></div>
+ </td>
+ </tr>
+ {{/sections}}
+ </table>
+</div>
+</body>
+"""
diff --git a/pycco_resources/pycco.html b/pycco_resources/pycco.html
deleted file mode 100644
index 67ba4e0..0000000
--- a/pycco_resources/pycco.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta http-equiv="content-type" content="text/html;charset=utf-8">
- <title>{{ title }}</title>
- <link rel="stylesheet" href="pycco.css">
-</head>
-<body>
-<div id='container'>
- <div id="background"></div>
- {{#sources?}}
- <div id="jump_to">
- Jump To &hellip;
- <div id="jump_wrapper">
- <div id="jump_page">
- {{#sources}}
- <a class="source" href="{{ url }}">{{ basename }}</a>
- {{/sources}}
- </div>
- </div>
- </div>
- {{/sources?}}
- <table cellspacing=0 cellpadding=0>
- <thead>
- <tr>
- <th class=docs><h1>{{ title }}</h1></th>
- <th class=code></th>
- </tr>
- </thead>
- <tbody>
- {{#sections}}
- <tr id='section-{{ num }}'>
- <td class=docs>
- <div class="octowrap">
- <a class="octothorpe" href="#section-{{ num }}">#</a>
- </div>
- {{{ docs_html }}}
- </td>
- <td class=code>
- <div class='highlight'><pre>{{{ code_html }}}</pre></div>
- </td>
- </tr>
- {{/sections}}
- </table>
-</div>
-</body>