Skip to content

Commit 2c0ad45

Browse files
committed
Remove myst.yml and reorder workflow to build first (fail fast)
- Removed myst.yml which was causing EISDIR and 'No site configuration' errors - Jupyter Book 2.x works fine with just _config.yml and _toc.yml - Moved build step before slow lint/link checks for faster feedback - Build now happens in ~30 seconds instead of waiting 90+ seconds for link checks
1 parent 2cb6bd5 commit 2c0ad45

File tree

2 files changed

+22
-54
lines changed

2 files changed

+22
-54
lines changed

.github/workflows/deploy-book.yml

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,7 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v3
1919

20-
# Install Node.js for linting and link checking
21-
- name: Set up Node.js
22-
uses: actions/setup-node@v3
23-
with:
24-
node-version: '18'
25-
26-
# Install npm dependencies
27-
- name: Install npm dependencies
28-
run: |
29-
npm install
30-
npm install -g markdownlint-cli
31-
npm install -g markdown-link-check
32-
33-
# Run lint checks
34-
- name: Lint markdown files
35-
run: npm run lint
36-
37-
# Run link checks
38-
- name: Check markdown links
39-
run: npm run links-ci
40-
41-
# Check TOC completeness
42-
- name: Check TOC completeness
43-
run: npm run check-toc
44-
45-
# Install Python dependencies
20+
# BUILD FIRST - Fail fast if there are build issues
4621
- name: Set up Python 3.11
4722
uses: actions/setup-python@v4
4823
with:
@@ -52,7 +27,6 @@ jobs:
5227
run: |
5328
pip install -r requirements.txt
5429
55-
# Build the book
5630
- name: Build the book
5731
run: |
5832
echo "Starting Jupyter Book build..."
@@ -70,6 +44,27 @@ jobs:
7044
7145
echo "✅ Build successful - _build/html created with $(find _build/html -name '*.html' | wc -l) HTML files"
7246
47+
# THEN run slower checks (lint, links, TOC)
48+
- name: Set up Node.js
49+
uses: actions/setup-node@v3
50+
with:
51+
node-version: '18'
52+
53+
- name: Install npm dependencies
54+
run: |
55+
npm install
56+
npm install -g markdownlint-cli
57+
npm install -g markdown-link-check
58+
59+
- name: Lint markdown files
60+
run: npm run lint
61+
62+
- name: Check markdown links
63+
run: npm run links-ci
64+
65+
- name: Check TOC completeness
66+
run: npm run check-toc
67+
7368
# Upload the book's HTML as an artifact
7469
- name: Upload artifact
7570
if: success()

myst.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)