diff --git a/packages/ingester/asciidoc/oz-ui-bundle.zip b/packages/ingester/asciidoc/oz-ui-bundle.zip index ecc4478d..b8c02eb3 100644 Binary files a/packages/ingester/asciidoc/oz-ui-bundle.zip and b/packages/ingester/asciidoc/oz-ui-bundle.zip differ diff --git a/packages/ingester/src/ingesters/AsciiDocIngester.ts b/packages/ingester/src/ingesters/AsciiDocIngester.ts index d3e4b4b7..988dcb1c 100644 --- a/packages/ingester/src/ingesters/AsciiDocIngester.ts +++ b/packages/ingester/src/ingesters/AsciiDocIngester.ts @@ -2,10 +2,7 @@ import * as fs from 'fs/promises'; import * as path from 'path'; import downdoc from 'downdoc'; import { Document } from '@langchain/core/documents'; -import { - BookChunk, - DocumentSource, -} from '@cairo-coder/agents/types/index'; +import { BookChunk, DocumentSource } from '@cairo-coder/agents/types/index'; import { BaseIngester } from '../BaseIngester'; import { BookConfig, @@ -68,7 +65,7 @@ export abstract class AsciiDocIngester extends BaseIngester { // Run Antora to generate the documentation logger.info('Running Antora to build documentation'); - const antoraCommand = `antora ${this.playbookPath}`; + const antoraCommand = `antora ${this.playbookPath} --fetch`; // Find the package root by looking for package.json let packageRoot = __dirname; diff --git a/packages/ingester/src/ingesters/OpenZeppelinDocsIngester.ts b/packages/ingester/src/ingesters/OpenZeppelinDocsIngester.ts index a7a4d5bd..fef8ee22 100644 --- a/packages/ingester/src/ingesters/OpenZeppelinDocsIngester.ts +++ b/packages/ingester/src/ingesters/OpenZeppelinDocsIngester.ts @@ -8,6 +8,8 @@ import { logger } from '@cairo-coder/agents/utils/index'; import { AsciiDocIngesterConfig } from './AsciiDocIngester'; import { AsciiDocIngester } from './AsciiDocIngester'; +const OZ_VERSION = 'v2.0.0'; + /** * Ingester for the OpenZeppelin documentation * @@ -90,7 +92,7 @@ export class OpenZeppelinDocsIngester extends AsciiDocIngester { // This is the special handling for OpenZeppelin docs const adaptedFullPageName = path.join( 'contracts-cairo', - '1.0.0', + OZ_VERSION, relativePath, );