* Add translation frontmatter to the schema
* Drop frontmatter in reusables.
Co-authored-by: Sarah Schneider <sarahs@github.com>
* Delete 'ms' property from data/ui.yml
Co-authored-by: Hector Alfaro <hectorsector@github.com>
Co-authored-by: Sarah Schneider <sarahs@github.com>
* Add cta button to frontmatter and context
* Add cta to Page
* Render cta button in product landing hero
* Handle external links
* Add simple unit test for cta link
* Address feedback
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Actually push condition update
* Show it's an external link
* Refactor FullLink so we use Link once
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Custom link can also be null
* Rename 'cta' to 'custom' and make it the last introLink
* Update tests with 'cta' to 'custom' change
* Filter once
* Revert "Filter once"
This reverts commit a3f9a8a06b505d77fed47ca96a66c187c86c3c91.
* Update introLinks to a map of titles and URLs
* No more custom introLink in LandingHero
* Simplify introLinks processing
* introLinks can also be null
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* more concise
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* No longer necessary with the a plain introLinks map
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* '.entries()` is simpler
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* 'link' could be false depending on what version you're on
* Update test for new introLinks
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Add new video properties frontmatter
* Handle video links in the middleware
* Video links don't have intros, authors, or full titles
* Make videos available from context
* Add default video heading
* Add basic tests for videos
* tmp videos test
* Remove stray test debugging
* more tmp videos testing
* Add videos test fixture
* Revert "more tmp videos testing"
This reverts commit 382946a5603ff217014797f77f37216bb8bb6c9c.
* Revert "tmp videos test"
This reverts commit 8767d0eaf08bd4ca04e2dacd12d476a2506c0367.
* homepage: reduce padding below search area
Bring as much useful content up "above the fold".
* homepage: add groups for the front page sections
Group the homepage links into sections that map to the GitHub features
page (`/features`) plus two groups that are bespoke to the docs ("Get
started" and "Developers").
* homepage: update group design
Group the feature list area using the design exploration work by
@arisacoba. Remove the description.
* homepage: remove ungrouped items from main area
Remove ungrouped items (like the external links) from the main feature
area. Users can still navigate to ungrouped items in the sidebar.
* fix tsc error, use Link component
* homepage: support empty icon in group
Don't assume that we have icons everywhere on the landing page groups.
* homepage: drop octocat/invertocat
Looks weird with the modern icons, looks bad in dark mode. Drop them
for now.
* homepage: document the childGroups frontmatter property
* homepage: don't test that sidebar == main content
We're reducing the links on the homepage in the main content area, but
the sidebar should be the complete list of products. Remove the tests
that ensure that the main content area has all the sidebar content. But
keep the tests that ensure that the sidebar content has all the links in
the main content area.
* homepage: remove "GitHub" doc set
The "GitHub" doc set "will be removed soon as we keep moving more content
out of it, so let's not include it here to keep the page more
evergreen."
* homepage: don't test that `/github` is linked on the main page
We're removing the `/github` doc set, and it's now not in the main page
grouped links. Remove the test that `/github` exists, now look for
`/get-started`.
* homepage: use octicons instead of images
The images from https://github.com/features will be updated 🔜 - in
the meantime, let's use octicons which are consistent and give visual
interest.
* homepage: use octicons from @primer/octicons-react
Using the react components adds `<svg>` elements instead of `<img>`
elements, which lets the element use the current fill color, supporting
both light and dark themes.
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>
* adding effectiveDate frontmatter property
* Update components/article/ArticlePage.tsx
Co-authored-by: Peter Bengtsson <peterbe@github.com>
* adding validation for correct date
* update to dateTime
* update to year month day
* update error date validation
* moving validation to getArticleContextFromRequest and moving id to div
* remove enteredDate
* Update content/README.md
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
Co-authored-by: Laura Coursen <lecoursen@github.com>
* adding switcher to creating a codespace guide
* adding additional switcher for vscode and updating codespaces name
* using webui in codespaces coontext
* updating internal documentation
* remove default tool
Co-authored-by: hubwriter <hubwriter@github.com>
* adding product feedback redirect for community on sponsors, discussions, and actions community link
* remove community redirect from actions and add to codespaces and add tests
* update wording for these links
* updating to add name of the button to frontmatter
* cleanup FEATURE_NEXTJS
* fixing some server tests
* updating article a for server tests
* update h2 to h4 map topic tests
* data off on TOCs
* updating dropdown article versions links
* Update so markdown renders in intros
* updating typo and all server tests are now passing
* remove nextjs feature flag
* head.js tests pass
* updating article-version-picker
* remove nextjs feature flag browser test
* update header.js tests
* fix page-titles.js test
* fix deprecated-enterprise versions
* adding early access
* testing
* getting childTocItem
* fixing table of contents to show child toc items
* updated to 2 because the sidebar article also has the same link
* remove comment
* updating pick
* Update TocLandingContext.tsx
* update package.json and change className to h4 for h2
* updating with mikes feedback
* remove a.active test
* React clean up: Delete unnecessary layouts/includes Part 2 (#20143)
* Delete unnecessary layouts
* setting back tests failing :(
* update layouts
* delete unnecessary includes
* remove github-ae-release-notes and updating layouts
* remove a.active test
* First run of script
* Get the app running --- ish
* Get NextJS working
* Remove `node:`
* Get more tests passing in unit directory
* Update FailBot test to use nock
* Update test.yml
* Update Dockerfile
* tests/content fixes
* Update page.js
* Update build-changelog.js
* updating tests/routing
* Update orphan-tests.js
* updating tests/rendering
* Update .eslintrc.js
* Update .eslintrc.js
* Install jest/globals
* "linting" tests
* staging update to server.mjs
* Change '.github/allowed-actions.js' to a ESM export
* Lint
* Fixes for the main package.json
* Move Jest to be last in the npm test command so we can pass args
* Just use 'npm run lint' in the npm test command
* update algolia label script
* update openapi script
* update require on openapi
* Update enterprise-algolia-label.js
* forgot JSON.parse
* Update lunr-search-index.js
* Always explicitly include process.cwd() for JSON file reads pathed from project root
* update graphql/update-files.js script
* Update other npm scripts using jest to pass ESM NODE_OPTIONS
* Update check-for-enterprise-issues-by-label.js for ESM
* Update create-enterprise-issue.js for ESM
* Import jest global for browser tests
* Convert 'script/deploy' to ESM
Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: James M. Greene <jamesmgreene@github.com>