Skip to content
Merged
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
Binary file modified packages/ingester/asciidoc/oz-ui-bundle.zip
Binary file not shown.
7 changes: 2 additions & 5 deletions packages/ingester/src/ingesters/AsciiDocIngester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion packages/ingester/src/ingesters/OpenZeppelinDocsIngester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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,
);

Expand Down