-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(): generate docs for our Python SDK (#7612)
- Loading branch information
Showing
18 changed files
with
566 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
/.envrc | ||
/venv | ||
/_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
VENV_DIR ?= venv | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= $(VENV_DIR)/bin/sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
VENV_SENTINEL = $(VENV_DIR)/.sentinel | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: venv | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
venv: $(VENV_SENTINEL) | ||
|
||
$(VENV_SENTINEL): requirements.txt | ||
python3 -m venv $(VENV_DIR) | ||
$(VENV_DIR)/bin/pip install --upgrade pip wheel setuptools | ||
$(VENV_DIR)/bin/pip install -r requirements.txt | ||
touch $(VENV_SENTINEL) | ||
|
||
.PHONY: help html doctest linkcheck clean serve md | ||
|
||
# Not using Python's http.server because it enables caching headers. | ||
serve: | ||
serve -p 3001 _build/html/ | ||
|
||
md: html | ||
$(VENV_DIR)/bin/python3 convert_sphinx_to_docusaurus.py | ||
|
||
# Route other targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
html doctest linkcheck clean: venv Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Builder | ||
======= | ||
|
||
These classes and methods make it easier to construct MetadataChangeProposals and MetadataChangeEvents. | ||
|
||
.. automodule:: datahub.emitter.mcp | ||
|
||
.. automodule:: datahub.emitter.mce_builder | ||
|
||
.. automodule:: datahub.emitter.mcp_builder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Client | ||
====== | ||
|
||
The Kafka emitter or Rest emitter can be used to push metadata to DataHub. | ||
The DataHub graph client extends the Rest emitter with additional functionality. | ||
|
||
.. automodule:: datahub.emitter.rest_emitter | ||
|
||
.. automodule:: datahub.emitter.kafka_emitter | ||
|
||
.. automodule:: datahub.ingestion.graph.client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Models | ||
====== | ||
|
||
.. automodule:: datahub.metadata.schema_classes | ||
:exclude-members: construct_with_defaults, RECORD_SCHEMA, ASPECT_NAME, ASPECT_INFO | ||
:member-order: alphabetical |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,261 @@ | ||
/* | ||
* basic.css | ||
* ~~~~~~~~~ | ||
* | ||
* Sphinx stylesheet -- basic theme. | ||
* | ||
* :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. | ||
* :license: BSD, see LICENSE for details. | ||
* | ||
* DataHub Modifications: | ||
* - Removed most styles, which weren't super relevant. | ||
* - Remove font-weight on dl.field-list > dt | ||
* - Remove highlight-related styles. | ||
* | ||
*/ | ||
|
||
/* -- field list styles ----------------------------------------------------- */ | ||
|
||
table.field-list td, table.field-list th { | ||
border: 0 !important; | ||
} | ||
|
||
.field-list ul { | ||
margin: 0; | ||
padding-left: 1em; | ||
} | ||
|
||
.field-list p { | ||
margin: 0; | ||
} | ||
|
||
.field-name { | ||
-moz-hyphens: manual; | ||
-ms-hyphens: manual; | ||
-webkit-hyphens: manual; | ||
hyphens: manual; | ||
} | ||
|
||
/* -- hlist styles ---------------------------------------------------------- */ | ||
|
||
table.hlist { | ||
margin: 1em 0; | ||
} | ||
|
||
table.hlist td { | ||
vertical-align: top; | ||
} | ||
|
||
/* -- object description styles --------------------------------------------- */ | ||
|
||
.sig { | ||
font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; | ||
} | ||
|
||
.sig-name, code.descname { | ||
background-color: transparent; | ||
font-weight: bold; | ||
} | ||
|
||
.sig-name { | ||
font-size: 1.1em; | ||
} | ||
|
||
code.descname { | ||
font-size: 1.2em; | ||
} | ||
|
||
.sig-prename, code.descclassname { | ||
background-color: transparent; | ||
} | ||
|
||
.optional { | ||
font-size: 1.3em; | ||
} | ||
|
||
.sig-paren { | ||
font-size: larger; | ||
} | ||
|
||
.sig-param.n { | ||
font-style: italic; | ||
} | ||
|
||
/* C++ specific styling */ | ||
|
||
.sig-inline.c-texpr, | ||
.sig-inline.cpp-texpr { | ||
font-family: unset; | ||
} | ||
|
||
.sig.c .k, .sig.c .kt, | ||
.sig.cpp .k, .sig.cpp .kt { | ||
color: #0033B3; | ||
} | ||
|
||
.sig.c .m, | ||
.sig.cpp .m { | ||
color: #1750EB; | ||
} | ||
|
||
.sig.c .s, .sig.c .sc, | ||
.sig.cpp .s, .sig.cpp .sc { | ||
color: #067D17; | ||
} | ||
|
||
|
||
/* -- other body styles ----------------------------------------------------- */ | ||
|
||
ol.arabic { | ||
list-style: decimal; | ||
} | ||
|
||
ol.loweralpha { | ||
list-style: lower-alpha; | ||
} | ||
|
||
ol.upperalpha { | ||
list-style: upper-alpha; | ||
} | ||
|
||
ol.lowerroman { | ||
list-style: lower-roman; | ||
} | ||
|
||
ol.upperroman { | ||
list-style: upper-roman; | ||
} | ||
|
||
:not(li) > ol > li:first-child > :first-child, | ||
:not(li) > ul > li:first-child > :first-child { | ||
margin-top: 0px; | ||
} | ||
|
||
:not(li) > ol > li:last-child > :last-child, | ||
:not(li) > ul > li:last-child > :last-child { | ||
margin-bottom: 0px; | ||
} | ||
|
||
ol.simple ol p, | ||
ol.simple ul p, | ||
ul.simple ol p, | ||
ul.simple ul p { | ||
margin-top: 0; | ||
} | ||
|
||
ol.simple > li:not(:first-child) > p, | ||
ul.simple > li:not(:first-child) > p { | ||
margin-top: 0; | ||
} | ||
|
||
ol.simple p, | ||
ul.simple p { | ||
margin-bottom: 0; | ||
} | ||
|
||
aside.footnote > span, | ||
div.citation > span { | ||
float: left; | ||
} | ||
aside.footnote > span:last-of-type, | ||
div.citation > span:last-of-type { | ||
padding-right: 0.5em; | ||
} | ||
aside.footnote > p { | ||
margin-left: 2em; | ||
} | ||
div.citation > p { | ||
margin-left: 4em; | ||
} | ||
aside.footnote > p:last-of-type, | ||
div.citation > p:last-of-type { | ||
margin-bottom: 0em; | ||
} | ||
aside.footnote > p:last-of-type:after, | ||
div.citation > p:last-of-type:after { | ||
content: ""; | ||
clear: both; | ||
} | ||
|
||
dl.field-list { | ||
display: grid; | ||
grid-template-columns: fit-content(30%) auto; | ||
} | ||
|
||
dl.field-list > dt { | ||
/* font-weight: bold; */ | ||
word-break: break-word; | ||
padding-left: 0.5em; | ||
padding-right: 5px; | ||
} | ||
|
||
dl.field-list > dd { | ||
padding-left: 0.5em; | ||
margin-top: 0em; | ||
margin-left: 0em; | ||
margin-bottom: 0em; | ||
} | ||
|
||
dl { | ||
margin-bottom: 15px; | ||
} | ||
|
||
dd > :first-child { | ||
margin-top: 0px; | ||
} | ||
|
||
dd ul, dd table { | ||
margin-bottom: 10px; | ||
} | ||
|
||
dd { | ||
margin-top: 3px; | ||
margin-bottom: 10px; | ||
margin-left: 30px; | ||
} | ||
|
||
dl > dd:last-child, | ||
dl > dd:last-child > :last-child { | ||
margin-bottom: 0; | ||
} | ||
|
||
dl.glossary dt { | ||
font-weight: bold; | ||
font-size: 1.1em; | ||
} | ||
|
||
.line-block { | ||
display: block; | ||
margin-top: 1em; | ||
margin-bottom: 1em; | ||
} | ||
|
||
.line-block .line-block { | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
margin-left: 1.5em; | ||
} | ||
|
||
.guilabel, .menuselection { | ||
font-family: sans-serif; | ||
} | ||
|
||
.accelerator { | ||
text-decoration: underline; | ||
} | ||
|
||
.classifier { | ||
font-style: oblique; | ||
} | ||
|
||
.classifier:before { | ||
font-style: normal; | ||
margin: 0 0.5em; | ||
content: ":"; | ||
display: inline-block; | ||
} | ||
|
||
abbr, acronym { | ||
border-bottom: dotted 1px; | ||
cursor: help; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DataHub CLI | ||
=========== | ||
|
||
.. click:: datahub.entrypoints:datahub | ||
:prog: datahub | ||
:nested: full |
Oops, something went wrong.