Skip to content

Commit 3aa4f94

Browse files
authored
Temporarily disable rustdoc autogen (TraceMachina#1101)
1 parent dda8c31 commit 3aa4f94

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed

docs/astro.config.mjs

-4
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ export default defineConfig({
145145
// Mostly autogenerated to stay in sync with the codebase.
146146
label: "Reference",
147147
items: [
148-
{
149-
label: "Configuration Reference",
150-
link: "/reference/nativelink-config/",
151-
},
152148
{
153149
label: "Glossary",
154150
link: "/reference/glossary/",

docs/scripts/metaphase_aot.ts

+1-32
Original file line numberDiff line numberDiff line change
@@ -1,32 +1 @@
1-
// biome-ignore lint/correctness/noNodejsModules: Always runs ahead of time.
2-
import { join } from "node:path";
3-
import { generateAstroContent } from "./metaphase";
4-
import type { Crate } from "./rustdoc_types";
5-
6-
export async function generateDocs(config: {
7-
crateDataPath: string;
8-
outputPath: string;
9-
}) {
10-
try {
11-
const crateDataPath = join(import.meta.dir, config.crateDataPath);
12-
const crateData: Crate = JSON.parse(await Bun.file(crateDataPath).text());
13-
14-
const markdownContent = generateAstroContent(crateData);
15-
16-
const outputPath = join(import.meta.dir, config.outputPath);
17-
await Bun.write(outputPath, markdownContent);
18-
19-
console.info(`Generated: ${outputPath}`);
20-
} catch (error) {
21-
console.error("An error occurred during generation:", error);
22-
}
23-
}
24-
25-
// Only run if this file is being executed directly
26-
if (import.meta.main) {
27-
await generateDocs({
28-
crateDataPath:
29-
"../../bazel-bin/nativelink-config/docs_json.rustdoc/nativelink_config.json",
30-
outputPath: "../src/content/docs/reference/nativelink-config.mdx",
31-
});
32-
}
1+
// TODO: Re-enable when docs are stable

0 commit comments

Comments
 (0)