| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- import datetime
- import pathlib
- import sys
- base = pathlib.Path(__file__).parent.parent.parent
- root = base.__str__()
- flipperzero = base.joinpath("flipperzero").__str__()
- sys.path.append(root)
- sys.path.append(flipperzero)
- def copy_dict(source, target):
- for key, value in source.__dict__.items():
- target.__dict__[key] = value
- import flipperzero.logging
- import logging
- copy_dict(flipperzero.logging, logging)
- import flipperzero.io
- import io
- copy_dict(flipperzero.io, io)
- now = datetime.datetime.now()
- project = "uPython"
- copyright = str(now.year) + ", Oliver Fabel"
- author = "Oliver Fabel"
- release = "1.5.0"
- version = "1.5"
- language = "en"
- extensions = ["sphinx.ext.autodoc", "myst_parser"]
- source_suffix = {".rst": "restructuredtext", ".md": "markdown"}
- templates_path = ["templates"]
- exclude_patterns = []
- include_patterns = ["**"]
- html_theme = "alabaster"
- html_theme_options = {
- "show_powered_by": False,
- "extra_nav_links": {
- "Source Code": "https://www.github.com/ofabel/mp-flipper",
- "Bugtracker": "https://www.github.com/ofabel/mp-flipper/issues",
- "Releases": "https://lab.flipper.net/apps/upython",
- },
- }
- html_scaled_image_link = False
- html_copy_source = False
- html_show_copyright = False
- html_show_sphinx = False
- html_static_path = ["static"]
- html_logo = "assets/logo.png"
- html_favicon = "assets/favicon.png"
- autodoc_default_options = {
- "member-order": "bysource",
- }
- add_module_names = True
- maximum_signature_line_length = 50
|