MCPcopy Create free account
hub / github.com/continuedev/continue / chunkArticle

Function chunkArticle

core/indexing/docs/article.ts:107–121  ·  view source on GitHub ↗
(article: Article, maxChunkSize: number)

Source from the content-addressed store, hash-verified

105}
106
107function chunkArticle(article: Article, maxChunkSize: number): Chunk[] {
108 const chunks: Chunk[] = [];
109
110 for (const component of article.article_components) {
111 const articleChunks = breakdownArticleComponent(
112 article.url,
113 component,
114 article.subpath,
115 maxChunkSize,
116 );
117 chunks.push(...articleChunks);
118 }
119
120 return chunks;
121}
122
123export async function htmlPageToArticleWithChunks(
124 page: PageData,

Callers 1

Calls 2

pushMethod · 0.65

Tested by

no test coverage detected