conf.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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.4.0'
  14. version = '1.4'
  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_scaled_image_link = False
  41. html_copy_source = False
  42. html_show_copyright = False
  43. html_show_sphinx = False
  44. html_static_path = [
  45. 'static'
  46. ]
  47. html_logo = 'assets/logo.png'
  48. html_favicon = 'assets/favicon.png'
  49. autodoc_default_options = {
  50. 'member-order': 'bysource',
  51. }
  52. add_module_names = True
  53. maximum_signature_line_length = 50