conf.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import datetime
  2. import pathlib
  3. import sys
  4. base = pathlib.Path(__file__).parent.parent.parent
  5. root = base.__str__()
  6. flipperzero = base.joinpath('flipperzero').__str__()
  7. now = datetime.datetime.now()
  8. sys.path.append(root)
  9. sys.path.append(flipperzero)
  10. project = 'uPython'
  11. copyright = str(now.year) + ', Oliver Fabel'
  12. author = 'Oliver Fabel'
  13. release = '1.1.0'
  14. version = '1.1'
  15. language = 'en'
  16. extensions = [
  17. 'sphinx.ext.autodoc',
  18. 'myst_parser'
  19. ]
  20. source_suffix = {
  21. '.rst': 'restructuredtext',
  22. '.md': 'markdown'
  23. }
  24. templates_path = [
  25. 'templates'
  26. ]
  27. exclude_patterns = []
  28. include_patterns = [
  29. '**'
  30. ]
  31. html_theme = 'alabaster'
  32. html_theme_options = {
  33. 'show_powered_by': False,
  34. 'extra_nav_links': {
  35. 'Source Code': 'https://www.github.com/ofabel/mp-flipper',
  36. 'Bugtracker': 'https://www.github.com/ofabel/mp-flipper/issues',
  37. 'Releases': 'https://lab.flipper.net/apps/upython'
  38. }
  39. }
  40. html_copy_source = False
  41. html_show_copyright = False
  42. html_show_sphinx = False
  43. html_static_path = [
  44. 'static'
  45. ]
  46. html_logo = 'assets/logo.png'
  47. html_favicon = 'assets/favicon.png'
  48. autodoc_default_options = {
  49. 'member-order': 'bysource',
  50. }
  51. add_module_names = True
  52. maximum_signature_line_length = 50