Skip to content

Enable nightly build for doc release#19

Merged
franciscojavierarceo merged 1 commit intollamastack:mainfrom
gyliu513:nightly
Feb 18, 2026
Merged

Enable nightly build for doc release#19
franciscojavierarceo merged 1 commit intollamastack:mainfrom
gyliu513:nightly

Conversation

@gyliu513
Copy link
Contributor

@gyliu513 gyliu513 commented Feb 16, 2026

Fixed llamastack/llama-stack#4315

This optimization significantly reduces CI build time by downloading and reusing pre-built documentation artifacts from llama-stack's nightly build llamastack/llama-stack#4911

Key improvements:

  • Downloads pre-built docs from llama-stack repo for 'latest' builds
  • Skips time-consuming API documentation generation when pre-built docs available
  • Skips Docusaurus build step when pre-built site is available
  • Adds comprehensive fallback mechanism when pre-built docs unavailable
  • Adds build summary step to show optimization status

Benefits:

  • Significant time savings by avoiding redundant API docs generation
  • Maintains existing optimizations (caching, content change detection)
  • Zero risk: Falls back to full build if pre-built docs are unavailable
  • Only applies to 'latest' builds; version builds unaffected

Implementation details:

  • Uses gh CLI to download latest nightly build artifacts
  • Validates downloaded artifacts before use
  • Sets PREBUILT_AVAILABLE flag to control build flow
  • Multiple safety checks ensure build quality

@franciscojavierarceo @nathan-weinberg @cdoern @leseb

@meta-cla meta-cla bot added the cla signed label Feb 16, 2026
@franciscojavierarceo franciscojavierarceo merged commit 3342f93 into llamastack:main Feb 18, 2026
2 checks passed
@gyliu513 gyliu513 deleted the nightly branch February 18, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation takes too long to build

2 participants