gc-da11yn / gc-da11yn.github.io

Digital Accessibility Toolkit - Boîte à outils d'accessibilité numérique
https://a11y.canada.ca/en/
MIT License
31 stars 32 forks source link

New file script #604

Closed shawnthompson closed 2 weeks ago

shawnthompson commented 2 weeks ago

Added Functionality to Ensure Unique File Names:

The script now checks if a file with the same slugified title already exists in the target directory. If a file already exists, the script prompts the user to provide a new title until a unique one is given.

Dynamic Front Matter Content:

The script dynamically generates the front matter content without leaving blank lines. It includes the internalLinks: true line only if the user indicates there are internal links in the content.

User Input Logging:

The script logs user inputs for titles, descriptions, and the internal links flag to verify correctness.

Handling File Existence:

The script prompts the user to provide a new title if the slugified title already exists, ensuring no files are overwritten accidentally.

netlify[bot] commented 2 weeks ago

Deploy Preview for a11ycanada ready!

Name Link
Latest commit ebcc1f3e0b78e97537b73b2e6c305b15dabdd41d
Latest deploy log https://app.netlify.com/sites/a11ycanada/deploys/6688379d4021f6000868ce45
Deploy Preview https://deploy-preview-604--a11ycanada.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.