Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ redirects:
core-concepts/connect-webviews: core-concepts/connect-webviews/README.md
capability-guides/access-systems/understanding-acs-differences: capability-guides/access-systems/README.md
capability-guides/thermostats/creating-and-managing-climate-schedules: capability-guides/thermostats/creating-and-managing-thermostat-schedules.md
ui-components/overview/react-components/supported-devices-table: ui-components/overview/make-a-supported-devices-page.md
ui-components/overview/getting-started-with-seam-components/angular: ui-components/overview/make-a-supported-devices-page.md
ui-components/overview/getting-started-with-seam-components/vue: ui-components/overview/make-a-supported-devices-page.md
17 changes: 17 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,20 @@ jobs:
uses: ./.github/actions/setup
- name: Typecheck
run: npm run typecheck
validate:
name: Validate paths and links
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Validate SUMMARY.md paths
run: npm run validate-paths
- name: Validate cross-site links
run: npm run validate-links
- name: Validate all pages are in SUMMARY.md
run: npm run validate-orphan-pages
- name: Validate redirect targets
run: npm run validate-redirects
20 changes: 0 additions & 20 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,3 @@ jobs:
commit_user_name: ${{ secrets.GIT_USER_NAME }}
commit_user_email: ${{ secrets.GIT_USER_EMAIL }}
commit_author: ${{ secrets.GIT_USER_NAME }} <${{ secrets.GIT_USER_EMAIL }}>
validate:
name: Validate paths and links
needs: commit
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Setup
uses: ./.github/actions/setup
- name: Validate SUMMARY.md paths
run: npm run validate-paths
- name: Validate cross-site links
run: npm run validate-links
- name: Validate all pages are in SUMMARY.md
run: npm run validate-orphan-pages
- name: Validate redirect targets
run: npm run validate-redirects
2 changes: 1 addition & 1 deletion codegen/validate-links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function findSiteSection(filePath: string): SiteSection | undefined {
}

const absoluteUrlPattern = new RegExp(
`${baseUrl.replaceAll('.', '\\.')}[^)"\\s]+`,
`${baseUrl.replaceAll('.', '\\.')}[^)"<>\\s]+`,
'g',
)

Expand Down
Loading