Skip to content
Myr

Beefed up PDF docs. They actually look like something now.

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 4395e94 · Browse files · 6 files+130 added−60 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+130 added−60 removed

  • other:+130 added−60 removed

6 files+130 added−60 removed

modified:docs/conf.py+11 added-19 removed
170 unmodified lines
171172173# -- Options for LaTeX output --------------------------------------------------174175# The paper size ('letter' or 'a4').176#latex_paper_size = 'letter'177178# The font size ('10pt', '11pt' or '12pt').179#latex_font_size = '10pt'180175# Grouping the document tree into LaTeX files. List of tuples176# (source start file, target name, title, author, documentclass [howto/manual]).177latex_documents = [184 ('index', 'Flask.tex', u'Flask Documentation',178 ('latexindex', 'Flask.tex', u'Flask Documentation',179 u'Armin Ronacher', 'manual'),180]181188# The name of an image file (relative to this directory) to place at the top of189# the title page.190#latex_logo = None191192# For "manual" documents, if this is true, then toplevel headings are parts,193# not chapters.194#latex_use_parts = False195196# Additional stuff for the LaTeX preamble.197#latex_preamble = ''198182# Documents to append as an appendix to all manuals.183#latex_appendices = []184185# If false, no module index is generated.203#latex_use_modindex = True186latex_use_modindex = False187188latex_elements = {189 'fontpkg': r'\usepackage{mathpazo}',190 'papersize': 'a4paper',191 'pointsize': '12pt',192 'preamble': r'\usepackage{flaskstyle}'193}194195latex_additional_files = ['flaskstyle.sty', 'logo.pdf']196197198# -- Options for Epub output ---------------------------------------------------199200# Bibliographic Dublin Core info.201#epub_title = ''
38 unmodified lines
added:docs/contents.rst+41 added
1User's Guide2------------34This part of the documentation is written text and should give you an idea5how to work with Flask. It's a series of step-by-step instructions for6web development.78.. toctree::9 :maxdepth: 21011 foreword12 installation13 quickstart14 tutorial/index15 testing16 patterns/index17 deploying/index18 becomingbig1920Additional Notes21----------------2223Design notes, legal information and changelog are here for the interested:2425.. toctree::26 :maxdepth: 22728 design29 license30 changelog3132API Reference33-------------3435If you are looking for information on a specific function, class or36method, this part of the documentation is for you:3738.. toctree::39 :maxdepth: 24041 api
added:docs/flaskstyle.sty+73 added
1\pagenumbering{arabic}2\definecolor{TitleColor}{rgb}{0,0,0}3\definecolor{InnerLinkColor}{rgb}{0,0,0}45\renewcommand{\maketitle}{%6 \begin{titlepage}%7 \let\footnotesize\small8 \let\footnoterule\relax9 \ifsphinxpdfoutput10 \begingroup11 % This \def is required to deal with multi-line authors; it12 % changes \\ to ', ' (comma-space), making it pass muster for13 % generating document info in the PDF file.14 \def\\{, }15 \pdfinfo{16 /Author (\@author)17 /Title (\@title)18 }19 \endgroup20 \fi21 \begin{flushright}%22 %\sphinxlogo%23 {\center24 \vspace*{3cm}25 \includegraphics{logo.pdf}26 \vspace{3cm}27 \par28 {\rm\Huge \@title \par}%29 {\em\LARGE \py@release\releaseinfo \par}30 {\large31 \@date \par32 \py@authoraddress \par33 }}%34 \end{flushright}%\par35 \@thanks36 \end{titlepage}%37 \cleardoublepage%38 \setcounter{footnote}{0}%39 \let\thanks\relax\let\maketitle\relax40 %\gdef\@thanks{}\gdef\@author{}\gdef\@title{}41}4243\fancypagestyle{normal}{44 \fancyhf{}45 \fancyfoot[LE,RO]{{\thepage}}46 \fancyfoot[LO]{{\nouppercase{\rightmark}}}47 \fancyfoot[RE]{{\nouppercase{\leftmark}}}48 \fancyhead[LE,RO]{{ \@title, \py@release}}49 \renewcommand{\headrulewidth}{0.4pt}50 \renewcommand{\footrulewidth}{0.4pt}51}5253\fancypagestyle{plain}{54 \fancyhf{}55 \fancyfoot[LE,RO]{{\thepage}}56 \renewcommand{\headrulewidth}{0pt}57 \renewcommand{\footrulewidth}{0.4pt}58}5960\titleformat{\section}{\Large}%61 {\py@TitleColor\thesection}{0.5em}{\py@TitleColor}{\py@NormalColor}62\titleformat{\subsection}{\large}%63 {\py@TitleColor\thesubsection}{0.5em}{\py@TitleColor}{\py@NormalColor}64\titleformat{\subsubsection}{}%65 {\py@TitleColor\thesubsubsection}{0.5em}{\py@TitleColor}{\py@NormalColor}66\titleformat{\paragraph}{\large}%67 {\py@TitleColor}{0em}{\py@TitleColor}{\py@NormalColor}6869\ChNameVar{\raggedleft\normalsize}70\ChNumVar{\raggedleft \bfseries\Large}71\ChTitleVar{\raggedleft \rm\Huge}7273\usepackage{inconsolata}
modified:docs/index.rst+1 added-41 removed
23 unmodified lines
2425.. _Jinja2: http://jinja.pocoo.org/2/26.. _Werkzeug: http://werkzeug.pocoo.org/2728User's Guide29------------3031This part of the documentation is written text and should give you an idea32how to work with Flask. It's a series of step-by-step instructions for33web development.3435.. toctree::36 :maxdepth: 23738 foreword39 installation40 quickstart41 tutorial/index42 testing43 patterns/index44 deploying/index45 becomingbig4647Additional Notes48----------------4950Design notes, legal information and changelog are here for the interested:5152.. toctree::53 :maxdepth: 25455 design56 license57 changelog5859API Reference60-------------6162If you are looking for information on a specific function, class or63method, this part of the documentation is for you:6465.. toctree::66 :maxdepth: 26768 api28.. include:: contents.rst
added:docs/latexindex.rst+4 added
1Flask Documentation2===================34.. include:: contents.rst
added:docs/logo.pdfbinary

A binary file, added.