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
Provenance
- Commit
28b35c5- Tree
0570e6a- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
7d77958
15 files changed+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 -*-2-from __future__ import print_function1+from pallets_sphinx_themes import get_version2+from pallets_sphinx_themes import ProjectLink3 4-from pallets_sphinx_themes import ProjectLink, get_version5-4 # Project --------------------------------------------------------------5 6 project = "Flask"9-copyright = "2010 Pallets Team"10-author = "Pallets Team"7+copyright = "2010 Pallets"8+author = "Pallets"9 release, version = get_version("Flask")10 11 # General --------------------------------------------------------------12 2 unmodified lines15 "sphinx.ext.autodoc",16 "sphinx.ext.intersphinx",17 "sphinxcontrib.log_cabinet",18 "pallets_sphinx_themes",19+ "sphinx_issues",20 ]21 intersphinx_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 }31+issues_github_path = "pallets/flask"32 33 # HTML -----------------------------------------------------------------34 35 html_theme = "flask"12 unmodified lines48 "**": ["localtoc.html", "relations.html", "searchbox.html"],49 }50 singlehtml_sidebars = {"index": ["project.html", "localtoc.html"]}51 html_static_path = ["_static"]52-html_favicon = "_static/flask-favicon.ico"53-html_logo = "_static/flask.png"52+html_favicon = "_static/flask-icon.png"53+html_logo = "_static/flask-icon.png"54 html_title = "Flask Documentation ({})".format(version)55 html_show_sourcelink = False56 57 # LaTeX ----------------------------------------------------------------58 59 latex_documents = [60- (master_doc, "Flask.tex", "Flask Documentation", "Pallets Team", "manual")60+ (master_doc, "Flask-{}.tex".format(version), html_title, author, "manual")61 ]62-latex_use_modindex = False63-latex_elements = {64- "papersize": "a4paper",65- "pointsize": "12pt",66- "fontpkg": r"\usepackage{mathpazo}",67- "preamble": r"\usepackage{flaskstyle}",68-}69-latex_use_parts = True70-latex_additional_files = ["flaskstyle.sty", "logo.pdf"]62 63 # Local Extensions -----------------------------------------------------64 65 30 unmodified linesdeleted:docs/contents.rst.inc-62 removed
1-User's Guide2-------------3-4-This part of the documentation, which is mostly prose, begins with some5-background information about Flask, then focuses on step-by-step6-instructions for web development with Flask.7-8-.. toctree::9- :maxdepth: 210-11- 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- becomingbig33-34-API Reference35--------------36-37-If you are looking for information on a specific function, class or38-method, this part of the documentation is for you.39-40-.. toctree::41- :maxdepth: 242-43- api44-45-Additional Notes46-----------------47-48-Design notes, legal information and changelog are here for the interested.49-50-.. toctree::51- :maxdepth: 252-53- design54- htmlfaq55- security56- unicode57- extensiondev58- styleguide59- upgrading60- changelog61- license62- contributingdeleted:docs/flaskstyle.sty-124 removed
1-\definecolor{TitleColor}{rgb}{0,0,0}2-\definecolor{InnerLinkColor}{rgb}{0,0,0}3-4-% Replace Unicode character 'PARTY POPPER' (U+1F389) with a non-breaking space.5-% pdfLaTeX doesn't support Unicode.6-\DeclareUnicodeCharacter{1F389}{\nobreakspace}7-8-\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-}47-48-\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-}57-58-\fancypagestyle{plain}{59- \fancyhf{}60- \fancyfoot[LE,RO]{{\thepage}}61- \renewcommand{\headrulewidth}{0pt}62- \renewcommand{\footrulewidth}{0.4pt}63-}64-65-\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}73-74-\ChNameVar{\raggedleft\normalsize}75-\ChNumVar{\raggedleft \bfseries\Large}76-\ChTitleVar{\raggedleft \rm\Huge}77-78-\renewcommand\thepart{\@Roman\c@part}79-\renewcommand\part{%80- \pagestyle{plain}81- \if@noskipsec \leavevmode \fi82- \cleardoublepage83- \vspace*{6cm}%84- \@afterindentfalse85- \secdef\@part\@spart}86-87-\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}114-115-% use inconsolata font116-\usepackage{inconsolata}117-118-% fix single quotes, for inconsolata. (does not work)119-%%\usepackage{textcomp}120-%%\begingroup121-%% \catcode`'=\active122-%% \g@addto@macro\@noligs{\let'\textsinglequote}123-%% \endgroup124-%%\endinputmodified:docs/index.rst+66 added-2 removed
1 unmodified line2 3 Welcome to Flask4 ================5 6-.. 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 lines23 24 .. _Jinja: https://www.palletsprojects.com/p/jinja/25 .. _Werkzeug: https://www.palletsprojects.com/p/werkzeug/26 27-.. include:: contents.rst.inc27+28+User's Guide29+------------30+31+This part of the documentation, which is mostly prose, begins with some32+background information about Flask, then focuses on step-by-step33+instructions for web development with Flask.34+35+.. toctree::36+ :maxdepth: 237+38+ 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+ becomingbig60+61+62+API Reference63+-------------64+65+If you are looking for information on a specific function, class or66+method, this part of the documentation is for you.67+68+.. toctree::69+ :maxdepth: 270+71+ api72+73+74+Additional Notes75+----------------76+77+Design notes, legal information and changelog are here for the interested.78+79+.. toctree::80+ :maxdepth: 281+82+ design83+ htmlfaq84+ security85+ unicode86+ extensiondev87+ styleguide88+ upgrading89+ changelog90+ license91+ contributingdeleted:docs/latexindex.rst-6 removed
1-:orphan:2-3-Flask Documentation4-===================5-6-.. include:: contents.rst.incdeleted:docs/logo.pdfbinary
A binary file, deleted.
modified:docs/make.bat+35 added-36 removed
1-@ECHO OFF2-3-pushd %~dp04-5-REM Command file for Sphinx documentation6-7-if "%SPHINXBUILD%" == "" (8- set SPHINXBUILD=sphinx-build9-)10-set SOURCEDIR=.11-set BUILDDIR=_build12-set SPHINXPROJ=Flask13-14-if "%1" == "" goto help15-16-%SPHINXBUILD% >NUL 2>NUL17-if 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-)28-29-%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%30-goto end31-32-:help33-%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%34-35-:end36-popd1+@ECHO OFF2+3+pushd %~dp04+5+REM Command file for Sphinx documentation6+7+if "%SPHINXBUILD%" == "" (8+ set SPHINXBUILD=sphinx-build9+)10+set SOURCEDIR=.11+set BUILDDIR=_build12+13+if "%1" == "" goto help14+15+%SPHINXBUILD% >NUL 2>NUL16+if 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+)27+28+%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%29+goto end30+31+:help32+%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%33+34+:end35+popdmodified:docs/Makefile+1 added-2 removed
2 unmodified lines3 4 # You can set these variables from the command line.5 SPHINXOPTS =6 SPHINXBUILD = sphinx-build7-SPHINXPROJ = Flask7 SOURCEDIR = .8 BUILDDIR = _build9 10 # Put it first so that "make" without argument is like "make help".4 unmodified lines15 16 # 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
1-Sphinx~=1.8.02-Pallets-Sphinx-Themes~=1.1.01+Sphinx~=2.1.22+Pallets-Sphinx-Themes~=1.1.43 sphinxcontrib-log-cabinet~=1.0.04+sphinx-issues~=1.2.0