-
Notifications
You must be signed in to change notification settings - Fork 391
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
Use json to store fontawesome icons #2528
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'll have to check this before accepting. You can also check. I would actually not be surprised if this now fails at \faFile*
.
Can you explain the github workflow for me? I'm not an expert on that, and I'm curious if we should make it more specific? I.e., now the workflow triggers on all json files, but that does not seem correct if there should be more json files added?
for json in assets/json/*.json ; do
diff <(jq -S . $json) $json || exit 1
done if a json is not sorted, |
Thanks. As I wrote above:
I've checked, and as you see, it now fails: The reason is that the Vim dictionary does not preserve a sorted order, necessarily. So, this means we must either sort the Regarding the workflow: I'm still wondering if it is a good idea to trigger this workflow on any json file and to specify that all json files must be sorted? Would it not be more appropriate to restrict it to this specific file? |
Fixed.
Fixed. |
Add a github workflow to check if a json is sorted
I did some minor profiling, and fascinatingly, doing the I'm merging this now. Thanks for contributing! |
I made a few minor changes to the workflow (https://github.com/lervag/vimtex/blob/master/.github/workflows/assets.yml), mostly that I fixed the path to the fontawesome file. That will avoid any surprises if I were to add more json files to the assets directory. I believe I should probably collect all assets within that subdirectory, so I might look into that in the not so far away future. |
Hmm. For some reason, the updated workflow does not run properly now: https://github.com/lervag/vimtex/actions/runs/3332974138 Perhaps you could assist me here? Here's the diff of the workflow file from your version to the current: |
Fixed 👍 |
Thanks! I'll look into the new PRs later today! |
Add a github workflow to check if a json is sorted