Skip to content
Myr

update docs config

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

authored by David Lord · committed by David Lord · parent 7d77958 · Browse files · 15 files+115 added−253 removed
This commit

State

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

Diff stats

15 files+115 added−253 removed

  • other:+115 added−253 removed

15 files+115 added−253 removed

deleted:docs/_static/flask-favicon.icobinary

A binary file, deleted.

added:docs/_static/flask-icon.pngbinary

A binary file, added.

added:docs/_static/flask-logo.pngbinary

A binary file, added.

deleted:docs/_static/flask.pngbinary

A binary file, deleted.

deleted:docs/_static/logo-full.pngbinary

A binary file, deleted.

deleted:docs/_static/touch-icon.pngbinary

A binary file, deleted.

modified:docs/conf.py+10 added-19 removed
1# -*- coding: utf-8 -*-2from __future__ import print_function1from pallets_sphinx_themes import get_version2from pallets_sphinx_themes import ProjectLink34from pallets_sphinx_themes import ProjectLink, get_version54# Project --------------------------------------------------------------56project = "Flask"9copyright = "2010 Pallets Team"10author = "Pallets Team"7copyright = "2010 Pallets"8author = "Pallets"9release, version = get_version("Flask")1011# General --------------------------------------------------------------12
2 unmodified lines
15 "sphinx.ext.autodoc",16 "sphinx.ext.intersphinx",17 "sphinxcontrib.log_cabinet",18 "pallets_sphinx_themes",19 "sphinx_issues",20]21intersphinx_mapping = {22 "python": ("https://docs.python.org/3/", None),24 "werkzeug": ("http://werkzeug.pocoo.org/docs/", None),23 "werkzeug": ("https://werkzeug.palletsprojects.com/", None),24 "click": ("https://click.palletsprojects.com/", None),25 "jinja": ("http://jinja.pocoo.org/docs/", None),26 "itsdangerous": ("https://itsdangerous.palletsprojects.com/", None),27 "sqlalchemy": ("https://docs.sqlalchemy.org/", None),28 "wtforms": ("https://wtforms.readthedocs.io/en/stable/", None),29 "blinker": ("https://pythonhosted.org/blinker/", None),30}31issues_github_path = "pallets/flask"3233# HTML -----------------------------------------------------------------3435html_theme = "flask"
12 unmodified lines
48 "**": ["localtoc.html", "relations.html", "searchbox.html"],49}50singlehtml_sidebars = {"index": ["project.html", "localtoc.html"]}51html_static_path = ["_static"]52html_favicon = "_static/flask-favicon.ico"53html_logo = "_static/flask.png"52html_favicon = "_static/flask-icon.png"53html_logo = "_static/flask-icon.png"54html_title = "Flask Documentation ({})".format(version)55html_show_sourcelink = False5657# LaTeX ----------------------------------------------------------------5859latex_documents = [60 (master_doc, "Flask.tex", "Flask Documentation", "Pallets Team", "manual")60 (master_doc, "Flask-{}.tex".format(version), html_title, author, "manual")61]62latex_use_modindex = False63latex_elements = {64 "papersize": "a4paper",65 "pointsize": "12pt",66 "fontpkg": r"\usepackage{mathpazo}",67 "preamble": r"\usepackage{flaskstyle}",68}69latex_use_parts = True70latex_additional_files = ["flaskstyle.sty", "logo.pdf"]6263# Local Extensions -----------------------------------------------------6465
30 unmodified lines
deleted:docs/contents.rst.inc-62 removed
1User's Guide2------------34This part of the documentation, which is mostly prose, begins with some5background information about Flask, then focuses on step-by-step6instructions for web development with Flask.78.. toctree::9 :maxdepth: 21011 foreword12 advanced_foreword13 installation14 quickstart15 tutorial/index16 templating17 testing18 errorhandling19 logging20 config21 signals22 views23 appcontext24 reqcontext25 blueprints26 extensions27 cli28 server29 shell30 patterns/index31 deploying/index32 becomingbig3334API Reference35-------------3637If you are looking for information on a specific function, class or38method, this part of the documentation is for you.3940.. toctree::41 :maxdepth: 24243 api4445Additional Notes46----------------4748Design notes, legal information and changelog are here for the interested.4950.. toctree::51 :maxdepth: 25253 design54 htmlfaq55 security56 unicode57 extensiondev58 styleguide59 upgrading60 changelog61 license62 contributing
deleted:docs/flaskstyle.sty-124 removed
1\definecolor{TitleColor}{rgb}{0,0,0}2\definecolor{InnerLinkColor}{rgb}{0,0,0}34% Replace Unicode character 'PARTY POPPER' (U+1F389) with a non-breaking space.5% pdfLaTeX doesn't support Unicode.6\DeclareUnicodeCharacter{1F389}{\nobreakspace}78\renewcommand{\maketitle}{%9 \begin{titlepage}%10 \let\footnotesize\small11 \let\footnoterule\relax12 % Apply following fix only on PDF output, i.e. pdfoutput macro is not 13 % undefined14 \ifx\pdfoutput\undefined\else15 \begingroup16 % This \def is required to deal with multi-line authors; it17 % changes \\ to ', ' (comma-space), making it pass muster for18 % generating document info in the PDF file.19 \def\\{, }20 \pdfinfo{21 /Author (\@author)22 /Title (\@title)23 }24 \endgroup25 \fi26 \begin{flushright}%27 %\sphinxlogo%28 {\center29 \vspace*{3cm}30 \includegraphics{logo.pdf}31 \vspace{3cm}32 \par33 {\rm\Huge \@title \par}%34 {\em\LARGE \py@release\releaseinfo \par}35 {\large36 \@date \par37 \py@authoraddress \par38 }}%39 \end{flushright}%\par40 \@thanks41 \end{titlepage}%42 \cleardoublepage%43 \setcounter{footnote}{0}%44 \let\thanks\relax\let\maketitle\relax45 %\gdef\@thanks{}\gdef\@author{}\gdef\@title{}46}4748\fancypagestyle{normal}{49 \fancyhf{}50 \fancyfoot[LE,RO]{{\thepage}}51 \fancyfoot[LO]{{\nouppercase{\rightmark}}}52 \fancyfoot[RE]{{\nouppercase{\leftmark}}}53 \fancyhead[LE,RO]{{ \@title, \py@release}}54 \renewcommand{\headrulewidth}{0.4pt}55 \renewcommand{\footrulewidth}{0.4pt}56}5758\fancypagestyle{plain}{59 \fancyhf{}60 \fancyfoot[LE,RO]{{\thepage}}61 \renewcommand{\headrulewidth}{0pt}62 \renewcommand{\footrulewidth}{0.4pt}63}6465\titleformat{\section}{\Large}%66 {\py@TitleColor\thesection}{0.5em}{\py@TitleColor}{\py@NormalColor}67\titleformat{\subsection}{\large}%68 {\py@TitleColor\thesubsection}{0.5em}{\py@TitleColor}{\py@NormalColor}69\titleformat{\subsubsection}{}%70 {\py@TitleColor\thesubsubsection}{0.5em}{\py@TitleColor}{\py@NormalColor}71\titleformat{\paragraph}{\large}%72 {\py@TitleColor}{0em}{\py@TitleColor}{\py@NormalColor}7374\ChNameVar{\raggedleft\normalsize}75\ChNumVar{\raggedleft \bfseries\Large}76\ChTitleVar{\raggedleft \rm\Huge}7778\renewcommand\thepart{\@Roman\c@part}79\renewcommand\part{%80 \pagestyle{plain}81 \if@noskipsec \leavevmode \fi82 \cleardoublepage83 \vspace*{6cm}%84 \@afterindentfalse85 \secdef\@part\@spart}8687\def\@part[#1]#2{%88 \ifnum \c@secnumdepth >\m@ne89 \refstepcounter{part}%90 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%91 \else92 \addcontentsline{toc}{part}{#1}%93 \fi94 {\parindent \z@ %\center95 \interlinepenalty \@M96 \normalfont97 \ifnum \c@secnumdepth >\m@ne98 \rm\Large \partname~\thepart99 \par\nobreak100 \fi101 \MakeUppercase{\rm\Huge #2}%102 \markboth{}{}\par}%103 \nobreak104 \vskip 8ex105 \@afterheading}106\def\@spart#1{%107 {\parindent \z@ %\center108 \interlinepenalty \@M109 \normalfont110 \huge \bfseries #1\par}%111 \nobreak112 \vskip 3ex113 \@afterheading}114115% use inconsolata font116\usepackage{inconsolata}117118% fix single quotes, for inconsolata. (does not work)119%%\usepackage{textcomp}120%%\begingroup121%% \catcode`'=\active122%% \g@addto@macro\@noligs{\let'\textsinglequote}123%% \endgroup124%%\endinput
modified:docs/index.rst+66 added-2 removed
1 unmodified line
23Welcome to Flask4================56.. image:: _static/logo-full.png6.. image:: _static/flask-logo.png7 :alt: Flask: web development, one drop at a time8 :align: center9 :target: https://palletsprojects.com/p/flask/10
12 unmodified lines
2324.. _Jinja: https://www.palletsprojects.com/p/jinja/25.. _Werkzeug: https://www.palletsprojects.com/p/werkzeug/2627.. include:: contents.rst.inc2728User's Guide29------------3031This part of the documentation, which is mostly prose, begins with some32background information about Flask, then focuses on step-by-step33instructions for web development with Flask.3435.. toctree::36 :maxdepth: 23738 foreword39 advanced_foreword40 installation41 quickstart42 tutorial/index43 templating44 testing45 errorhandling46 logging47 config48 signals49 views50 appcontext51 reqcontext52 blueprints53 extensions54 cli55 server56 shell57 patterns/index58 deploying/index59 becomingbig606162API Reference63-------------6465If you are looking for information on a specific function, class or66method, this part of the documentation is for you.6768.. toctree::69 :maxdepth: 27071 api727374Additional Notes75----------------7677Design notes, legal information and changelog are here for the interested.7879.. toctree::80 :maxdepth: 28182 design83 htmlfaq84 security85 unicode86 extensiondev87 styleguide88 upgrading89 changelog90 license91 contributing
deleted:docs/latexindex.rst-6 removed
1:orphan:23Flask Documentation4===================56.. include:: contents.rst.inc
deleted:docs/logo.pdfbinary

A binary file, deleted.

modified:docs/make.bat+35 added-36 removed
1@ECHO OFF23pushd %~dp045REM Command file for Sphinx documentation67if "%SPHINXBUILD%" == "" (8 set SPHINXBUILD=sphinx-build9)10set SOURCEDIR=.11set BUILDDIR=_build12set SPHINXPROJ=Flask1314if "%1" == "" goto help1516%SPHINXBUILD% >NUL 2>NUL17if errorlevel 9009 (18 echo.19 echo.The 'sphinx-build' command was not found. Make sure you have Sphinx20 echo.installed, then set the SPHINXBUILD environment variable to point21 echo.to the full path of the 'sphinx-build' executable. Alternatively you22 echo.may add the Sphinx directory to PATH.23 echo.24 echo.If you don't have Sphinx installed, grab it from25 echo.http://sphinx-doc.org/26 exit /b 127)2829%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%30goto end3132:help33%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%3435:end36popd1@ECHO OFF23pushd %~dp045REM Command file for Sphinx documentation67if "%SPHINXBUILD%" == "" (8 set SPHINXBUILD=sphinx-build9)10set SOURCEDIR=.11set BUILDDIR=_build1213if "%1" == "" goto help1415%SPHINXBUILD% >NUL 2>NUL16if errorlevel 9009 (17 echo.18 echo.The 'sphinx-build' command was not found. Make sure you have Sphinx19 echo.installed, then set the SPHINXBUILD environment variable to point20 echo.to the full path of the 'sphinx-build' executable. Alternatively you21 echo.may add the Sphinx directory to PATH.22 echo.23 echo.If you don't have Sphinx installed, grab it from24 echo.http://sphinx-doc.org/25 exit /b 126)2728%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%29goto end3031:help32%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%3334:end35popd
modified:docs/Makefile+1 added-2 removed
2 unmodified lines
34# You can set these variables from the command line.5SPHINXOPTS =6SPHINXBUILD = sphinx-build7SPHINXPROJ = Flask7SOURCEDIR = .8BUILDDIR = _build910# Put it first so that "make" without argument is like "make help".
4 unmodified lines
1516# Catch-all target: route all unknown targets to Sphinx using the new17# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).18%: Makefile20 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)19 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
modified:docs/requirements.txt+3 added-2 removed
1Sphinx~=1.8.02Pallets-Sphinx-Themes~=1.1.01Sphinx~=2.1.22Pallets-Sphinx-Themes~=1.1.43sphinxcontrib-log-cabinet~=1.0.04sphinx-issues~=1.2.0