Kevin Heis
f8d2395960
Remove theme from HTML ( #29560 )
...
* Remove theme from HTML
* update for linting error
* Fix for overriding default color modes
Co-authored-by: Grace Park <lugraciecy@gmail.com >
Co-authored-by: Grace Park <gracepark@github.com >
2022-08-02 17:06:54 -07:00
Kevin Heis
a16aeac936
Prepare render-page for re-enabling HTML caching ( #29473 )
...
* Prepare render-page for re-enabling HTML caching
* Prepare render-page for re-enabling HTML caching
* Prepare render-page for re-enabling HTML caching
* Update healthz.js
* Pre calculate cache control directives
* Update render-page.js
2022-07-29 19:49:36 +00:00
Octomerger Bot
ff2f9a0b14
Merge branch 'main' into repo-sync
2022-07-28 15:00:31 -04:00
Kevin Heis
0886faddac
Move language context to browser/session ( #29433 )
2022-07-28 18:50:46 +00:00
Nick McCurdy
f028bd7a21
Merge branch 'main' into fix-links-to-feedback-discussions
2022-07-27 17:57:13 -04:00
Nick McCurdy
d6a886b6d0
Rename github-community to community
2022-07-27 17:36:23 -04:00
Kevin Heis
f79e1d2cb7
Fetch CSRF token over XHR (browser-side) ( #29337 )
...
* Client side csrf token grab
* Update get-session.ts
* Update get-session.ts
* Update get-session.ts
* Remove test refs to meta tag
* Update get-session.ts
* Update get-session.ts
* Update get-session.ts
* Update get-session.ts
* Fix some type issues
* Simplify api
* Update components/lib/get-session.ts
Co-authored-by: Rachael Sewell <rachmari@github.com >
Co-authored-by: Rachael Sewell <rachmari@github.com >
2022-07-27 16:18:07 +00:00
Courtney Wilson
be95e8e56d
Merge branch 'main' into fix-links-to-feedback-discussions
2022-07-26 15:56:10 -04:00
Kevin Heis
2182ff28f3
Next12 now supports ESM ( #29295 )
...
* Next12 now supports ESM
* No more michael jackson script extensions
* Fix test running
* Update jest-puppeteer.config.cjs
* Update package.json
2022-07-26 17:53:23 +00:00
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
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
Nick McCurdy
619aa2e9cd
Merge branch 'main' of https://github.com/github/docs into fix-links-to-feedback-discussions
2022-07-19 06:22:27 -04: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
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
Nick McCurdy
a56fde7040
Fix links to feedback discussions
2022-06-30 01:26:59 -04:00
Nick McCurdy
0f8139c12d
Update feedback repository URL
2022-06-30 00:40:34 -04: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
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
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
Peter Bengtsson
a39614fdcf
remove supertest dependency ( #28572 )
...
* remove supertest dependency
* remove bad test
2022-06-16 15:56:41 +00: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
Robert Sese
61a777f18d
Update rendering tests to use different products
2022-06-08 12:05:45 -05:00
Robert Sese
fd521e25e4
Use repositories product for breadcrumbs tests
2022-06-08 11:18:18 -05:00
Matt Pollard
f117de3e4d
Fix test
2022-06-08 14:47:20 +02:00
Matt Pollard
e2be0f253c
Remove unnecessary tests
2022-06-08 14:44:12 +02:00
Peter Bengtsson
d014f36222
fix external redirects ( #28063 )
...
* fix external redirects
* oops
* feedbacked
2022-06-02 02:06:29 +00:00
Mike Surowiec
b4608a86d8
fix: remove usage of readFileAsync ( #28053 )
...
* fix: remove usage of readFileAsync
* fix: use same import style
* fix: update tests
Co-authored-by: Peter Bengtsson <mail@peterbe.com >
2022-06-01 14:49:30 +00:00
Peter Bengtsson
107a40ebb3
move json versioning rendering tests to tests/rendering/ ( #28017 )
2022-05-26 17:13:34 +00:00
Peter Bengtsson
2dcd2df131
move products rendering tests to tests/rendering/ ( #28018 )
2022-05-26 17:07:13 +00:00
Peter Bengtsson
5b6852dffb
rest reference pages should have body and lead in sync search ( #27961 )
...
* rest reference pages should have body and lead in sync-search
* tests passing
2022-05-24 16:10:03 -04:00
Peter Bengtsson
9bef33aec4
let front door handle invalid paths ( #27954 )
2022-05-24 18:30:05 +00:00
Peter Bengtsson
18504871b9
cache full rendering ( #25424 )
...
* cache full rendering
* still not working with gzip
* progress progress progress
* smaller
* hacky progress
* small fixes
* wip
* lock file
* wip
* wip
* package-lock updates
* wip
* search DOM in lowercase
* simplify
* with instrument
* improve test coverage
* mutateCheeriobodyByRequest
* fix
* remove renderContentCacheByContex
* disable render caching in sync-search
* diables things in github/github link checker
* gzip lru
* tidying up
* updated
* correct tests
* fix: move userLanguage to LanguagesContext
* Revert "fix: move userLanguage to LanguagesContext"
This reverts commit d7c05d958c71eaad496eb46764eb845d80b866ca.
* contexts ftw
* fixed rendering tests
* oops for got new file
* nits addressed
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com >
2022-05-23 12:12:09 +00:00
Grace Park
10fea98af5
Search updates larger font ( #27838 )
...
* removing search from home page and adding to header
* remove homepage search
* adding description
* update to f5
* remove homepage search test
* removing homepage search rendering test
* showing preview of larger font
* update wording at breakpoint
* update to short description everywhere
* Update components/homepage/HomePageHero.tsx
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com >
* remove unnecessary stylesheet
* Update data/ui.yml
Co-authored-by: Janice <janiceilene@github.com >
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com >
Co-authored-by: Janice <janiceilene@github.com >
2022-05-20 12:12:36 -07:00
Grace Park
344001b359
Update rest.js ( #27791 )
...
* Update rest.js
* Update rest.js
* Update tests/rendering/rest.js
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com >
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com >
2022-05-19 00:12:33 +00:00
Grace Park
f1589aa2ba
Update rest.js
2022-05-18 09:33:49 -07:00
Sophie
751b53402e
Merge branch 'main' into sophie-6156-rename
2022-05-18 13:24:20 +02:00
Peter Bengtsson
8580fb5e42
fast HEAD requests ( #27672 )
...
* fast HEAD requests
* update test
2022-05-13 14:46:57 +00:00
Sophie
ec59844789
Merge branch 'main' into sophie-6156-rename
2022-05-12 18:08:38 -04:00
Peter Bengtsson
db56eb2bc8
more patience for slow favicon downloads in jest ( #27611 )
2022-05-11 14:23:46 +00:00
Grace Park
2e821f52ff
REST subcategory/category rendering test and refactor test-open-api-schema ( #27138 )
...
* first stage of test
* update test
* add rest test for categories and subcategories rendering
* update timeout back to original
* remove export
* remove testing
* refactor test-open-api-schema
* remove function
* remove check
* remove slash
* remove comment
* rearrange
* update getting the categories and maptopic levels
* update tests
* update copy
* add error message task
2022-05-10 17:09:47 +00:00
Grace Park
93809fdb18
fix rest test ( #27460 )
2022-05-04 17:05:52 +00:00
Grace Park
f2c6004aaa
REST API Pages: fix links of endpoints-available-for-github-apps page ( #27425 )
2022-05-04 00:56:04 +00:00
Sophie
6e0554f535
Merge branch 'main' into sophie-6156-rename
2022-04-28 20:30:30 +02:00
Grace Park
e087622e1f
REST Docs: update H3 to H2 operation heading ( #27242 )
...
* update H3 to H2 operation heading
* update rest test to h2
2022-04-27 17:22:21 +00:00
Matt Pollard
f1fb34a2ad
Update hard-coded URLs in test
2022-04-21 10:21:58 +02:00
Grace Park
b98c83e924
REST operations sidebar ( #26225 )
...
* testing out a rest operations sidebar
* cleanup
* renamed 5 files
* renamed 5 files
* set redirect_from on 5 files
* renamed 1 files
* renamed 1 files
* renamed 3 files
* renamed 1 files
* renamed 1 files
* renamed 3 files
* renamed 1 files
* renamed 2 files
* renamed 1 files
* renamed 4 files
* renamed 15 files
* renamed 2 files
* renamed 6 files
* renamed 1 files
* renamed 4 files
* renamed 7 files
* renamed 1 files
* renamed 3 files
* renamed 3 files
* renamed 1 files
* renamed 5 files
* renamed 1 files
* renamed 1 files
* renamed 3 files
* renamed 4 files
* renamed 1 files
* renamed 1 files
* renamed 2 files
* renamed 4 files
* renamed 1 files
* renamed 1 files
* renamed 1 files
* renamed 6 files
* renamed 6 files
* renamed 4 files
* move files
* adding more
* updating to add restcontext and start of removing data/reusables/rest-reference
* removed data/reusables
* add a RestMiniTocItem and updating the filtering to add a subcategory so all manually added H3s are in mini tocs in addition to operations
* remove console log
* [WIP]: REST New Proposal Sidebar (#26471 )
* saving
* update sidebar
* remove console log
* update guides and overview
* import Category for category level rest pages
* update undefined restOperations
* update restOperationData category and subcategory levels"
* minor updates
* update get mini toc items function
* updating REST context for sidebar
* updating rest data
* remove console logs
* WIP: mini-toc-ing the sidebar
Co-authored-by: Robert Sese <rsese@github.com >
* A little cleanup
* Fix first subcategory link and add some comments
* updating anchor links in sidebar
* adding updates
* remove standalone
* update product and maptopic pages using article context
* add conditional link wrapper
* fix sidebar toggle and versions for enterprise admin
* update versions per subcategory
* Highlight sidebar link for current page
* Update miniToc hash links and hash change tracking
* fix unique key in CollapsibleSection
* Fix list markup
* remove title
* update permissions
* Hide minitocs on landing (#26594 )
* hide minitocs on landing page
* simplify page components and remove minitoc from sidebar for guides/overview
* fix carats and category fix
* remove id
Co-authored-by: Grace Park <gracepark@github.com >
* updating content based on versions script check with the OpenAPI
* update script and content files
* update script and content/rest files
* update to add TocLanding
* update script
* update index files
* add codespaces repository-secrets
* remove openapi schema check script
* remove minitocs at the top
* add h2 about the {title} api
* fix tests/unit/openapi-schema.js
* Fix linting tests
* fix search/topics test
* fix tests/unit/pages test
* update rest/reference links in components
* run prettier
* Update components/rest/RestReferencePage.tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Update components/rest/RestReferencePage.tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Update pages/[versionId]/rest/[category]/[subcategory].tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Update pages/[versionId]/rest/[category]/[subcategory].tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Update pages/[versionId]/rest/[category]/[subcategory].tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Update pages/[versionId]/rest/[category]/[subcategory].tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Update tests/unit/openapi-schema.js
Co-authored-by: Rachael Sewell <rachmari@github.com >
* updating comment location
* remove dependabot override
* remove path-utils current product update for rest
* run linter
* remove dependabot.md and remove h2 heading on restreference
* update the correct product to rest for rest pages
* adding comments for updates to path-utils
* remove console log
* REST sidebar: handle legacy v3 redirects (#26686 )
* Add script to handle legacy v3 REST redirects
* Run the script
* Handle a redirect to a redirect
* Update REST test URLs
* 'await' and test runs subcategory of checks
* Update REST URLs for routing/developer-site-redirects tests
* Update developer-redirects fixture with new REST URLs
* Resolve merge conflicts
* Update rest-redirects fixture with new REST URLs
* Fix broken links with REST pages re-org
* redirectTo could be undefined
* Fix script for posterity, can't redirect paths with hashes
* Remove invalid hash redirects
* Typically don't need to save one-off scripts
* Undo redirect changes (not necessary for handling v3 redirects)
* Remove script-added redirects
* Update old v3 redirects with new REST URLs
* No more GHES search indexing page
* 'org' not 'organization'
* Update fixture data for new REST URLs
* revert any content directory changes
Co-authored-by: Grace Park <gracepark@github.com >
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Adding test rest (#26750 )
* add test to check openapi schema versions and content rest frontmatter versions
* update lib/redirects
* fix test and add error messages
* adding repository secrets
* adding repository-secrets.md
* Revert "update lib/redirects"
This reverts commit 3aafe28265764d5bc09c0c478c8e0ca099c8fbcf.
* remove lib/redirects changes and console logs
* Update lib/rest/index.js
Co-authored-by: Rachael Sewell <rachmari@github.com >
* update unique key
* Rest client side redirects (#26754 )
* adding tags subcategory for the rest content repos category
* run prettier
* bug fix for anchor scrolls" (#26892 )
* updating width size for rest reference page
* Rest sidebar consolidation (#26862 )
* refactor sidebar
* fix articlecontext provider issue on rest product landing page for all versions
* fix a bug, create new component
* revert change to create new component and fix bug
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Set currentAnchor with a hashchange handler (#26923 )
* Rest sidebar design tweaks (#26807 )
* Rest sidebar design tweaks
* tweak color to subtle
* use muted color and margin for line
* update to design feedback
Co-authored-by: Grace Park <gracepark@github.com >
* Remove cheerio from rest-collapsible (#26948 )
* remove cheerio from rest-collapsible
* update type
* adding endswith instead
* use productId instead
* one off edge case for secret-scanning
* Reorganize subcategory and category, Update pre -> div, Add RestContext (#26950 )
* reorganize subcategory and category
* add RestContext
* update comment
* update for endpoints page
* add comment
* move object to restcontext
* remove effectiveDate in restcontext
* remove width calculation for rest reference page
* fix adding manual writer's minitocs to sidebar
* update with feedback
* update comment
* update isRestReferencePage
* remove page component and fix bug
* adding back rest/index.tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
* update content/rest"
* add back design tweak
* update to div
* update margins on rest api reference
* remove page component
* adding tests
* separate product from rest sidebar (#27065 )
* separate product from rest sidebar
* Use ProductCollapsibleSections for product pages
* fix tests
Co-authored-by: Robert Sese <rsese@github.com >
Co-authored-by: Grace Park <gracepark@github.com >
* Rest sidebar translations (#27052 )
* update translations
* remove general test
Co-authored-by: Robert Sese <rsese@github.com >
Co-authored-by: Rachael Sewell <rachmari@github.com >
2022-04-20 10:19:48 -07:00