Skip to content

Commit 15a0ddb

Browse files
committed
Fix broken docs-data update scheduled CI job
1 parent 7726320 commit 15a0ddb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pulp_docs/openapi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
from mkdocs.config import load_config
1414

15+
from pulp_docs.cli import get_default_mkdocs
1516
from pulp_docs.plugin import ComponentOption
1617

1718
BASE_TMPDIR_NAME = "pulpdocs_tmp"
@@ -27,7 +28,7 @@ def filter_plugin(name: str) -> bool:
2728
return name in plugins_filter or name == "pulpcore"
2829

2930
def get_plugins() -> list[ComponentOption]:
30-
mkdocs_yml = str(CURRENT_DIR.parent.parent / "mkdocs.yml")
31+
mkdocs_yml = str(get_default_mkdocs())
3132
pulpdocs_plugin = load_config(mkdocs_yml).plugins["PulpDocs"]
3233
all_components = pulpdocs_plugin.config.components
3334
return [c for c in all_components if c.rest_api]

0 commit comments

Comments
 (0)