| 
									
										
										
										
											2023-03-29 08:53:20 +05:30
										 |  |  | # 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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-30 18:11:36 -05:00
										 |  |  | # See https://stackoverflow.com/a/65147676 | 
					
						
							|  |  |  | import builtins | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | builtins.__sphinx_build__ = True | 
					
						
							| 
									
										
										
										
											2023-03-29 08:53:20 +05:30
										 |  |  | 
 | 
					
						
							|  |  |  | # -- Project information ----------------------------------------------------- | 
					
						
							|  |  |  | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | project = "DataHub Python SDK" | 
					
						
							|  |  |  | copyright = "2023, Acryl Data" | 
					
						
							|  |  |  | author = "Acryl Data" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # -- General configuration --------------------------------------------------- | 
					
						
							|  |  |  | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | extensions = [ | 
					
						
							|  |  |  |     "sphinx.ext.autodoc", | 
					
						
							|  |  |  |     # TODO: set up 'sphinx.ext.viewcode' | 
					
						
							|  |  |  |     # Via https://stackoverflow.com/a/51312475/5004662. | 
					
						
							|  |  |  |     "sphinx.ext.napoleon", | 
					
						
							|  |  |  |     "sphinx_autodoc_typehints", | 
					
						
							|  |  |  |     # This enables us to autogenerate docs for our CLI. | 
					
						
							|  |  |  |     "sphinx_click", | 
					
						
							| 
									
										
										
										
											2025-06-13 16:50:19 +09:00
										 |  |  |     "sphinx_markdown_builder", | 
					
						
							| 
									
										
										
										
											2023-03-29 08:53:20 +05:30
										 |  |  | ] | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-06-13 16:50:19 +09:00
										 |  |  | markdown_anchor_sections = True | 
					
						
							| 
									
										
										
										
											2023-03-29 08:53:20 +05:30
										 |  |  | napoleon_use_param = True | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Move type hint info to function description instead of signature | 
					
						
							|  |  |  | # Via: https://chromium.googlesource.com/external/github.com/reclosedev/requests-cache/+/refs/heads/master/docs/conf.py#104. | 
					
						
							|  |  |  | autodoc_typehints = "description" | 
					
						
							|  |  |  | always_document_param_types = True | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | templates_path = ["_templates"] | 
					
						
							|  |  |  | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "venv"] | 
					
						
							|  |  |  | source_suffix = [".rst"] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | autodoc_default_options = { | 
					
						
							|  |  |  |     "members": True, | 
					
						
							|  |  |  |     "member-order": "bysource", | 
					
						
							|  |  |  |     "undoc-members": True, | 
					
						
							|  |  |  |     "show-inheritance": True, | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | autodoc_mock_imports = [ | 
					
						
							|  |  |  |     "confluent_kafka", | 
					
						
							|  |  |  | ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # -- Options for HTML output ------------------------------------------------- | 
					
						
							|  |  |  | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # html_theme = "alabaster" | 
					
						
							|  |  |  | html_theme = "pydata_sphinx_theme" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | html_static_path = ["_static"] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # TODO enable html_show_sourcelink |