Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,34 +26,3 @@ jobs:

- name: Lint & Format
run: npm run lint && npm run format:check
Comment thread
avivkeller marked this conversation as resolved.

docs-check:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: lts/*
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Clone webpack
run: npm run clone-webpack

- name: Regenerate docs
run: npm run generate-docs

- name: Check docs freshness
run: |
if ! git diff --quiet pages/; then
echo "::error::The pages/ directory is out of date. Run 'npm run generate-docs' and commit the changes."
git diff --stat pages/
exit 1
fi
echo "pages/ is up to date."
52 changes: 0 additions & 52 deletions .github/workflows/deploy.yml

This file was deleted.

14 changes: 7 additions & 7 deletions doc-kit.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ export default {
// Input & Output
input: ['./pages/v5.x/**/*.md', './pages/v5.x/*.md'],
output: 'out',

// Base URL,
Comment thread
avivkeller marked this conversation as resolved.
baseURL: process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: 'http://localhost:3000',
},
metadata: {
typeMap: './pages/v5.x/type-map.json',
},
web: {
// Use "webpack" as the product name in navbar and sidebar labels
title: 'webpack',
},
'jsx-ast': {
// Disable the "Edit this page" link — webpack API docs are generated from
// TypeScript types and don't have a corresponding hand-editable source file.
editURL: '',
project: 'webpack',
useAbsoluteURLs: true,
},
Comment thread
avivkeller marked this conversation as resolved.
Comment thread
avivkeller marked this conversation as resolved.
};
Loading