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

Duplicate predefined counter styles (allows atoms crate to be published) #99

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nicoburns
Copy link
Collaborator

This fix unblocks the atoms crate from being published on crates.io. I did look at having the python script which generates the file generate it into both locations. But that doesn't work because the atoms crate doesn't exist upstream. I think a simple duplication is probably the best approach. The rest of the static atom values are maintained manually anyway.

@nicoburns nicoburns force-pushed the duplicate-predefined-counter-styles branch from ec7f866 to 6c6df99 Compare December 10, 2024 02:50
@@ -22,7 +22,7 @@ fn main() {
}
}
}
include!("../style/counter_style/predefined.rs");
include!("./predefined_counter_styles.rs");
Copy link
Member

Choose a reason for hiding this comment

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

A better way to do this would probably be to have the import script duplicate this file into the atoms directory.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I did think about that but this directory doesn't exist at import time either (at least not when calling git filter-repo) because it's not upstream. I suppose we could add a post rebase step to sync and squash this file? But that seems like it might be quite fragile?

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.

2 participants