conf.py
This file
Path
docs/conf.py
95 lines · 3.1 KiB · Python
Last changed by
Merge pull request #3270 from pallets/metadataDavid Lordbefore adoption31d3c7e
History of this fileTake it
The walk stopped after 200 commits: lines older than 85fa8aa point at it.
Merge pull request #3270 from pallets/metadataDavid Lordbefore adoption31d3c7e
lines 1–2why, one step back1from pallets_sphinx_themes import get_version2from pallets_sphinx_themes import ProjectLinkMerge pull request #2676 from davidism/tutorialDavid Lordbefore adoptionc3e2ff2
line 3why, one step back3Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
line 4why, one step back4# Project --------------------------------------------------------------Merge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
line 5why, one step back5Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
line 6why, one step back6project = "Flask"Merge pull request #3270 from pallets/metadataDavid Lordbefore adoption31d3c7e
lines 7–8why, one step back7copyright = "2010 Pallets"8author = "Pallets"Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
line 9why, one step back9release, version = get_version("Flask")Merge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
line 10why, one step back10Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
line 11why, one step back11# General --------------------------------------------------------------Merge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
line 12why, one step back12Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
line 13why, one step back13master_doc = "index"Merge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
line 14why, one step back14extensions = [Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
lines 15–18why, one step back15 "sphinx.ext.autodoc",16 "sphinx.ext.intersphinx",17 "sphinxcontrib.log_cabinet",18 "pallets_sphinx_themes",Merge pull request #3270 from pallets/metadataDavid Lordbefore adoption31d3c7e
line 19why, one step back19 "sphinx_issues",Merge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
line 20why, one step back20]Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
line 21why, one step back21intersphinx_mapping = {Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
line 22why, one step back22 "python": ("https://docs.python.org/3/", None),Merge pull request #3270 from pallets/metadataDavid Lordbefore adoption31d3c7e
line 23why, one step back23 "werkzeug": ("https://werkzeug.palletsprojects.com/", None),Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
lines 24–29why, one step back24 "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),Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
line 30why, one step back30}Merge pull request #3270 from pallets/metadataDavid Lordbefore adoption31d3c7e
line 31why, one step back31issues_github_path = "pallets/flask"Merge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
line 32why, one step back32Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
line 33why, one step back33# HTML -----------------------------------------------------------------Merge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
line 34why, one step back34Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
lines 35–36why, one step back35html_theme = "flask"36html_theme_options = {"index_sidebar_logo": False}Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
line 37why, one step back37html_context = {Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
lines 38–44why, one step back38 "project_links": [39 ProjectLink("Donate to Pallets", "https://palletsprojects.com/donate"),40 ProjectLink("Flask Website", "https://palletsprojects.com/p/flask/"),41 ProjectLink("PyPI releases", "https://pypi.org/project/Flask/"),42 ProjectLink("Source Code", "https://github.com/pallets/flask/"),43 ProjectLink("Issue Tracker", "https://github.com/pallets/flask/issues/"),44 ]Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
line 45why, one step back45}Merge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
line 46why, one step back46html_sidebars = {Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
lines 47–48why, one step back47 "index": ["project.html", "localtoc.html", "searchbox.html"],48 "**": ["localtoc.html", "relations.html", "searchbox.html"],Merge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
line 49why, one step back49}Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
lines 50–51why, one step back50singlehtml_sidebars = {"index": ["project.html", "localtoc.html"]}51html_static_path = ["_static"]Merge pull request #3270 from pallets/metadataDavid Lordbefore adoption31d3c7e
lines 52–53why, one step back52html_favicon = "_static/flask-icon.png"53html_logo = "_static/flask-icon.png"Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
line 54why, one step back54html_title = "Flask Documentation ({})".format(version)Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
line 55why, one step back55html_show_sourcelink = FalseMerge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
line 56why, one step back56Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
line 57why, one step back57# LaTeX ----------------------------------------------------------------Merge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
lines 58–59why, one step back5859latex_documents = [Merge pull request #3270 from pallets/metadataDavid Lordbefore adoption31d3c7e
line 60why, one step back60 (master_doc, "Flask-{}.tex".format(version), html_title, author, "manual")Merge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
lines 61–62why, one step back61]62Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
line 63why, one step back63# Local Extensions -----------------------------------------------------Merge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
lines 64–65why, one step back6465Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
line 66why, one step back66def github_link(name, rawtext, text, lineno, inliner, options=None, content=None):Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
lines 67–68why, one step back67 app = inliner.document.settings.env.app68 release = app.config.releaseMerge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
line 69why, one step back69 base_url = "https://github.com/pallets/flask/tree/"Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
line 70why, one step back70Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
lines 71–72why, one step back71 if text.endswith(">"):72 words, text = text[:-1].rsplit("<", 1)Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
lines 73–76why, one step back73 words = words.strip()74 else:75 words = None76Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
lines 77–78why, one step back77 if release.endswith("dev"):78 url = "{0}master/{1}".format(base_url, text)Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
line 79why, one step back79 else:Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
line 80why, one step back80 url = "{0}{1}/{2}".format(base_url, release, text)Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
lines 81–86why, one step back8182 if words is None:83 words = url8485 from docutils.nodes import reference86 from docutils.parsers.rst.roles import set_classesMerge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
line 87why, one step back87Merge pull request #2709 from davidism/docs-themeDavid Lordbefore adoption5fba092
lines 88–94why, one step back88 options = options or {}89 set_classes(options)90 node = reference(rawtext, words, refuri=url, **options)91 return [node], []929394def setup(app):Merge pull request #3064 from pallets/docs-fixDavid Lordbefore adoption1096e22
line 95why, one step back95 app.add_role("gh", github_link)