-
Notifications
You must be signed in to change notification settings - Fork 17
Add screenshot validation script #544
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
base: master
Are you sure you want to change the base?
Conversation
Deploying configcat-docs with
|
Latest commit: |
0d72390
|
Status: | ✅ Deploy successful! |
Preview URL: | https://31e8b16c.docs-xmy.pages.dev |
Branch Preview URL: | https://add-screenshot-validation.docs-xmy.pages.dev |
checkImageNameConvention(imageSrc, errors); | ||
|
||
} |
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.
The most important step, i.e. checking image dimensions, is missing here.
Please add it - of course, without the cover image-related parts (as there are no cover images in the docs).
Co-authored-by: adams85 <[email protected]>
… into add-screenshot-validation
Co-authored-by: adams85 <[email protected]>
Co-authored-by: adams85 <[email protected]>
Co-authored-by: adams85 <[email protected]>
# articles, we don't enforce every rule. However, when an article is updated, | ||
# DO NOT ADD NEW ENTRIES TO THIS FILE. New documents should be created | ||
# according to the guidelines outlined in https://github.com/configcat-labs/content-wiki/blob/main/screenshot-guide.md. For older | ||
# documents, we don't enforce every rule. However, when an document is updated, |
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.
# documents, we don't enforce every rule. However, when an document is updated, | |
# documents, we don't enforce every rule. However, when a document is updated, |
Describe the purpose of your pull request
Add screenshot validation script to the docs. This script ensures that screenshots in new and updated documents comply with the screenshot guide.
Related issues (only if applicable)
How to test? (only if applicable)
website/validate-document.js
script was added.website/.validationignore
file was added to ignore current.mdx
files in thewebsite/docs
directory..github/workflows/validate-document.yml
that would run each time a PR is created that contains new or modified.mdx
files.What should be tested?
You can run it locally using:
Requirement checklist