Skip to content
Snippets Groups Projects
Select Git revision
  • f189fff08ec2f7fd81e14899fe7400bbc1f85cfc
  • master default protected
  • backslash
  • nickname-match-configs
  • genofire/leds_rgb_get_state
  • genofire/rockets-state
  • genofire/ble-follow-py
  • plaetzchen/ios-workaround
  • blinkisync-as-preload
  • genofire/haule-ble-fs-deactive
  • schneider/max30001-pycardium
  • schneider/max30001-epicaridum
  • schneider/max30001
  • schneider/stream-locks
  • ios-workarounds
  • schneider/fundamental-test
  • schneider/ble-buffers
  • schneider/maxim-sdk-update
  • ch3/splashscreen
  • koalo/bhi160-works-but-dirty
  • koalo/wip/i2c-for-python
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
34 results

ble_main.c

Blame
  • Forked from card10 / firmware
    Source project has a limited visibility.
    conf.py 2.45 KiB
    import os
    import sys
    import shutil
    import subprocess
    import time
    
    # Configuration file for the Sphinx documentation builder.
    #
    # For the full list of built-in configuration values, see the documentation:
    # https://www.sphinx-doc.org/en/master/usage/configuration.html
    
    # -- Project information -----------------------------------------------------
    # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
    
    project = 'flow3r'
    copyright = '2023'
    author = 'ccc'
    
    # The full version, including alpha/beta/rc tags
    release = (
        subprocess.check_output(["git", "describe", "--tags", "--long", "--always"]).decode().strip()
    )
    release += "\n"
    release += time.strftime("%F %R")
    version = release
    
    # -- General configuration ---------------------------------------------------
    # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
    
    extensions = [
        'sphinx_rtd_theme',
        'sphinx.ext.autodoc',
        'sphinx_multiversion',
    ]
    
    templates_path = ['_templates']
    exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
    
    pygments_style = 'sphinx'
    
    maximum_signature_line_length = 120
    
    
    # -- Options for HTML output -------------------------------------------------
    # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
    
    html_theme = 'sphinx_rtd_theme'
    html_static_path = ['_static']
    html_logo = 'badge-logo-pink.png'
    html_css_files = [
        'css/custom.css',
    ]
    html_theme_options = {
        'logo_only': True,
        'style_nav_header_background': "#000",
        'style_external_links': True,
    }
    
    # Show "Edit on GitLab" links
    html_show_sourcelink = False
    html_context = {
        'display_gitlab': True,
        'gitlab_host': "git.flow3r.garden",
        'gitlab_user': "flow3r",
        'gitlab_repo': "flow3r-firmware",
        'gitlab_version': "main/",
        'conf_py_path': "docs/",
        'theme_vcs_pageview_mode': "edit",
    }
    
    smv_tag_whitelist = r'$^'
    smv_branch_whitelist = r'^v\d+\.\d+\.\d+$|^dev$'
    
    if False:
        # for local testing
        smv_remote_whitelist = r'^origin$'
        smv_branch_whitelist = r'^release/\d+\.\d+\.\d+$|^main$'
    
    def setup(app):
        tmpdir = "_build/mypystubs"
        shutil.rmtree(tmpdir, ignore_errors=True)
        shutil.copytree("../python_payload/mypystubs", tmpdir)
        for filename in os.listdir(tmpdir):
            full_path = os.path.join(tmpdir, filename)
            os.rename(full_path, full_path.replace(".pyi", ".py"))
    
        sys.path.insert(0, os.path.abspath(tmpdir))
        sys.path.insert(1, os.path.abspath("../python_payload"))