Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /piccolo-orm_piccolo_api /docs /source /conf.py
| # Configuration file for the Sphinx documentation builder. | |
| # | |
| # This file only contains a selection of the most common options. For a full | |
| # list see the documentation: | |
| # http://www.sphinx-doc.org/en/master/config | |
| # -- Path setup -------------------------------------------------------------- | |
| # If extensions (or modules to document with autodoc) are in another directory, | |
| # add these directories to sys.path here. If the directory is relative to the | |
| # documentation root, use os.path.abspath to make it absolute, like shown here. | |
| # | |
| import datetime | |
| import os | |
| import sys | |
| sys.path.insert(0, os.path.abspath("../..")) | |
| # -- Project information ----------------------------------------------------- | |
| project = "Piccolo API" | |
| year = datetime.datetime.now().strftime("%Y") | |
| author = "Daniel Townsend" | |
| copyright = f"{year}, {author}" | |
| import piccolo_api # noqa | |
| version = ".".join(piccolo_api.__VERSION__.split(".")[:2]) | |
| release = piccolo_api.__VERSION__ | |
| # -- General configuration --------------------------------------------------- | |
| master_doc = "index" | |
| extensions = [] | |
| # -- Autodoc ----------------------------------------------------------------- | |
| extensions += ["sphinx.ext.autodoc"] | |
| autodoc_typehints = "signature" | |
| autodoc_typehints_format = "short" | |
| autoclass_content = "both" | |
| autodoc_type_aliases = { | |
| "ASGIApp": "ASGIApp", | |
| "PreLoginHook": "PreLoginHook", | |
| "LoginSuccessHook": "LoginSuccessHook", | |
| "LoginFailureHook": "LoginFailureHook", | |
| } | |
| autodoc_preserve_defaults = True | |
| # -- Intersphinx ------------------------------------------------------------- | |
| extensions += ["sphinx.ext.intersphinx"] | |
| intersphinx_mapping = { | |
| "python": ("https://docs.python.org/3", None), | |
| "piccolo": ("https://piccolo-orm.readthedocs.io/en/latest/", None), | |
| "boto3": ( | |
| "https://boto3.amazonaws.com/v1/documentation/api/latest/", | |
| None, | |
| ), | |
| } | |
| # -- Viewcode ------------------------------------------------------------- | |
| extensions += ["sphinx.ext.viewcode"] | |
| # -- Options for HTML output ------------------------------------------------- | |
| # The theme to use for HTML and HTML Help pages. See the documentation for | |
| # a list of builtin themes. | |
| # | |
| html_theme = "piccolo_theme" | |
| html_short_title = "Piccolo API" | |
| html_theme_options = { | |
| "source_url": "https://github.com/piccolo-orm/piccolo_api/" | |
| } | |
Xet Storage Details
- Size:
- 2.32 kB
- Xet hash:
- b52eb07e4f931b6ad7ce0550d73b892633dbf2bf4e5f37bfeaf4001f0ce3a8ec
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.