Skip to content

Commit

Permalink
Merge branch 'main' into docs/accordion-accent-slot
Browse files Browse the repository at this point in the history
  • Loading branch information
marionnegp authored May 14, 2024
2 parents 6dc46a8 + 9494e3e commit 3782c04
Show file tree
Hide file tree
Showing 8 changed files with 472 additions and 698 deletions.
5 changes: 5 additions & 0 deletions .changeset/metal-birds-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rhds/elements": major
---
DELETE THIS FILE BEFORE MERGING
chore: changeset validating github action
25 changes: 25 additions & 0 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Validate PRs

on:
pull_request:
types:
- opened
- reopened
- synchronize
- edited

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm i semantic-release @changesets/read --prefer-offline
- uses: actions/github-script@v7
with:
script: |
const { validate } = await import('${{ github.workspace }}/scripts/validate-prs.js');
await validate({ context });
2 changes: 1 addition & 1 deletion docs/_plugins/rhds.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const path = require('node:path');
const _slugify = require('slugify');
const slugify = typeof _slugify === 'function' ? _slugify : _slugify.default;
const capitalize = require('capitalize');
const { glob } = require('glob');
const exec = require('node:util').promisify(require('node:child_process').exec);
const cheerio = require('cheerio');
const RHDSAlphabetizeTagsPlugin = require('./alphabetize-tags.cjs');
Expand Down Expand Up @@ -283,6 +282,7 @@ module.exports = function(eleventyConfig, { tagsToAlphabetize }) {
}

try {
const { glob } = await import('glob');
/** @type {(import('@patternfly/pfe-tools/11ty/DocsPage').DocsPage & { repoStatus?: any[] })[]} */
const elements = await eleventyConfig.globalData?.elements();
const filePaths = (await glob(`elements/*/docs/*.md`, { cwd: process.cwd() }))
Expand Down
Loading

0 comments on commit 3782c04

Please sign in to comment.