File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,7 @@ import * as fs from 'fs/promises';
22import * as path from 'path' ;
33import downdoc from 'downdoc' ;
44import { Document } from '@langchain/core/documents' ;
5- import {
6- BookChunk ,
7- DocumentSource ,
8- } from '@cairo-coder/agents/types/index' ;
5+ import { BookChunk , DocumentSource } from '@cairo-coder/agents/types/index' ;
96import { BaseIngester } from '../BaseIngester' ;
107import {
118 BookConfig ,
@@ -68,7 +65,7 @@ export abstract class AsciiDocIngester extends BaseIngester {
6865
6966 // Run Antora to generate the documentation
7067 logger . info ( 'Running Antora to build documentation' ) ;
71- const antoraCommand = `antora ${ this . playbookPath } ` ;
68+ const antoraCommand = `antora ${ this . playbookPath } --fetch ` ;
7269
7370 // Find the package root by looking for package.json
7471 let packageRoot = __dirname ;
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import { logger } from '@cairo-coder/agents/utils/index';
88import { AsciiDocIngesterConfig } from './AsciiDocIngester' ;
99import { AsciiDocIngester } from './AsciiDocIngester' ;
1010
11+ const OZ_VERSION = 'v2.0.0' ;
12+
1113/**
1214 * Ingester for the OpenZeppelin documentation
1315 *
@@ -90,7 +92,7 @@ export class OpenZeppelinDocsIngester extends AsciiDocIngester {
9092 // This is the special handling for OpenZeppelin docs
9193 const adaptedFullPageName = path . join (
9294 'contracts-cairo' ,
93- '1.0.0' ,
95+ OZ_VERSION ,
9496 relativePath ,
9597 ) ;
9698
You can’t perform that action at this time.
0 commit comments