Skip to content

Commit 9becf13

Browse files
authored
Docs: Cleanup auto-generated reference docs (#46)
1 parent 65b86dd commit 9becf13

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ _Note: Additional secret store options may be supported in the future. [More inf
1616
### Retrieving Secrets
1717

1818
```python
19-
from airbyte_lib import get_secret, SecretSource
19+
from airbyte import get_secret, SecretSource
2020

2121
source = get_connection("source-github")
2222
source.set_config(

airbyte/exceptions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
22

3-
"""All exceptions used in the Airbyte Lib.
3+
"""All exceptions used in the PyAirbyte.
44
55
This design is modeled after structlog's exceptions, in that we bias towards auto-generated
66
property prints rather than sentence-like string concatenation.
@@ -111,7 +111,7 @@ def __repr__(self) -> str:
111111

112112
@dataclass
113113
class AirbyteLibInternalError(AirbyteError):
114-
"""An internal error occurred in Airbyte Lib."""
114+
"""An internal error occurred in PyAirbyte."""
115115

116116
guidance = "Please consider reporting this error to the Airbyte team."
117117
help_url = NEW_ISSUE_URL
@@ -125,7 +125,7 @@ class AirbyteLibInputError(AirbyteError, ValueError):
125125
"""The input provided to PyAirbyte did not match expected validation rules.
126126
127127
This inherits from ValueError so that it can be used as a drop-in replacement for
128-
ValueError in the Airbyte Lib API.
128+
ValueError in the PyAirbyte API.
129129
"""
130130

131131
# TODO: Consider adding a help_url that links to the auto-generated API reference.

docs/generate.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,25 @@
1111

1212

1313
def run() -> None:
14-
"""Generate docs for all public modules in airbyte_lib and save them to docs/generated.
15-
16-
Public modules are:
17-
* The main airbyte_lib module
18-
* All directory modules in airbyte_lib that don't start with an underscore.
19-
"""
20-
public_modules = ["airbyte"]
14+
"""Generate docs for all public modules in AirbyteLib and save them to docs/generated."""
15+
public_modules = []
2116

2217
# recursively delete the docs/generated folder if it exists
2318
if pathlib.Path("docs/generated").exists():
2419
shutil.rmtree("docs/generated")
2520

26-
# All files and folders in `airbyte_lib` that don't start with "_" are treated as public.
21+
# All files and folders that don't start with "_" are treated as public.
2722
for submodule in os.listdir("airbyte"):
2823
submodule_path = pathlib.Path(f"airbyte/{submodule}")
2924
if not submodule.startswith("_"):
3025
public_modules.append(submodule_path)
3126

3227
pdoc.render.configure(
3328
template_directory="docs",
34-
show_source=False,
35-
search=False,
29+
show_source=True,
30+
search=True,
31+
logo="https://docs.airbyte.com/img/logo-dark.png",
32+
favicon="https://docs.airbyte.com/img/favicon.png",
3633
)
3734
pdoc.pdoc(
3835
*public_modules,

0 commit comments

Comments
 (0)