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
Provenance
- Commit
3ac4ec6- Tree
f64b151- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
4395e94
6 files changed+130 added−60 removed
modified:docs/conf.py+11 added-19 removed
170 unmodified lines171 172 173 # -- Options for LaTeX output --------------------------------------------------174 175-# The paper size ('letter' or 'a4').176-#latex_paper_size = 'letter'177-178-# The font size ('10pt', '11pt' or '12pt').179-#latex_font_size = '10pt'180-175 # Grouping the document tree into LaTeX files. List of tuples176 # (source start file, target name, title, author, documentclass [howto/manual]).177 latex_documents = [184- ('index', 'Flask.tex', u'Flask Documentation',178+ ('latexindex', 'Flask.tex', u'Flask Documentation',179 u'Armin Ronacher', 'manual'),180 ]181 188-# The name of an image file (relative to this directory) to place at the top of189-# the title page.190-#latex_logo = None191-192-# For "manual" documents, if this is true, then toplevel headings are parts,193-# not chapters.194-#latex_use_parts = False195-196-# Additional stuff for the LaTeX preamble.197-#latex_preamble = ''198-182 # Documents to append as an appendix to all manuals.183 #latex_appendices = []184 185 # If false, no module index is generated.203-#latex_use_modindex = True186+latex_use_modindex = False187 188+latex_elements = {189+ 'fontpkg': r'\usepackage{mathpazo}',190+ 'papersize': 'a4paper',191+ 'pointsize': '12pt',192+ 'preamble': r'\usepackage{flaskstyle}'193+}194 195+latex_additional_files = ['flaskstyle.sty', 'logo.pdf']196+197+198 # -- Options for Epub output ---------------------------------------------------199 200 # Bibliographic Dublin Core info.201 #epub_title = ''38 unmodified linesadded:docs/contents.rst+41 added
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+ patterns/index17+ deploying/index18+ becomingbig19+20+Additional Notes21+----------------22+23+Design notes, legal information and changelog are here for the interested:24+25+.. toctree::26+ :maxdepth: 227+28+ design29+ license30+ changelog31+32+API Reference33+-------------34+35+If you are looking for information on a specific function, class or36+method, this part of the documentation is for you:37+38+.. toctree::39+ :maxdepth: 240+41+ apiadded:docs/flaskstyle.sty+73 added
1+\pagenumbering{arabic}2+\definecolor{TitleColor}{rgb}{0,0,0}3+\definecolor{InnerLinkColor}{rgb}{0,0,0}4+5+\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+}42+43+\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+}52+53+\fancypagestyle{plain}{54+ \fancyhf{}55+ \fancyfoot[LE,RO]{{\thepage}}56+ \renewcommand{\headrulewidth}{0pt}57+ \renewcommand{\footrulewidth}{0.4pt}58+}59+60+\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}68+69+\ChNameVar{\raggedleft\normalsize}70+\ChNumVar{\raggedleft \bfseries\Large}71+\ChTitleVar{\raggedleft \rm\Huge}72+73+\usepackage{inconsolata}modified:docs/index.rst+1 added-41 removed
23 unmodified lines24 25 .. _Jinja2: http://jinja.pocoo.org/2/26 .. _Werkzeug: http://werkzeug.pocoo.org/27 28-User's Guide29-------------30-31-This part of the documentation is written text and should give you an idea32-how to work with Flask. It's a series of step-by-step instructions for33-web development.34-35-.. toctree::36- :maxdepth: 237-38- foreword39- installation40- quickstart41- tutorial/index42- testing43- patterns/index44- deploying/index45- becomingbig46-47-Additional Notes48-----------------49-50-Design notes, legal information and changelog are here for the interested:51-52-.. toctree::53- :maxdepth: 254-55- design56- license57- changelog58-59-API Reference60--------------61-62-If you are looking for information on a specific function, class or63-method, this part of the documentation is for you:64-65-.. toctree::66- :maxdepth: 267-68- api28+.. include:: contents.rstadded:docs/latexindex.rst+4 added
1+Flask Documentation2+===================3+4+.. include:: contents.rstadded:docs/logo.pdfbinary
A binary file, added.