Skip to content

Conversation

@cotti
Copy link
Contributor

@cotti cotti commented Dec 17, 2025

Problem Overview

Certain changes in docs-builder that are best viewed from an assembler build perspective can benefit from the collective review from writers, but it's not always straightforward to share specific links, show regressions, etc.

Allowing a limited assembler preview for docs-builder pull requests would allow for earlier and broader QA, and faster communication during feature development.

Proposed solution

This PR adds a new workflow to docs-builder that builds an assembler preview to a given PR #.

It contains the following limitations:

  • Only public repositories are built
  • This process is available only on docs-builder

Other changes

llms.txt, sitemap.xml and link-index.snapshot.json generation relied on hardcoded paths, which were incompatible with the previews introduced here. If there is a path prefix available, we now make use of it.

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
@cotti cotti requested a review from reakaleek December 17, 2025 17:11
Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

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

Nice! Some changes requested.

env:
AWS_RETRY_MODE: standard
AWS_MAX_ATTEMPTS: 6
ASSEMBLER_PREVIEW_PATH_PREFIX: ${{ github.repository }}/assembled-docs/${{ github.event.pull_request.number }}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
ASSEMBLER_PREVIEW_PATH_PREFIX: ${{ github.repository }}/assembled-docs/${{ github.event.pull_request.number }}
ASSEMBLER_PREVIEW_PATH_PREFIX: ${{ github.repository }}/docs/${{ github.event.pull_request.number }}

log_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
})
- name: Create Assembler Deployment
Copy link
Member

Choose a reason for hiding this comment

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

Lost a comment, lets move this to dedicated new workflow file. This shared one is tooo complex already and shouldn't trigger on labeled.

name: assembler-preview

on:
workflow_dispatch:
Copy link
Member

Choose a reason for hiding this comment

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

Needs PR and label triggers

default: false
required: false

Copy link
Member

Choose a reason for hiding this comment

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

Revert this file completely (the whitespace clean up is good but lets not make it part of this PR).

public async ValueTask<bool> FinishExportAsync(IDirectoryInfo outputFolder, Cancel ctx)
{
var outputDirectory = Path.Combine(outputFolder.FullName, "docs");
var outputDirectory = outputFolder.FullName;
Copy link
Member

Choose a reason for hiding this comment

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

We expose llm.zip on elastic.co so I think this needs to be put under docs again.

doc.Add(root);

using var fileStream = fileSystem.File.Create(Path.Combine(outputFolder.ToString() ?? string.Empty, "docs", "sitemap.xml"));
using var fileStream = fileSystem.File.Create(fileSystem.Path.Combine(outputFolder.FullName, "sitemap.xml"));
Copy link
Member

Choose a reason for hiding this comment

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

sitemap.xml has to live under docs/sitemap.xml

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.

4 participants