Files
zooqueenandHanzo Dev 685c94fd09
Hanzo CI/CD / test (linux-amd64) (push) Skipped
Hanzo CI/CD / test (linux-arm64) (push) Skipped
Hanzo CI/CD / test-advisory (push) Skipped
Hanzo CI/CD / test-amd64 (push) Successful in 8m7s
Hanzo CI/CD / cicd (push) Skipped
Hanzo CI/CD / verify (push) Skipped
CI/CD / cicd (push) Successful in 8m9s
refactor(ts): standardize scripts, helpers, and Next configs to .ts
Co-authored-by: Hanzo Dev <[email protected]>
2026-11-10 18:49:10 -08:00

20 lines
493 B
TypeScript

import { rimraf } from 'rimraf';
import * as Python from '@hanzo/docs-python';
import * as fs from 'node:fs/promises';
async function generate() {
const out = 'content/docs/httpx';
await rimraf(out);
const content = JSON.parse(await fs.readFile('./httpx.json', 'utf-8'));
const converted = Python.convert(content, {
baseUrl: '/docs',
}).filter((file) => !file.path.startsWith('httpx/_transports'));
await Python.write(converted, {
outDir: out,
});
}
void generate();