1
1
/**
2
2
* Guide Inference Scheduling Remote Content
3
- *
3
+ *
4
4
* Downloads the inference scheduling README.md file from the llm-d-infra repository
5
5
* and transforms it into docs/guide/Installation/inference-scheduling.md
6
6
*/
@@ -15,11 +15,11 @@ export default [
15
15
sourceBaseUrl : 'https://raw.githubusercontent.com/llm-d-incubation/llm-d-infra/main/' ,
16
16
outDir : 'docs/guide/Installation' ,
17
17
documents : [ 'quickstart/examples/inference-scheduling/README.md' ] ,
18
-
18
+
19
19
// Plugin behavior
20
20
noRuntimeDownloads : false , // Download automatically when building
21
21
performCleanup : true , // Clean up files after build
22
-
22
+
23
23
// Transform the content for this specific document
24
24
modifyContent ( filename , content ) {
25
25
if ( filename === 'quickstart/examples/inference-scheduling/README.md' ) {
@@ -35,24 +35,40 @@ export default [
35
35
content,
36
36
// Transform content to work in docusaurus context
37
37
contentTransform : ( content ) => content
38
- // Fix relative links
39
- . replace ( / \] \( \. \. \/ / g, '](../../' )
40
- . replace ( / \] \( \. \/ / g, '](' )
41
38
// Fix MDX compilation issues with angle bracket URLs
42
39
. replace ( / < ( h t t p [ s ] ? : \/ \/ [ ^ > ] + ) > / g, '`$1`' )
43
- // Fix specific broken links to point to repository
40
+
41
+ // CRITICAL: Fix istio-workaround.md FIRST before any other URL transformations
42
+ . replace ( / \] \( [ ^ ) ] * i s t i o - w o r k a r o u n d \. m d \) / g, '](https://github.com/llm-d-incubation/llm-d-infra/blob/main/quickstart/istio-workaround.md)' )
43
+
44
+ // Fix specific problematic links first (before general patterns)
45
+ . replace ( / \[ i n s t a l l \- d e p s \. s h \] \( \. \. \/ \. \. \/ i n s t a l l \- d e p s \. s h \) / g, '[install-deps.sh](https://github.com/llm-d-incubation/llm-d-infra/blob/main/quickstart/install-deps.sh)' )
44
46
. replace ( / \[ g k e \. m d \] \( g k e \. m d \) / g, '[gke.md](https://github.com/llm-d-incubation/llm-d-infra/blob/main/quickstart/examples/inference-scheduling/gke.md)' )
45
- . replace ( / \[ T e m p o r a r y I s t i o W o r k a r o u n d \] \( \. \. \/ \. \. \/ \. \. \/ i s t i o - w o r k a r o u n d \. m d \) / g, '[Temporary Istio Workaround](https://github.com/llm-d-incubation/llm-d-infra/blob/main/quickstart/istio-workaround.md)' )
47
+ . replace ( / \[ g k e \. m d \] \( \. \/ g k e \. m d \) / g, '[gke.md](https://github.com/llm-d-incubation/llm-d-infra/blob/main/quickstart/examples/inference-scheduling/gke.md)' )
48
+ . replace ( / \[ s c h e d u l i n g c o n f i g u r a t i o n \] \( h t t p s \: \/ \/ g i t h u b \. c o m \/ l l m \- d \/ l l m \- d \- i n f e r e n c e \- s c h e d u l e r \/ b l o b \/ m a i n \/ d o c s \/ a r c h i t e c t u r e \. m d \) / g, '[scheduling configuration](https://github.com/llm-d/llm-d-inference-scheduler/blob/main/docs/architecture.md)' )
49
+
46
50
// Fix broken external references
47
51
. replace ( / \] \( \. \. \/ \. \. \/ p r e c i s e - p r e f i x - c a c h e - a w a r e \) / g, '](https://github.com/llm-d-incubation/llm-d-infra/tree/main/quickstart/examples/precise-prefix-cache-aware)' )
48
- // Fix file references to point to repository
49
- . replace ( / \] \( ( [ ^ ) ] + \. ( y a m l | s h ) ) \) / g, '](https://github.com/llm-d-incubation/llm-d-infra/blob/main/quickstart/examples/inference-scheduling/$1)' )
52
+ . replace ( / \] \( p r e c i s e - p r e f i x - c a c h e - a w a r e \) / g, '](https://github.com/llm-d-incubation/llm-d-infra/tree/main/quickstart/examples/precise-prefix-cache-aware)' )
53
+ . replace ( / \] \( \. \. \/ p r e c i s e - p r e f i x - c a c h e - a w a r e \) / g, '](https://github.com/llm-d-incubation/llm-d-infra/tree/main/quickstart/examples/precise-prefix-cache-aware)' )
54
+
55
+ // Fix relative path resolution for install-deps.sh (catch any remaining patterns)
50
56
. replace ( / \] \( \. \. \/ \. \. \/ \. \. \/ ( [ ^ ) ] + \. s h ) \) / g, '](https://github.com/llm-d-incubation/llm-d-infra/blob/main/quickstart/$1)' )
51
- // Convert other relative markdown links to repository links
52
- . replace ( / \] \( ( [ ^ ) ] + \. m d ) \) / g, '](https://github.com/llm-d-incubation/llm-d-infra/blob/main/quickstart/examples/inference-scheduling/$1)' )
57
+ // Fix any remaining ../../../*.md patterns before general md processing
58
+ . replace ( / \] \( \. \. \/ \. \. \/ \. \. \/ ( [ ^ ) ] + \. m d ) \) / g, '](https://github.com/llm-d-incubation/llm-d-infra/blob/main/quickstart/$1)' )
59
+
60
+ // Fix relative links (but be more careful)
61
+ . replace ( / \] \( \. \. \/ / g, '](../../' )
62
+ . replace ( / \] \( \. \/ / g, '](' )
63
+
64
+ // Fix file references to point to repository (only if not already a full URL)
65
+ . replace ( / \] \( (? ! h t t p s ? : \/ \/ ) ( [ ^ ) ] + \. ( y a m l | s h ) ) \) / g, '](https://github.com/llm-d-incubation/llm-d-infra/blob/main/quickstart/examples/inference-scheduling/$1)' )
66
+
67
+ // Convert other relative markdown links to repository links (only if not already a full URL)
68
+ . replace ( / \] \( (? ! h t t p s ? : \/ \/ ) ( [ ^ ) ] + \. m d ) \) / g, '](https://github.com/llm-d-incubation/llm-d-infra/blob/main/quickstart/examples/inference-scheduling/$1)' )
53
69
} ) ;
54
70
}
55
71
return undefined ;
56
72
} ,
57
73
} ,
58
- ] ;
74
+ ] ;
0 commit comments