fix: next round of cleanups

This commit is contained in:
2026-02-27 11:26:00 +01:00
parent c6edacba51
commit 18e0557ef5
25 changed files with 1021 additions and 1415 deletions

View File

@@ -27,14 +27,18 @@ describe('generateApiDocumentationMarkdownV1', () => {
expect(markdown).toContain('[↑ Back to Table of contents](#table-of-contents)');
});
it('documents chat APIs in a dedicated module section', () => {
it('documents sync and publish APIs in dedicated module sections', () => {
const markdown = generateApiDocumentationMarkdownV1();
expect(markdown).toContain('## chat');
expect(markdown).toContain('### chat.getConversations');
expect(markdown).toContain('### chat.sendMessage');
expect(markdown).toContain('- [chat](#chat)');
expect(markdown).toContain('- [chat.sendMessage](#chatsendmessage)');
expect(markdown).toContain('## sync');
expect(markdown).toContain('### sync.getRepoState');
expect(markdown).toContain('### sync.commitAll');
expect(markdown).toContain('- [sync](#sync)');
expect(markdown).toContain('## publish');
expect(markdown).toContain('### publish.uploadSite');
expect(markdown).toContain('- [publish](#publish)');
// chat namespace should not be present
expect(markdown).not.toContain('## chat');
});
it('includes a dedicated Data Structures section with core object shapes', () => {