Getting started category landing page (#17841)
* Start building out landing page in index file * Add articles * Add a couple more popular articles * Tweak intro to cover more audiences * Add TOC back with new organization * Update content/github/getting-started-with-github/index.md * Category as product guides section * Update breadcrumbs.js * Update server.js * Update product-landing.html * Remove TOC listing * Revert removing TOC * Update index.md * Update index.md * Update content/github/getting-started-with-github/index.md * Apply suggestions from code review Co-authored-by: Laura Coursen <lecoursen@github.com> Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com> Co-authored-by: Laura Coursen <lecoursen@github.com>
This commit is contained in:
@@ -49,13 +49,13 @@ describe('breadcrumbs', () => {
|
||||
})
|
||||
|
||||
test('English breadcrumbs link to English pages', async () => {
|
||||
const $ = await getDOM('/en/github/getting-started-with-github')
|
||||
const $ = await getDOM('/en/github/setting-up-and-managing-your-github-user-account')
|
||||
const $breadcrumbs = $('.breadcrumbs a')
|
||||
expect($breadcrumbs.eq(0).attr('href')).toBe('/en/github')
|
||||
})
|
||||
|
||||
test('localized breadcrumbs link to localize pages', async () => {
|
||||
const $ = await getDOM('/ja/github/getting-started-with-github')
|
||||
const $ = await getDOM('/ja/github/setting-up-and-managing-your-github-user-account')
|
||||
const $breadcrumbs = $('.breadcrumbs a')
|
||||
expect($breadcrumbs.eq(0).attr('href')).toBe('/ja/github')
|
||||
})
|
||||
|
||||
@@ -756,15 +756,15 @@ describe('static routes', () => {
|
||||
})
|
||||
|
||||
describe('index pages', () => {
|
||||
const nonEnterpriseOnlyPath = '/en/github/getting-started-with-github/verifying-your-email-address'
|
||||
const nonEnterpriseOnlyPath = '/en/github/setting-up-and-managing-your-github-user-account/managing-user-account-settings'
|
||||
|
||||
test('includes dotcom-only links in dotcom TOC', async () => {
|
||||
const $ = await getDOM('/en/github/getting-started-with-github')
|
||||
const $ = await getDOM('/en/github/setting-up-and-managing-your-github-user-account')
|
||||
expect($(`article a[href="${nonEnterpriseOnlyPath}"]`).length).toBe(1)
|
||||
})
|
||||
|
||||
test('excludes dotcom-only from GHE TOC', async () => {
|
||||
const $ = await getDOM(`/en/enterprise/${enterpriseServerReleases.latest}/user/github/getting-started-with-github`)
|
||||
const $ = await getDOM(`/en/enterprise/${enterpriseServerReleases.latest}/user/github/setting-up-and-managing-your-github-user-account`)
|
||||
expect($(`a[href="${nonEnterpriseOnlyPath}"]`).length).toBe(0)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user