Skip to content

Publish preview docs in a preview repository #255

@max-models

Description

@max-models

Reviewing documentation changes currently requires checking out the branch and building the docs locally.

Set up automated preview deployments for pull requests so reviewers can view the rendered documentation before changes are merged. On each PR update, the documentation should be built and published to a GitHub Pages preview site under a PR-specific URL.

One option would be to use to use commercial software, such as Vercel, Netlify, Cloudflare, which handle some of this automatically. But I think it would be simpler (and free) to just do it with a separate git repo.

What I have in mind is the following:

  • Create a separate GitHub Pages repository for documentation previews.
  • On each PR update, build the docs in the struphy repository.
  • Push the generated static files to the preview repository under a PR-specific folder (e.g. pr-123/).
  • GitHub Pages publishes the preview automatically. Each preview can be found under https://struphy-hub.github.io/docs-preview/pr-123/
  • Remove the preview folder when the PR is closed with a second workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions