this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix log targets

+5 -5
+1 -1
src/dom.ts
··· 2 2 import { Readability } from '@mozilla/readability'; 3 3 import { Window } from 'happy-dom'; 4 4 5 - const log = debug('llms-txt-gen.dom'); 5 + const log = debug('llms-txt-gen:dom'); 6 6 7 7 export function parseBody(url: URL, html: string): Document { 8 8 const window = new Window({ url: `${url}` });
+1 -1
src/fetch.ts
··· 3 3 import * as path from 'node:path'; 4 4 import { makeCacheFileHelper } from './path'; 5 5 6 - const log = debug('llms-txt-gen.fetch'); 6 + const log = debug('llms-txt-gen:fetch'); 7 7 8 8 const cacheDir = path.join(process.cwd(), '.cache/fetch'); 9 9 await fs.mkdir(cacheDir, { recursive: true });
+1 -1
src/index.ts
··· 6 6 import { concatMarkdown } from './unified'; 7 7 import { formatMarkdown } from './prettier'; 8 8 9 - const log = debug('llms-txt-gen'); 9 + const log = debug('llms-txt-gen:main'); 10 10 11 11 interface Site extends CrawlOptions { 12 12 name: string;
+1 -1
src/page.ts
··· 9 9 import { rewriteMarkdown } from './rewrite'; 10 10 import { makeCacheFileHelper } from './path'; 11 11 12 - const log = debug('llms-txt-gen.graph'); 12 + const log = debug('llms-txt-gen:graph'); 13 13 14 14 export interface CrawlOptions { 15 15 baseURL: URL | string;
+1 -1
src/rewrite.ts
··· 7 7 8 8 import { makeCacheFileHelper } from './path'; 9 9 10 - const log = debug('llms-txt-gen.rewrite'); 10 + const log = debug('llms-txt-gen:rewrite'); 11 11 12 12 const cacheDir = path.join(process.cwd(), '.cache/rewrite'); 13 13 await fs.mkdir(cacheDir, { recursive: true });