conf.py 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Copyright 2025 Core Devices LLC
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # Configuration file for the Sphinx documentation builder.
  15. #
  16. # For the full list of built-in configuration values, see the documentation:
  17. # https://www.sphinx-doc.org/en/master/usage/configuration.html
  18. # -- Project information -----------------------------------------------------
  19. # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
  20. project = "PebbleOS"
  21. copyright = "2025, The PebbleOS Contributors"
  22. author = "The PebbleOS Contributors"
  23. release = "0.1.0"
  24. # -- General configuration ---------------------------------------------------
  25. # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
  26. extensions = [
  27. "myst_parser",
  28. "sphinx_design",
  29. ]
  30. exclude_patterns = ["_build", "legacy", "Thumbs.db", ".DS_Store"]
  31. nitpicky = True
  32. # -- Options for HTML output -------------------------------------------------
  33. # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
  34. html_theme = "sphinx_book_theme"
  35. html_static_path = ["_static"]
  36. html_logo = "_static/images/logo.svg"
  37. html_css_files = ["css/custom.css"]
  38. html_theme_options = {
  39. "logo": {
  40. "text": "PebbleOS",
  41. },
  42. "repository_url": "https://github.com/pebble-dev/pebble-firmware",
  43. "repository_branch": "main",
  44. "path_to_docs": "docs",
  45. "use_repository_button": True,
  46. "use_edit_page_button": True,
  47. "use_issues_button": True,
  48. }
  49. # -- Options for myst_parser extension -----------------------------------------
  50. # https://myst-parser.readthedocs.io/en/latest/configuration.html
  51. myst_enable_extensions = [
  52. "colon_fence",
  53. "fieldlist",
  54. ]