workshop-template
workshop-template copied to clipboard
Add slug check
Currently when building a workshop website, there is no check to validate a repository name as a slug. This PR adds a check that will fail if the repo name does not match YYYY-MM-DD-[ttt|site][-format] if the carpentry specified in the _config.yaml is one of our official lesson programs, or cp for TTT.
For added context, https://github.com/carpentries/styles/issues/551 should no longer apply - this template should only now be used for workshop websites and not lessons.
@froggleston thanks for contributing this. The equivalent check should also be added to https://github.com/carpentries/training-template/, I think?
Deploy Preview for workshop-template-previews ready!
| Name | Link |
|---|---|
| Latest commit | cc0987e31359f94280baafd8c381f226716f398e |
| Latest deploy log | https://app.netlify.com/sites/workshop-template-previews/deploys/668e7b401021ed0008cd5110 |
| Deploy Preview | https://deploy-preview-831--workshop-template-previews.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
cp carpentries workshops can be used for incubator workshops, which may or may not have a valid slug. So, when using cp give a warning if the slug isn't valid, but do not fail.
@froggleston thanks for contributing this. The equivalent check should also be added to https://github.com/carpentries/training-template/, I think?
Yup, I'll work on this tomorrow!