mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-11-23 03:43:52 +00:00
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
Co-authored-by: Hanzo Dev <[email protected]>
20 lines
493 B
TypeScript
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();
|