Create a csl-validator.sh bash script to validate against https://validator.w3.org/nu/ #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi all,
After looking for something like this, and not finding it, I took the liberty of creating this short script for my own use, and thought maybe it could be useful for others who have a similar workflow to mine. I use Sublime Text 3 to work on CSL files, and spend a lot of time in the terminal. Having a shell script that validates the file allows me to integrate it in this linter plugin I wrote for Sublime Text Linter (see here https://github.com/Marcool04/SublimeLinter-csl), or place it as a hook in version control, and generally just, at a glance, check that the CSL file is ok as I work on it in a terminal.
The actual workings of the script are exactly the same as https://validator.citationstyles.org/, only you don't need to switch to the browser, upload or copy paste your file etc. to see the results.
If you feel it could be helpful and is in the scope of this "utilities" repo maybe you would consider it for inclusion?
Thanks in any case for your work on CSL.
Best regards,
Mark.