Skip to content

ci: workflow to populate the index to search docs - #10132

Merged
anakin87 merged 23 commits into
mainfrom
docs-search-feed
Nov 26, 2025
Merged

ci: workflow to populate the index to search docs#10132
anakin87 merged 23 commits into
mainfrom
docs-search-feed

Conversation

@anakin87

@anakin87 anakin87 commented Nov 25, 2025

Copy link
Copy Markdown
Member

Related Issues

Proposed Changes:

Add workflow and script to sync docs with the search index.

Workflow
Builds Docusaurus website and runs the script.

Executed daily (and manually triggered if needed).

Script

  1. Collects all HTML files from the docs and reference directories for the stable Haystack version.
  2. Uploads the HTML files to the deepset workspace.
    • A timestamp-based metadata field is used to track document versions in the workspace.
  3. Deletes the old HTML files from the deepset workspace.
    • Since most files are overwritten during upload, only a small number of deletions is expected.
    • In case MAX_DELETIONS_SAFETY_LIMIT is exceeded, we block the deletion.

How did you test it?

Several manual runs and some others in this PR. See for example https://github.com/deepset-ai/haystack/actions/runs/19678376584/job/56365735670

Notes for the reviewer

The script is simple and aligned with our website structure.

For each run of the workflow, we basically overwrite the previous docs uploaded on deepset. I chose this approach to keep the CI lean (we don't run this workflow every time the docs change) and for simplicity.
While we could have compared git commits, with multiple documentation versions that also change at release time, the comparison logic would have become quite tricky.

Checklist

  • I have read the contributors guidelines and the code of conduct.
  • I have updated the related issue with new insights and changes.
  • I have added unit tests and updated the docstrings.
  • I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test: and added ! in case the PR includes breaking changes.
  • I have documented my code.
  • I have added a release note file, following the contributors guidelines.
  • I have run pre-commit hooks and fixed any issue.

@vercel

vercel Bot commented Nov 25, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
haystack-docs Ignored Ignored Preview Nov 26, 2025 9:18am

@anakin87 anakin87 changed the title try feed docs search ci: workflow to populate the index to search docs Nov 25, 2025
@anakin87
anakin87 marked this pull request as ready for review November 25, 2025 18:09
@anakin87
anakin87 requested a review from a team as a code owner November 25, 2025 18:09
@anakin87
anakin87 requested review from dfokina and vblagoje and removed request for a team November 25, 2025 18:09

@dfokina dfokina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@anakin87

Copy link
Copy Markdown
Member Author

@dfokina I also created a Datadog monitor: if nightly sync fails, we get notified on Slack.

@anakin87
anakin87 enabled auto-merge (squash) November 26, 2025 09:20
@dfokina

dfokina commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

@anakin87 This is great, thank you!

@anakin87
anakin87 merged commit 40daaf6 into main Nov 26, 2025
21 checks passed
@anakin87
anakin87 deleted the docs-search-feed branch November 26, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants