Skip to content

Fix attachment path flexibility and file-link syncing in push#45

Merged
rgonek merged 2 commits intomainfrom
fix/push-attachment-migration
Feb 26, 2026
Merged

Fix attachment path flexibility and file-link syncing in push#45
rgonek merged 2 commits intomainfrom
fix/push-attachment-migration

Conversation

@rgonek
Copy link
Owner

@rgonek rgonek commented Feb 26, 2026

Summary

  • Allow push/validate to resolve attachment references for local files anywhere inside the space directory, with actionable diagnostics when a path escapes the space root.
  • Support syncing non-image local file links ([]()) as attachments by including them in strict attachment indexing and reverse conversion.
  • Normalize pushed attachment files into assets/<page-id>/..., update markdown links automatically, and emit ATTACHMENT_PATH_NORMALIZED diagnostics for moved paths.

Testing

  • make lint
  • make test

@rgonek rgonek merged commit cabdeb7 into main Feb 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant