samredai opened a new pull request, #144:
URL: https://github.com/apache/iceberg-docs/pull/144

   Since the landing-page and docs site are separate sites, they each generate 
their own search index. Currently these are generated in `./search.json` and 
`./docs/latest/search.json` in the `asf-site` branch.
   
   This adds a workflow that can be run manually (`on: workflow_dispatch`) to 
merge these two search indexes into a single `./search.json` file that contains 
the index for both sites. It also renames the initially generated indexes to 
`landingpagesearch.json` and `docssearch.json` so as to make the merging 
idempotent.
   
   To show an example of how this works, I put together this small repo 
[merge-json-example](https://github.com/samredai/merge-json-example) and you 
can go to the Actions tab to see a run of the workflow. It combines a 
`./landingpagesearch.json` containing `[{"a": "b"}, {"c": "d"}]` with a 
`./docs/latest/docssearch.json` containing `[{"e": "f"}, {"g": "h"}]` into a 
`./search.json` file containing `[{"a": "b"}, {"c": "d"}, {"e": "f"}, {"g": 
"h"}]` (on the asf-site branch).
   
   Before running this workflow, this PR as well as the PR #143 for the latest 
branch needs to be merged to deploy the initial search indexes under the new 
names.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to