Skip to content

Commit

Permalink
Deprecate alpha documentation (github#32660)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpollard authored Nov 16, 2022
1 parent eedd8a3 commit 1984595
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
25 changes: 25 additions & 0 deletions content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,31 @@ redirect_from:
- /articles
- /common-issues-and-questions
- /troubleshooting-common-issues
- /early-access/github/enforcing-best-practices-with-github-policies
- /github/enforcing-best-practices-with-github-policies/index
- /early-access/github/enforcing-best-practices-with-github-policies/about-github-policies
- /github/enforcing-best-practices-with-github-policies/about-github-policies
- /early-access/github/enforcing-best-practices-with-github-policies/constraints
- /github/enforcing-best-practices-with-github-policies/constraints
- /early-access/github/enforcing-best-practices-with-github-policies/contexts
- /github/enforcing-best-practices-with-github-policies/contexts
- /early-access/github/enforcing-best-practices-with-github-policies/expressions
- /github/enforcing-best-practices-with-github-policies/expressions
- /early-access/github/enforcing-best-practices-with-github-policies/getting-started
- /early-access/github/enforcing-best-practices-with-github-policies/github-policies-vision
- /github/enforcing-best-practices-with-github-policies/github-policies-vision
- /early-access/github/enforcing-best-practices-with-github-policies/onboarding
- /github/enforcing-best-practices-with-github-policies/onboarding
- /early-access/github/enforcing-best-practices-with-github-policies/overview
- /github/enforcing-best-practices-with-github-policies/overview
- /early-access/github/enforcing-best-practices-with-github-policies/release-notes
- /github/enforcing-best-practices-with-github-policies/release-notes
- /early-access/github/enforcing-best-practices-with-github-policies/resources
- /github/enforcing-best-practices-with-github-policies/resources
- /early-access/github/enforcing-best-practices-with-github-policies/sharing
- /github/enforcing-best-practices-with-github-policies/sharing
- /early-access/github/enforcing-best-practices-with-github-policies/syntax
- /github/enforcing-best-practices-with-github-policies/syntax
versions: '*'
children:
- search
Expand Down
8 changes: 3 additions & 5 deletions tests/rendering/breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,15 @@ describe('breadcrumbs', () => {

test('early access article pages have breadcrumbs with product, category, and article', async () => {
const $ = await getDOM(
'/early-access/github/enforcing-best-practices-with-github-policies/about-github-policies'
'/early-access/enterprise-importer/understanding-github-enterprise-importer'
)
const $breadcrumbTitles = $('[data-testid=breadcrumbs] [data-testid=breadcrumb-title]')
const $breadcrumbLinks = $('[data-testid=breadcrumbs] a')

expect($breadcrumbTitles).toHaveLength(0)
expect($breadcrumbLinks).toHaveLength(4)
expect($breadcrumbLinks[0].attribs.title).toBe(
'Enforcing best practices with GitHub Policies'
)
expect($breadcrumbLinks[1].attribs.title).toBe('About GitHub Policies')
expect($breadcrumbLinks[0].attribs.title).toBe('GitHub Enterprise Importer')
expect($breadcrumbLinks[1].attribs.title).toBe('Understand the Importer')
expect($breadcrumbLinks[1].attribs.class.includes('color-fg-muted')).toBe(true)
})
})
Expand Down

0 comments on commit 1984595

Please sign in to comment.