Advertisement
Guest User

Untitled

a guest
Aug 27th, 2022
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.85 KB | None | 0 0
  1. # Configuration file for the Sphinx documentation builder.
  2. #
  3. # For the full list of built-in configuration values, see the documentation:
  4. # https://www.sphinx-doc.org/en/master/usage/configuration.html
  5.  
  6. # -- Project information -----------------------------------------------------
  7. # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
  8.  
  9. from sphinx.builders.html import StandaloneHTMLBuilder
  10. import subprocess, os
  11. #subprocess.call("doxygen Doxyfile", shell=True)
  12.  
  13. project = "hyperion-utils"
  14. copyright = "2022, Braxton Salyer <braxtonsalyer@gmail.com>"
  15. author = "Braxton Salyer <braxtonsalyer@gmail.com>"
  16.  
  17.  
  18. # -- General configuration ---------------------------------------------------
  19. # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
  20.  
  21.  
  22. extensions = [
  23.     "sphinx.ext.autodoc",
  24.     "sphinx.ext.autosummary",
  25.     "sphinx.ext.intersphinx",
  26.     "sphinx.ext.autosectionlabel",
  27.     "sphinx.ext.todo",
  28.     "sphinx.ext.coverage",
  29.     "sphinx.ext.mathjax",
  30.     "sphinx.ext.ifconfig",
  31.     "sphinx.ext.viewcode",
  32.     "sphinx.ext.inheritance_diagram",
  33.     "sphinx_sitemap",
  34.     "sphinx_toolbox.code",
  35.     #"breathe",
  36.     "myst_parser",
  37. ]
  38. myst_enable_extensions = [
  39.     "amsmath",
  40.     "colon_fence",
  41.     "deflist",
  42.     "dollarmath",
  43.     "fieldlist",
  44.     "html_admonition",
  45.     "html_image",
  46.     "linkify",
  47.     "replacements",
  48.     "smartquotes",
  49.     "strikethrough",
  50.     "substitution",
  51.     "tasklist",
  52. ]
  53.  
  54. templates_path = ["_templates"]
  55. exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
  56.  
  57. highlight_language = "c++"
  58.  
  59. # -- Options for HTML output -------------------------------------------------
  60. # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
  61.  
  62. autosummary_generate = True
  63. html_theme = "pydata_sphinx_theme"
  64. html_theme_options = {
  65.     "github_url": "https://github.com/braxtons12/Hyperion-Utils",
  66.    
  67.     # Toc options
  68.     "header_links_before_dropdown": 8,
  69.     "show_toc_level": 1,
  70.     "navigation_depth": 2,
  71.     "show_nav_level": 0,
  72.     "pygment_light_style": "manni",
  73.     "pygment_dark_style": "manni",
  74.     "navbar_start": ["navbar-logo", "theme-switcher"],
  75.     "navbar_center": ["navbar-nav"],
  76.     "navbar_end": ["navbar-icon-links"],
  77.     "page_sidebar_items": ["page-toc"],
  78.     "footer_items": ["copyright", "last-updated", "sphinx-version"],
  79. }
  80. html_sidebars = {
  81.         "**": ["search-field", "navbar-nav", "sidebar-nav-bs", "sidebar-ethical-ads"]
  82. }
  83. html_context = {
  84.     "default_mode": "dark"
  85. }
  86. html_static_path = ["_static"]
  87. rst_prolog = """
  88. .. role:: cpp(code)
  89.   :language: cpp
  90.   :class: highlight
  91.  
  92. .. role:: rust(code)
  93.   :language: rust
  94.   :class: highlight
  95.  
  96. """
  97.  
  98. #breathe_projects = {
  99. #    "hyperion-utils": "_build/xml"
  100. #}
  101. #breathe_default_project = "hyperion-utils"
  102. #breathe_default_members = ("members")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement