perf: speed up preview builds with pre-built library docs by milldr · Pull Request #844 · cloudposse/docs

@milldr @claude

… docs

- Add npm caching to reduce install time by ~2 minutes
- Create library-docs-generate.yml workflow to pre-build docs every 6 hours
- Add skip_library_docs input to build action
- Configure preview builds to use pre-built library docs instead of regenerating
- Conditionally skip Python/terraform-docs setup when using pre-built docs
- Production builds still generate fresh docs for accuracy

Preview builds now complete in 4-7 minutes instead of 15-23 minutes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

@milldr @claude

@milldr @claude

- Add workflow_call trigger to library-docs-generate.yml
- Production workflow now calls library-docs-generate first
- Production uses freshly built library docs from the release
- Both preview and production now use the same tarball approach

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

@milldr @claude

When 'rebuild-library-docs' label is present on a PR, the preview build
will regenerate library docs before building (like production).
Default behavior uses pre-built docs from the latest release.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

@milldr @claude

- Remove skip_library_docs input - build action now always downloads pre-built docs
- Remove all library doc generation steps from build action (Python, Atmos, terraform-docs, render scripts)
- Build action will error if library-docs-latest release doesn't exist
- Removed .cache from cached paths (no longer needed)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

@milldr @claude

- Rename workflow file to generate-library.yml
- Update workflow name to "📚 Generate Library"
- Rename jobs to cleaner names: Components, Modules, GitHub Actions, Package and Release
- Update references in preview and release workflows

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

osterman

@milldr milldr deleted the milldr/docs-build-speedup branch

January 6, 2026 17:28