Skip to content

Publish subset only should copy its files, not just filter metadata #27

Description

@benfoley

"Publish subset only" (ro-crate-html-output's `publishOnly` option) removes unpublished collections/objects/files from the in-memory crate before rendering the generated preview HTML — but it never touches the actual files on disk. A folder holding just the generated preview (`ro-crate-preview.html` / `ro-crate-preview_html/`) still contains every file the crate ever had, published or not, so deploying that folder as-is can expose files that were deliberately filtered out.

Copy the files that survive the publish filter into a dedicated `ro-crate-preview-files/` directory during the build, and rewrite the generated HTML's own file links to point at the copies — so publishing the generated preview plus that one folder is self-contained and never leaks a filtered-out file.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions