File tree 2 files changed +1
-36
lines changed
2 files changed +1
-36
lines changed Original file line number Diff line number Diff line change @@ -145,10 +145,6 @@ export default defineConfig({
145
145
// Mostly autogenerated to stay in sync with the codebase.
146
146
label : "Reference" ,
147
147
items : [
148
- {
149
- label : "Configuration Reference" ,
150
- link : "/reference/nativelink-config/" ,
151
- } ,
152
148
{
153
149
label : "Glossary" ,
154
150
link : "/reference/glossary/" ,
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments