Skip to content

Commit

Permalink
fix: use BASE_CONNECTOR_PATH context var for readme_link
Browse files Browse the repository at this point in the history
  • Loading branch information
the-forest-tree authored and the-forest-tree committed Sep 18, 2023
1 parent b55c813 commit a131982
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hrflow_connectors/core/documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ def update_root_readme(connectors: t.List[Connector], root: Path) -> t.Dict:
" {pull_job_list_status} | {push_profile_status} | {push_job_status} |"
).format(
name=match.group("name"),
readme_link="./src/hrflow_connectors/connectors/{}/README.md".format(
model.name.lower()
readme_link="./{base_connector_path}/{connector}/README.md".format(
base_connector_path=BASE_CONNECTOR_PATH.get().strip("/"),
connector=model.name.lower(),
),
type=model.type.value,
release_date=match.group("release_date"),
Expand Down

0 comments on commit a131982

Please sign in to comment.