docs: unify documentation workflows with improved validation #90
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs Preview | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- 'docs/**' | ||
- '**.md' | ||
- '.github/docs/**' | ||
- '.github/workflows/docs-preview*.yaml' | ||
- '.github/workflows/docs-unified*.yaml' | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
jobs: | ||
# Simple and direct preview generation for PRs | ||
docs-preview: | ||
name: Generate Docs Preview | ||
uses: ./.github/workflows/docs-unified.yaml | ||
Check failure on line 20 in .github/workflows/docs-preview.yaml
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
with: | ||
preset: 'pr' # Use the PR preset with all the right configurations | ||
# Skip link checking for faster preview | ||
check-links: false |