Browse Source

Larger fonts in the docs

pull/1638/head
Armin Ronacher 15 years ago
parent
commit
325dfa2469
  1. 1
      docs/_templates/sidebarintro.html
  2. 5
      docs/_themes/flasky/static/flasky.css_t
  3. 50
      website/index.html

1
docs/_templates/sidebarintro.html vendored

@ -7,6 +7,7 @@
</p> </p>
<h3>Useful Links</h3> <h3>Useful Links</h3>
<ul> <ul>
<li><a href="http://flask.pocoo.org/">The Flask Website</a></li>
<li><a href="http://pypi.python.org/pypi/Flask">Flask @ PyPI</a></li> <li><a href="http://pypi.python.org/pypi/Flask">Flask @ PyPI</a></li>
<li><a href="http://github.com/mitsuhiko/flask">Flask @ github</a></li> <li><a href="http://github.com/mitsuhiko/flask">Flask @ github</a></li>
</ul> </ul>

5
docs/_themes/flasky/static/flasky.css_t vendored

@ -15,7 +15,7 @@
body { body {
font-family: 'Georgia', serif; font-family: 'Georgia', serif;
font-size: 100%; font-size: 16px;
background-color: #555; background-color: #555;
color: #555; color: #555;
margin: 0; margin: 0;
@ -43,7 +43,6 @@ div.body {
background-color: #ffffff; background-color: #ffffff;
color: #3E4349; color: #3E4349;
padding: 0 30px 30px 30px; padding: 0 30px 30px 30px;
font-size: 0.9em;
} }
div.footer { div.footer {
@ -70,7 +69,7 @@ div.related a {
} }
div.sphinxsidebar { div.sphinxsidebar {
font-size: 0.75em; font-size: 0.85em;
line-height: 1.5em; line-height: 1.5em;
} }

50
website/index.html

@ -1,21 +1,24 @@
<!doctype html> <!doctype html>
<title>Flask (A Python Microframework)</title> <title>Flask (A Python Microframework)</title>
<meta charset=utf-8>
<style type=text/css> <style type=text/css>
body { font-family: 'Georgia', serif; font-size: 17px; color: #000; } body { font-family: 'Georgia', serif; font-size: 17px; color: #000; }
a { color: #444; font-weight: bold; } a { color: #004B6B; }
.box { width: 540px; margin: 40px auto; } a:hover { color: #6D4100; }
h1 { margin: 0 0 30px 0; background: url(logo.png) no-repeat center; height: 165px; } .box { width: 540px; margin: 40px auto; }
h2 { font-size: 26px; margin: 15px 0 5px 0; font-variant: small-caps; } h1, h2 { font-family: 'Garamond', 'Georgia', serif; font-weight: normal; }
h1 { margin: 0 0 30px 0; background: url(logo.png) no-repeat center; height: 165px; }
h2 { font-size: 28px; margin: 15px 0 5px 0; }
code, code,
pre { font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', pre { font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono',
monospace; font-size: 15px; background: #eee; } monospace; font-size: 15px; background: #eee; }
pre { padding: 7px 30px; margin: 15px -30px; } pre { padding: 7px 30px; margin: 15px -30px; }
.ig { color: #888; } .ig { color: #888; }
ul { margin: 15px 0; padding: 0; } ul { margin: 15px 0 15px 0; padding: 0; list-style: none; }
ul li:before { content: "\00BB \0020"; color: #888; position: absolute; margin-left: -19px; }
h1 span, p.tagline { display: none; } h1 span, p.tagline { display: none; }
blockquote { margin: 0; font-style: italic; color: #444; } blockquote { margin: 0; font-style: italic; color: #444; }
.footer { font-size: 13px; color: #888; text-align: right; margin-top: 25px; } .footer { font-size: 13px; color: #888; text-align: right; margin-top: 25px; }
pre a, blockquote a, .footer a { font-weight: normal; color: inherit; }
</style> </style>
<div class=box> <div class=box>
<h1><span>Flask</span></h1> <h1><span>Flask</span></h1>
@ -37,18 +40,39 @@ def hello():
<h2>And Easy to Setup</h2> <h2>And Easy to Setup</h2>
<pre><span class=ig>$ </span>easy_install Flask <pre><span class=ig>$ </span>easy_install Flask
<span class=ig>$ </span>python hello.py <span class=ig>$ </span>python hello.py
<span class=ig> * Running on <a href=http://localhost:5000/>http://localhost:5000/</a></span></pre> <span class=ig> * Running on http://localhost:5000/</span></pre>
<h2>Interested?</h2> <h2>Interested?</h2>
<ul> <ul>
<li><a href=docs/>Read the documentation</a> <li><a href=docs/>Read the documentation</a>
<li><a href=http://github.com/mitsuhiko/flask>Fork it on github</a> <li><a href=http://github.com/mitsuhiko/flask>Fork it on github</a>
<li><a href=http://pypi.python.org/pypi/Flask>Download it from PyPI</a> <li><a href=http://pypi.python.org/pypi/Flask>Download it from PyPI</a>
</ul> </ul>
<h2>What’s in the Box?</h2>
<ul>
<li>built in development server and <a href=docs/quickstart.html#debug-mode>debugger</a>
<li>integrated support for <a href=docs/testing.html>unittesting support</a>
<li>RESTful <a href=docs/quickstart.html#routing>request dispatching</a>
<li>uses <a href=http://jinja.pocoo.org/2/documentation/templates>Jinja2 templating</a>
<li>support for <a href=docs/quickstart.html#sessions>secure cookies</a> (client side sessions)
<li>100% <a href=http://www.python.org/dev/peps/pep-0333/>WSGI 1.0</a> compliant
<li>Unicode based
</ul>
<h2>What do Flask Apps look like?</h2>
<p>
If you are looking for some example code of applications written with Flask,
have a look at the sources of the examples on github:
<ul>
<li><a href=http://github.com/mitsuhiko/flask/tree/master/examples/flaskr/>flaskr</a>
— a microblog
<li><a href=http://github.com/mitsuhiko/flask/tree/master/examples/minitwit/>minitwit</a>
— a twitter clone
</ul>
<h2>Contribute</h2> <h2>Contribute</h2>
<p>Found a bug? Have a good idea for improving Flask? Head over to <p>Found a bug? Have a good idea for improving Flask? Head over to
<a href=http://github.com/mitsuhiko/flask>Flask's github</a> page and <a href=http://github.com/mitsuhiko/flask>Flask's github</a> page and
create a new ticket or fork. If you just want to chat with the create a new ticket or fork. If you just want to chat with fellow
developers, go to <code>#pocoo</code> on irc.freenode.net developers, go to <code>#pocoo</code> on irc.freenode.net.
<p class=footer>&copy; Copyright 2010 by <a href=http://lucumr.pocoo.org/>Armin Ronacher</a> <p class=footer>&copy; Copyright 2010 by <a href=http://lucumr.pocoo.org/>Armin Ronacher</a>
</div> </div>

Loading…
Cancel
Save