Beefed up latex output. Unfortunately parts look ugly.
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Armin Ronacher · committed by Armin Ronacher · parent 854e0e2 · Browse files · 7 files·+98 added−44 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
7 files+98 added−44 removed
- other:+98 added−44 removed
Provenance
- Commit
cbcd15c- Tree
8ebd411- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
854e0e2
7 files changed+98 added−44 removed
modified:docs/conf.py+1 added
188 unmodified lines189 'papersize': 'a4paper',190 'pointsize': '12pt',191 'preamble': r'\usepackage{flaskstyle}'192 }193+latex_use_parts = True194 195 latex_additional_files = ['flaskstyle.sty', 'logo.pdf']196 197 44 unmodified linesdeleted:docs/contents.rst.inc-42 removed
1-User's Guide2-------------3-4-This part of the documentation is written text and should give you an idea5-how to work with Flask. It's a series of step-by-step instructions for6-web development.7-8-.. toctree::9- :maxdepth: 210-11- foreword12- installation13- quickstart14- tutorial/index15- testing16- errorhandling17- patterns/index18- deploying/index19- becomingbig20-21-API Reference22--------------23-24-If you are looking for information on a specific function, class or25-method, this part of the documentation is for you:26-27-.. toctree::28- :maxdepth: 229-30- api31-32-Additional Notes33-----------------34-35-Design notes, legal information and changelog are here for the interested:36-37-.. toctree::38- :maxdepth: 239-40- design41- license42- changelogmodified:docs/errorhandling.rst+2 added
161 unmodified lines162 Here is a list of useful formatting variables for the format string. Note163 that this list is not complete, consult the official documentation of the164 :mod:`logging` package for a full list.165 166+.. tabularcolumns:: |p{3cm}|p{12cm}|167+168 +------------------+----------------------------------------------------+169 | Format | Description |170 +==================+====================================================+171 | ``%(levelname)s``| Text logging level for the message |65 unmodified linesmodified:docs/flaskstyle.sty+9 added
68 unmodified lines69 \ChNameVar{\raggedleft\normalsize}70 \ChNumVar{\raggedleft \bfseries\Large}71 \ChTitleVar{\raggedleft \rm\Huge}72 73+% use inconsolata font74 \usepackage{inconsolata}75+76+% fix single quotes, for inconsolata. (does not work)77+%%\usepackage{textcomp}78+%%\begingroup79+%% \catcode`'=\active80+%% \g@addto@macro\@noligs{\let'\textsinglequote}81+%% \endgroup82+%%\endinputmodified:docs/index.rst+44 added-1 removed
1+:orphan:2+3 Welcome to Flask4 ================5 6 .. image:: _static/logo-full.png19 unmodified lines26 27 .. _Jinja2: http://jinja.pocoo.org/2/28 .. _Werkzeug: http://werkzeug.pocoo.org/29 28-.. include:: contents.rst.inc30+User's Guide31+------------32+33+This part of the documentation is written text and should give you an idea34+how to work with Flask. It's a series of step-by-step instructions for35+web development.36+37+.. toctree::38+ :maxdepth: 239+40+ foreword41+ installation42+ quickstart43+ tutorial/index44+ testing45+ errorhandling46+ patterns/index47+ deploying/index48+ becomingbig49+50+API Reference51+-------------52+53+If you are looking for information on a specific function, class or54+method, this part of the documentation is for you:55+56+.. toctree::57+ :maxdepth: 258+59+ api60+61+Additional Notes62+----------------63+64+Design notes, legal information and changelog are here for the interested:65+66+.. toctree::67+ :maxdepth: 268+69+ design70+ license71+ changelogmodified:docs/latexindex.rst+35 added-1 removed
1+:orphan:2+3 Flask Documentation4 ===================5 4-.. include:: contents.rst.inc6+User's Guide7+------------8+9+.. toctree::10+ :maxdepth: 311+12+ foreword13+ installation14+ quickstart15+ tutorial/index16+ testing17+ errorhandling18+ patterns/index19+ deploying/index20+ becomingbig21+22+API Reference23+-------------24+25+.. toctree::26+ :maxdepth: 327+28+ api29+30+Additional Notes31+----------------32+33+.. toctree::34+ :maxdepth: 335+36+ design37+ license38+ changelogmodified:flask.py+7 added
1095 unmodified lines1096 response object that is an instance of :attr:`response_class`.1097 1098 The following types are allowed for `rv`:1099 1100+ .. tabularcolumns:: |p{3.5cm}|p{9.5cm}|1101+1102 ======================= ===========================================1103 :attr:`response_class` the object is returned unchanged1104 :class:`str` a response object is created with the1105 string as body117 unmodified lines1223 current_app = LocalProxy(lambda: _request_ctx_stack.top.app)1224 request = LocalProxy(lambda: _request_ctx_stack.top.request)1225 session = LocalProxy(lambda: _request_ctx_stack.top.session)1226 g = LocalProxy(lambda: _request_ctx_stack.top.g)1227+1228+1229+# script interface to run a development server1230+if __name__ == '__main__':1231+ sys.exit(main(sys.argv))