1
0
mirror of synced 2026-01-03 06:04:16 -05:00
Commit Graph

863 Commits

Author SHA1 Message Date
Grace Park
798dd62609 Update page-data to parseAndRender childPage titles (#29265)
* start

* updating page-data

* fix test'

* remove unnecessary file check

* remove line

* line

* remove file check

* fix title -> shortTitle

Co-authored-by: docubot <67483024+docubot@users.noreply.github.com>
2022-07-22 11:32:30 -07:00
Kevin Heis
564e3a5e2a Move CSRF response back to XHR (Node.js prep) (#29179)
* Move CSRF response back to XHR

* Update events.js

* Pass through cookieJar

* Enable session route test

* Skip next x csrf test

* Add other fields to endpoint for future issues

* Remove client side parts

* Revert test skip

* Use nested router pattern

* ugh forgot a file

* Update naming

* Update tests/rendering/session.js

Co-authored-by: Peter Bengtsson <peterbe@github.com>

* Updating to use cache control

* Use req.langauge and req.userLanguage

Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-07-22 18:17:22 +00:00
Sarah Schneider
74d8080dea Merge branch 'versioned-redirects' of github.com:github/docs-internal into versioned-redirects 2022-07-22 12:12:43 -04:00
Sarah Schneider
7dc8d11fed reorder imports to be more standard 2022-07-22 12:12:33 -04:00
Sarah Schneider
73cd3db0d1 Update tests/rendering/server.js
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-07-22 12:09:33 -04:00
Sarah Schneider
79a8d03afc update test to reflect the latest rewrite-links functionality 2022-07-22 10:38:21 -04:00
Sarah Schneider
7ad266949b update some filepaths that have changed 2022-07-21 10:08:47 -04:00
Sarah Schneider
4cbbf22fbd Merge branch 'main' of github.com:github/docs-internal into versioned-redirects 2022-07-21 09:04:04 -04:00
Peter Bengtsson
9dce4cd96d redirect to language url for ghes 3.0 and 3.1 (#29136)
Co-authored-by: Hector Alfaro <hectorsector@github.com>
2022-07-19 15:22:48 +00:00
Peter Bengtsson
4bff926c7e inject language for legact admin/release-notes URLs (#29082) 2022-07-15 20:28:31 +00:00
Peter Bengtsson
e0a20add31 //en/some/path should redirect to /en/some/path (#29077)
* //en/some/path should redirect to /en/some/path

* remove debugging
2022-07-15 19:16:42 +00:00
Peter Bengtsson
37d3bded04 simplify Table of Contents (#28833)
* simplify table-of-contents

* key

* fix rendering tests

* Not so much top margin

* Map topic ToC links are spans

* use p tag

* Back to span for the article title

* Update comment to match markup

* remove hack

* use h2 instead

* fix tests

* fix use of key

* use regular className instead

Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
2022-07-14 14:28:41 +00:00
Peter Bengtsson
e61d71f42f HTML to plain text is broken in various places (#29006)
* HTML to plain text is broken in various places

* remove comment
2022-07-13 21:29:55 +00:00
Grace Park
822fe2926b Megabranch: Upgrade primer/react (#28458)
* upgrade primer/react

* upgrade

* using deprecated

* remove lib"

* Upgrade primer/react: Upgrade Label (#28502)

update Label to primer/react 35.2.2

* fix merge conflicts

* primer/react v35: update ActionList (#28467)

* Update to v35 ActionList for LearningTrack

* Update to v35 ActionList for ArticleList

* Update to v35 ActionList for ProductArticleList

* Update to v35 ActionList for TableOfContents

* Update to v35 ActionList for ProductCollapsibleSection

* Update to v35 ActionList for RestCollapsibleSection

* Update to v35 ActionList for SidebarHomepage

* Update to v35 ActionList for MiniTocs

* Update to v35 ActionList for Search

* Extra div for rendering test

* One less div for rendering test

* All the style updates for v35 ActionList

* Works without setting as an li which is already the default (didn't before for some reason)

* Use deprecated ItemInput for now

* Picker update for primer/react (#28485)

* update picker

* inline picker for mobile

* set width to auto

* Update components/ui/Picker/Picker.tsx

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>

* update

* Update Picker.tsx

* update onselect

* checking language code

* move language cookie setting to language picker

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>

* Resolve package merge conflicts

* fresh npm install

* Primer update UnderlineNav (#28582)

* update underlinenav for primer/react update

* update tests

* update switches test

* update one last label

* update header test"

* remove href in underlinenav

* update rendering tests

* update cursor

* primer/react v35: update DropDownMenu to ActionMenu (#28576)

* Update to v35 ActionMenu for ArticleCards

* Update to v35 ActionMenu for Search

* Set button to inline-block

* Put the props on the overlay

* Update test for ActionMenu markup

* update package

* update package lock

* primer/react v35: CodeLanguagePicker update from SelectMenu to ActionMenu (#28625)

* Use octicon for menu down arrow

* Update to v35 ActionMenu for CodeLanguagePicker

* update to SubNav

Co-authored-by: Grace Park <gracepark@github.com>

* update package-lock

Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2022-07-11 11:51:18 -07:00
Peter Bengtsson
ef5406ae9a rest reference redirects with free-pro-team@latest (#28838) 2022-06-29 20:42:58 +00:00
Peter Bengtsson
ee1f20f4fb jest 28.1.1 (#28797)
* got 28.1.1

* wip

* force upgrade nth-check

* legacyFakeTimers
2022-06-29 11:55:03 +00:00
Sarah Schneider
aed1f595c6 remove no longer needed test 2022-06-24 13:05:00 -04:00
Sarah Schneider
bdc0302c83 move some entries to redirect exceptions file, and fix some others that are weird 2022-06-24 12:26:15 -04:00
Sarah Schneider
f6f43cd353 make the exceptions redirects function accept filename as a param so we can reuse it 2022-06-24 12:25:37 -04:00
Sarah Schneider
d77727ec7a re-add exceptions redirects file and handler... we can continue to use these for true exceptions 2022-06-24 12:23:58 -04:00
Sarah Schneider
10b7d41e36 fix conflicts 2022-06-24 09:21:18 -04:00
Sarah Schneider
024275bfed update prerendered graphql object tests so they pass 2022-06-23 12:27:49 -04:00
Kevin Heis
f948c81038 Upgrade got (#28617)
* Upgrade got

* Update e2etest.js

* Skip following redirects on redirect tests

* Update deprecated-enterprise-versions.js
2022-06-21 16:23:51 +00:00
Matt Pollard
965e27ca3a Merge branch 'main' into copilot-ga-megabranch 2022-06-20 09:43:14 +02:00
Kevin Heis
03e2cf22e6 Upgrade cheerio (#28614) 2022-06-17 16:34:56 +00:00
Sarita Iyer
bbf856c92a Merge branch 'main' into ske-dep-api 2022-06-17 11:50:10 -04:00
Matt Pollard
8297c57ac3 Add article with conceptual overview of GitHub Enterprise Server (#28221) 2022-06-17 09:25:36 +00:00
Jules
14b008c99b Merge branch 'main' into copilot-ga-megabranch 2022-06-17 09:56:12 +02:00
Sarita Iyer
b672b23df1 Merge branch 'main' into ske-dep-api 2022-06-16 15:40:07 -04:00
Peter Bengtsson
a39614fdcf remove supertest dependency (#28572)
* remove supertest dependency

* remove bad test
2022-06-16 15:56:41 +00:00
Peter Bengtsson
029291195c stop using supertest to unit test archived enterprise static assets (#28528)
* stop using supertest to unit test archived enterprise static assets

* feedbacked
2022-06-16 11:30:02 -04:00
Peter Bengtsson
d4692b208e put the full plan name in the page titles (#28450)
* put the full plan name in the page titles

* fix tests
2022-06-16 13:29:23 +00:00
Jules
7243bc6bc3 Merge branch 'copilot-ga-megabranch' into getting-started-articles 2022-06-16 08:15:50 +02:00
Jules
1e806577de Merge branch 'main' into copilot-ga-megabranch 2022-06-16 07:50:24 +02:00
Peter Bengtsson
2f37efd633 minimize content in miniToc prop (#28522)
* make miniToc pure data and no html strings

* fixups

* minimize content in miniToc prop

* minimize content in miniToc prop

* some types refactoring

* fix tests
2022-06-15 21:04:54 +00:00
Jules Parker
bd577924ee Merge branch 'copilot-ga-megabranch' into getting-started-articles 2022-06-13 11:01:11 +02:00
Jules
c8951c2e15 Merge branch 'main' into copilot-ga-megabranch 2022-06-13 08:45:47 +02:00
Jules Parker
30ef36eebf Merge branch 'copilot-ga-megabranch' into getting-started-articles 2022-06-10 09:51:00 +02:00
Sarah Edwards
f85983a6cf Merge branch 'main' into ske-dep-api 2022-06-09 13:15:31 -07:00
Robert Sese
61a777f18d Update rendering tests to use different products 2022-06-08 12:05:45 -05:00
Jules Parker
57cf72a7c7 Merge branch 'copilot-ga-megabranch' into getting-started-articles 2022-06-08 19:05:43 +02:00
Robert Sese
beefde480e Use issues product for homepage redirect tests 2022-06-08 11:37:44 -05:00
Robert Sese
fd521e25e4 Use repositories product for breadcrumbs tests 2022-06-08 11:18:18 -05:00
Sarah Schneider
333a08804a we do not need this test anymore 2022-06-08 09:19:57 -04:00
Matt Pollard
f117de3e4d Fix test 2022-06-08 14:47:20 +02:00
Matt Pollard
0984f7dae6 Fix tests 2022-06-08 14:47:15 +02:00
Matt Pollard
3e6bac801e Update test to use different product 2022-06-08 14:44:14 +02:00
Matt Pollard
e4877b8517 Fix two tests for deleted product 2022-06-08 14:44:13 +02:00
Matt Pollard
e2be0f253c Remove unnecessary tests 2022-06-08 14:44:12 +02:00
Matt Pollard
eb19b9bfe8 Fix test 2022-06-08 14:39:26 +02:00