This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 11069a6 committed Feb 17, 2024 · 7 / 8
1 parent f82bb0a commit 11069a6 Copy full SHA for 11069a6
File tree 2 files changed +8
-11
lines changed
2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ _Note: Additional secret store options may be supported in the future. [More inf
16
16
### Retrieving Secrets
17
17
18
18
``` python
19
- from airbyte_lib import get_secret, SecretSource
19
+ from airbyte import get_secret, SecretSource
20
20
21
21
source = get_connection(" source-github" )
22
22
source.set_config(
Original file line number Diff line number Diff line change 11
11
12
12
13
13
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 = []
21
16
22
17
# recursively delete the docs/generated folder if it exists
23
18
if pathlib .Path ("docs/generated" ).exists ():
24
19
shutil .rmtree ("docs/generated" )
25
20
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.
27
22
for submodule in os .listdir ("airbyte" ):
28
23
submodule_path = pathlib .Path (f"airbyte/{ submodule } " )
29
24
if not submodule .startswith ("_" ):
30
25
public_modules .append (submodule_path )
31
26
32
27
pdoc .render .configure (
33
28
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" ,
36
33
)
37
34
pdoc .pdoc (
38
35
* public_modules ,
You can’t perform that action at this time.
0 commit comments