File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 77 branches : ["main"]
88 paths :
99 - ' docs/**'
10+ - ' lab/**'
1011
1112 # Allows you to run this workflow manually from the Actions tab
1213 workflow_dispatch :
3233 - name : Checkout
3334 uses : actions/checkout@v4
3435
36+ - name : Copy lab files to docs
37+ run : cp -r lab docs/
38+
3539 - name : Setup Pages
3640 uses : actions/configure-pages@v5
3741
Original file line number Diff line number Diff line change 608608 // Process markdown - fix image paths and handle special syntax
609609 function processMarkdown ( md ) {
610610 // Fix image paths - images are in lab/images/
611- md = md . replace ( / ! \[ ( [ ^ \] ] * ) \] \( \. \/ i m a g e s \/ / g, ' ;
612- md = md . replace ( / ! \[ ( [ ^ \] ] * ) \] \( i m a g e s \/ / g, ' ;
611+ md = md . replace ( / ! \[ ( [ ^ \] ] * ) \] \( \. \/ i m a g e s \/ / g, ' ;
612+ md = md . replace ( / ! \[ ( [ ^ \] ] * ) \] \( i m a g e s \/ / g, ' ;
613613
614614 // Convert GitHub-style checkboxes: 1. [] becomes checkbox
615615 md = md . replace ( / ^ ( \d + ) \. \s * \[ \s * \] \s * / gm, '$1. <input type="checkbox"> ' ) ;
639639 document . title = `${ step . title } | VS GitHub Copilot Lab` ;
640640
641641 try {
642- // Fetch markdown from lab folder
643- const response = await fetch ( `../ lab/${ step . file } ` ) ;
642+ // Fetch markdown from lab folder (copied to docs/lab during deploy)
643+ const response = await fetch ( `lab/${ step . file } ` ) ;
644644 if ( ! response . ok ) throw new Error ( 'Failed to load' ) ;
645645
646646 let md = await response . text ( ) ;
You can’t perform that action at this time.
0 commit comments