Skip to content

Exclude files from build when not in spine#80

Merged
breezykermo merged 4 commits intodevfrom
fix/spines-merge-false
Feb 5, 2026
Merged

Exclude files from build when not in spine#80
breezykermo merged 4 commits intodevfrom
fix/spines-merge-false

Conversation

@breezykermo
Copy link
Contributor

@breezykermo breezykermo commented Jan 25, 2026

Fixes #78.

The way I've implemented this means that HTML spines can now be specified as a way to exclude certain files from the sitemap. (Note that title is now optional in spines in general, though it is still required for EPUB spines.)

[html.spine]
vertebrae = ["!draft.*.typ"]

@breezykermo breezykermo force-pushed the fix/spines-merge-false branch from 8f04d47 to 7b7d7c5 Compare January 25, 2026 18:47
@breezykermo
Copy link
Contributor Author

I suppose this requires a bump to the manifest version, too. Do you have any experience for a process for this @willcrichton? I've heard good things about cargo-semver-checks, but haven't used it myself anywhere.

@willcrichton
Copy link
Collaborator

There's a semver crate which provides routines for checking semver compatibility: https://docs.rs/semver/latest/semver/

@breezykermo
Copy link
Contributor Author

After some thought, we've decided to version the manifest in step with the crate version for the time being so that it doesn't slow development velocity.

@breezykermo breezykermo merged commit f948f45 into dev Feb 5, 2026
1 check passed
@breezykermo breezykermo deleted the fix/spines-merge-false branch February 5, 2026 07:23
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.

Allows spine specification with merge=false

2 participants