Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More validation for assumptions made in Enki #203

Merged
merged 5 commits into from
Jul 1, 2024

Conversation

TylerZeroMaster
Copy link
Contributor

Book slugs are defined in three places--books.xml, collection file name, collection file metadata--and must match in all three places. This is a common source of build errors in newly created books. Most processes in Enki use the slug from the books.xml file, however, there are a few exceptions.

Codify the assumptions made about book slugs.

  • Validate that the slug in the books.xml matches the one in the associated collection metadata (bakery-scripts)
  • Validate that the collection name matches what epub builds would expect (bakery-js and CORGI)

@TylerZeroMaster TylerZeroMaster requested a review from a team June 24, 2024 16:32
@TylerZeroMaster TylerZeroMaster self-assigned this Jun 24, 2024
Copy link
Member

@philschatz philschatz left a comment

Choose a reason for hiding this comment

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

Nice! 👍

@TylerZeroMaster TylerZeroMaster force-pushed the booksxml-slug-validation branch from 2f209d2 to 7b3aed4 Compare July 1, 2024 18:42
@TylerZeroMaster TylerZeroMaster merged commit dbc0fb5 into main Jul 1, 2024
1 check passed
@TylerZeroMaster TylerZeroMaster deleted the booksxml-slug-validation branch July 1, 2024 18:46
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.

2 participants