Skip to content

Commit 5d36c9e

Browse files
authored
Patch out generating CLI docs for rich (#409)
* Patch out generating CLI docs for richclient.py (there is no client operations in that file)
1 parent 6903fd1 commit 5d36c9e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tools/run_in_docker/generate_client_api_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pip install --upgrade "pydoc-markdown>3" &> /dev/null
88

99
mkdir -p /auto_generated/client_api
1010
for f in rucio/lib/rucio/client/*.py; do
11-
if [[ $f =~ "__init__" ]]; then
11+
if [[ $f =~ "__init__" ]] || [[ $f =~ "richclient" ]]; then
1212
continue
1313
fi
1414

tools/run_in_docker/rucio_renderer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ def render_recursive(self, obj: docspec.ApiObject) -> None:
5555

5656
def render(self, modules: t.List[docspec.Module]) -> None:
5757
client_class = get_first_client_class(modules)
58-
assert client_class, "Client Class should not be empty"
58+
assert (
59+
client_class
60+
), f"Client Class should not be empty, error with {modules[0].name}"
5961

6062
print("---")
6163
print(f"title: {client_class.name}")

0 commit comments

Comments
 (0)