Skip to content

Add output_dir parameter to upload method#26

Open
baelter wants to merge 1 commit intomainfrom
feat/upload-accepts-output-dir
Open

Add output_dir parameter to upload method#26
baelter wants to merge 1 commit intomainfrom
feat/upload-accepts-output-dir

Conversation

@baelter
Copy link
Copy Markdown
Member

@baelter baelter commented Mar 25, 2026

Summary

  • Add optional output_dir keyword argument to upload method
  • When provided, skips the internal render call and uses the given directory
  • Fully backward-compatible: existing callers are unaffected

This enables the cloudamqp-website deploy script to render once, run pagefind on the output, then upload directly, cutting CI build time in half (~5.5 min to ~3 min).

Test plan

  • Verify existing callers (without output_dir) still work (render is called as before)
  • Verify new callers passing output_dir skip the render step

Allow callers to pass a pre-rendered output directory to skip
the render step. This enables workflows like pagefind indexing
that need to render once, modify the output, then upload without
a redundant second render.
@baelter baelter marked this pull request as ready for review March 25, 2026 12:40
@baelter baelter requested a review from a team as a code owner March 25, 2026 12:40
@baelter baelter requested a review from dentarg March 25, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant