Skip to content

Commit

Permalink
Fix changes path, ignore charts path (#2154)
Browse files Browse the repository at this point in the history
* Fix changes path

* Ignore generated cluster apps content when checking last_review_date
  • Loading branch information
marians committed Mar 6, 2024
1 parent 9381f51 commit 390b56a
Showing 1 changed file with 8 additions and 7 deletions.
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

0 comments on commit 390b56a

Please sign in to comment.