Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/data/coding-docs-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@
"output_path": "guides/integrations/open-webui.mdx",
"service_alias": "integrations",
"source_doc_key": "development_open_webui"
},
{
"canonical_alias": "development_cherry_studio",
"output_path": "guides/integrations/cherry-studio.mdx",
"service_alias": "integrations",
"source_doc_key": "development_cherry_studio"
}
]
}
9 changes: 9 additions & 0 deletions tests/test_sync_from_platformbackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ def test_integrations_exact_record_writes_discoverable_path(self) -> None:

self.assertTrue((output / "zh-Hans/guides/integrations/open-webui.mdx").is_file())

def test_cherry_studio_has_an_integration_output_record(self) -> None:
bundle = json.loads(sync.EXACT_MAP_PATH.read_text())
record = next(
row for row in bundle["records"] if row["source_doc_key"] == "development_cherry_studio"
)
self.assertEqual(record["service_alias"], "integrations")
self.assertEqual(record["output_path"], "guides/integrations/cherry-studio.mdx")
self.assertEqual(record["canonical_alias"], "development_cherry_studio")

def test_sync_guides_writes_exact_output_path(self) -> None:
with tempfile.TemporaryDirectory() as temporary_directory:
root = Path(temporary_directory)
Expand Down