docs: fix docs build

This commit is contained in:
murat 2026-01-15 14:40:56 -06:00
parent 66e7d3a36d
commit 4001b175bd
6 changed files with 32 additions and 6 deletions

View File

@ -69,6 +69,27 @@ jobs:
- name: markdownlint - name: markdownlint
run: npm run lint:md run: npm run lint:md
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Validate documentation links
run: npm run docs:validate-links
- name: Build documentation
run: npm run docs:build
validate: validate:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@ -5,3 +5,5 @@ npx --no-install lint-staged
# Validate everything # Validate everything
npm test npm test
npm run docs:validate-links
npm run docs:build

4
.husky/pre-push Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
npm run docs:validate-links
npm run docs:build

View File

@ -250,7 +250,7 @@ Risk scores inform test priorities (but aren't the only factor):
- **Test Levels:** E2E smoke test only - **Test Levels:** E2E smoke test only
- **Example:** Theme customization, experimental features - **Example:** Theme customization, experimental features
**Note:** Priorities consider risk scores plus business context (usage frequency, user impact, etc.). See [Test Priorities Matrix](/docs/reference/tea/knowledge-base.md#test-priorities-matrix) for complete criteria. **Note:** Priorities consider risk scores plus business context (usage frequency, user impact, etc.). See [Test Priorities Matrix](/docs/reference/tea/knowledge-base.md#quality-standards) for complete criteria.
### 3. Mitigation Plans ### 3. Mitigation Plans

View File

@ -866,8 +866,8 @@ test('should work with optional button', async ({ page }) => {
## Technical Implementation ## Technical Implementation
For detailed test quality patterns, see: For detailed test quality patterns, see:
- [Test Quality Fragment](/docs/reference/tea/knowledge-base.md#test-quality) - [Test Quality Fragment](/docs/reference/tea/knowledge-base.md#quality-standards)
- [Test Levels Framework Fragment](/docs/reference/tea/knowledge-base.md#test-levels-framework) - [Test Levels Framework Fragment](/docs/reference/tea/knowledge-base.md#quality-standards)
- [Complete Knowledge Base Index](/docs/reference/tea/knowledge-base.md) - [Complete Knowledge Base Index](/docs/reference/tea/knowledge-base.md)
## Related Concepts ## Related Concepts

View File

@ -24,8 +24,8 @@ const BUILD_DIR = path.join(PROJECT_ROOT, 'build');
const SITE_URL = process.env.SITE_URL || 'https://bmad-code-org.github.io/BMAD-METHOD'; const SITE_URL = process.env.SITE_URL || 'https://bmad-code-org.github.io/BMAD-METHOD';
const REPO_URL = 'https://github.com/bmad-code-org/BMAD-METHOD'; const REPO_URL = 'https://github.com/bmad-code-org/BMAD-METHOD';
const LLM_MAX_CHARS = 600_000; const LLM_MAX_CHARS = 800_000;
const LLM_WARN_CHARS = 500_000; const LLM_WARN_CHARS = 700_000;
const LLM_EXCLUDE_PATTERNS = ['changelog', 'ide-info/', 'v4-to-v6-upgrade', 'downloads/', 'faq']; const LLM_EXCLUDE_PATTERNS = ['changelog', 'ide-info/', 'v4-to-v6-upgrade', 'downloads/', 'faq'];
@ -335,7 +335,6 @@ function runAstroBuild() {
stdio: 'inherit', stdio: 'inherit',
env: { env: {
...process.env, ...process.env,
NODE_OPTIONS: `${process.env.NODE_OPTIONS || ''} --disable-warning=MODULE_TYPELESS_PACKAGE_JSON`.trim(),
}, },
}); });
} }