Skip to content

Commit af95bcf

Browse files
authored
fix: oz ingester (#25)
1 parent 33d0b69 commit af95bcf

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed
-1.67 MB
Binary file not shown.

packages/ingester/src/ingesters/AsciiDocIngester.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ import * as fs from 'fs/promises';
22
import * as path from 'path';
33
import downdoc from 'downdoc';
44
import { 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';
96
import { BaseIngester } from '../BaseIngester';
107
import {
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;

packages/ingester/src/ingesters/OpenZeppelinDocsIngester.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { logger } from '@cairo-coder/agents/utils/index';
88
import { AsciiDocIngesterConfig } from './AsciiDocIngester';
99
import { 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

0 commit comments

Comments
 (0)