Skip to content
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

Fix changes path, ignore charts path #2154

Merged
merged 2 commits into from Mar 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 8 additions & 7 deletions scripts/validate-front-matter/script.py
Expand Up @@ -13,11 +13,12 @@
from yaml import Loader

# Some path config
path = 'src/content'
vintage_path = 'src/content/vintage'
changes_path = 'src/content/vintage/changes/'
crds_path = 'src/content/vintage/use-the-api/management-api/crd/'
docs_host = 'https://github.com/giantswarm/docs/blob/main/'
path = 'src/content'
vintage_path = 'src/content/vintage'
changes_path = 'src/content/changes'
crds_path = 'src/content/vintage/use-the-api/management-api/crd'
cluster_apps_path = 'src/content/vintage/use-the-api/management-api/cluster-apps'
docs_host = 'https://github.com/giantswarm/docs/blob/main/'

todays_date = datetime.date.today()

Expand Down Expand Up @@ -160,14 +161,14 @@
{
'id': NO_LAST_REVIEW_DATE,
'description': 'The page should have a last_review_date',
'ignore_paths': [crds_path, changes_path],
'ignore_paths': [crds_path, changes_path, cluster_apps_path],
'severity': SEVERITY_WARN,
},
{
'id': REVIEW_TOO_LONG_AGO,
'description': 'The last review date is too long ago',
'severity': SEVERITY_WARN,
'ignore_paths': [vintage_path],
'ignore_paths': [vintage_path, cluster_apps_path],
'has_value': True,
},
{
Expand Down