Grace Park
5b2c714950
Remove sidebarhomepage and add external links to More docs ( #39738 )
2023-07-26 19:27:36 +00:00
Kevin Heis
ab91bc6b43
Move more REST files into src ( #37026 )
...
Co-authored-by: Rachael Sewell <rachmari@github.com >
2023-05-11 17:17:57 +00:00
Kevin Heis
6c1d512da9
Add H1 headings to footer for a11y ( #36216 )
2023-04-13 20:56:05 +00:00
Hector Alfaro
2fbc991318
Match GitHub on skip-to-content button style ( #34921 )
2023-02-21 16:29:29 +00:00
Robert Sese
892a4e37d9
Fix guides page bugs ( #34881 )
2023-02-17 21:24:08 +00:00
Robert Sese
e5370a5990
Feature Branch: Global Nav Phase 2 ( #34359 )
...
Co-authored-by: Grace Park <gracepark@github.com >
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com >
2023-02-13 17:37:47 +00:00
Grace Park
ef2efb0636
Feature Branch: Global Nav Phase 1 ( #33465 )
...
Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com >
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com >
Co-authored-by: Peter Bengtsson <peterbe@github.com >
2023-01-31 17:49:50 +00:00
Peter Bengtsson
26e22af8ae
include the data-search=breadcrumbs ( #33576 )
2022-12-15 01:03:12 +00:00
Peter Bengtsson
acea4fff96
include breadcrumbs in MINIMAL_RENDER layout ( #33569 )
2022-12-14 21:57:34 +00:00
Peter Bengtsson
805fca4f63
MINIMAL_RENDER should be on default for npm run sync-search-server ( #33294 )
2022-12-07 19:51:17 +00:00
Peter Bengtsson
b0227ab126
minimal render minimal for faster sync search rendering ( #33185 )
2022-12-05 18:01:41 +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
Robert Sese
3404349081
Fix sticky header issue in Firefox ( #27159 )
...
* Redundant sticky?
* update zindex to bring scroll button up
Co-authored-by: Grace Park <gracepark@github.com >
2022-04-22 21:31:12 +00: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
Grace Park
21b59b5805
Move mini tocs rest + collapsible ( #26069 )
...
* starting minitocs change
* moving rest mini tocs and adding functionality to collapse
* adding some comments
* update margins
* minor updates: fix scroll to top button add padding to resthttpmethod verbs and background color for nested arrows in minitocs
* 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 >
* fix comment
* fix wording and z index
* bring back articlegridlayout
* updating margins for lg and xl
Co-authored-by: Rachael Sewell <rachmari@github.com >
2022-03-14 10:50:53 -07:00
Robert Sese
9c8ab14c46
Set meta description on homepage ( #25546 )
...
* Set meta description on homepage
* Update data/ui.yml
Co-authored-by: Janice <janiceilene@github.com >
* Better naming
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com >
* Update string key
* Always rendered
Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com >
Co-authored-by: Janice <janiceilene@github.com >
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com >
2022-02-28 18:24:57 +00:00
Robert Sese
c8e95ee460
Set explicit height so things can stick ( #25471 )
...
* Set explicit height so things can stick
* Add comment about explicit height
* Fix printing with explicit height set
2022-02-22 21:17:00 +00:00
Lucas Costi
e6af9ae1e6
Remove Actions REST enterprise subcategory (moved to Actions page) ( #25065 )
...
Co-authored-by: Rachael Sewell <rachmari@github.com >
2022-02-17 15:18:07 +10:00
Grace Park
d78f1dfa5a
Fix screen width - release notes ( #24881 )
...
* fix screen width
* center items
* set maxwidth
* set back to justify between
* adding overflow auto to default layout
* remove center alignment for release note content
* fix vertically align release candidate button
Co-authored-by: Rachael Sewell <rachmari@github.com >
2022-02-02 21:28:47 +00:00
Grace Park
8374263842
a11y: Remove redundant banner ( #24605 )
...
* remove redundant banner
* adding flex-1
2022-01-25 17:32:34 +00:00
Grace Park
a3b81bb93c
restructure footer and header ( #24601 )
2022-01-24 15:19:45 -08:00
Grace Park
66d8e2b15c
skip link for screen readers to main content ( #24599 )
2022-01-24 14:19:15 -08:00
Rachael Sewell
daafb8cb9d
break up large rest pages ( #23652 )
2021-12-14 20:39:25 +00:00
Mike Surowiec
b279482cf9
Footer styling ( #21877 )
2021-10-06 18:09:11 +00:00
Mike Surowiec
3125579983
remove currentLanguage from mainContext, use router.locale instead ( #21716 )
2021-09-27 14:40:43 +00:00
Kevin Heis
29ebc555cb
Add btn-primary-matte, ScrollButton, TruncateLines to storybook ( #21611 )
...
* Update create-processor.js
* Use built in semibold
* Preparing articlelist
* Add blue button to storybook
* Scope fade styles
* Add truncate component
* Add scroll button to storybook
* Update storybook.tsx
* Update DefaultLayout.tsx
2021-09-20 23:21:29 +00:00
Kevin Heis
cdbbc63219
Send new analytics fields for path_language, path_version, path_product, path_article ( #21562 )
...
* Send new analytics fields for path_language, path_version, path_product, path_article
* Update DefaultLayout.tsx
* Update events.js
2021-09-17 19:22:54 +00:00
Kevin Heis
4d0e9c70a3
Add new fields to analytics event context: status, page_type, page_document_type ( #21115 )
...
* Add new fields to analytics event context: status, page-type, page-document-type
* Update schema-event.js
* Typescript
* Add status meta to error pages
* Update DefaultLayout.tsx
* Update DefaultLayout.tsx
* Update building-and-testing-nodejs-or-python.tsx
2021-08-26 14:58:45 -07:00
Kevin Heis
1cb2da024d
Add opengraph tags to articles ( #21089 )
...
* Add opengraph tags to articles
* Update MainContext.tsx
* Update DefaultLayout.tsx
2021-08-26 14:18:58 +00:00
Mike Surowiec
c433c43019
Sidebar refactor: scope css + more ( #20837 )
...
* refactor sidebar, scope css, wire up nav events to link component, update tests
* remove link onClick analytics event
* fix: missing key on breadcrumbs
2021-08-12 15:28:32 -04:00
Mike Surowiec
a511c95c7f
SCSS and Component cleanup (pt 1) ( #20572 )
...
* turn article.scss into a module + componentized
* Update Survey to use only component styles, add cancel button
* Update GenericError + 404 page to use only standard classes
* update LearningTrack to not use markdown-body
* remove / consolidate stylesheets
* cleanup Graphiql explorer page and scss
* Componentize Breadcrumb styles
* Componentize DeprecationBanner styles
* scope h2 a link style to markdown-body
* cleanup nav, organize page-header and page-footer components
* remove unused scroll-button.scss
* organize LanguagePicker and ProductPicker
* add declarations file
* remove featured-links.scss, update tests
* update list utility and toc test
* fix bad merge resolution
* update breadcrumbs test
2021-07-29 17:27:20 +00:00
Mike Surowiec
9386571aa4
fix: use named export for all-versions ( #20478 )
...
* fix: use named export for all-versions
* run prettier
2021-07-22 19:29:00 +00:00
Grace Park
27aa5d92ea
Remove FEATURE_NEXTJS Flag Part 1 ( #20176 )
...
* 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
2021-07-16 14:54:25 -07:00
Mike Surowiec
e377d74419
React: import necessary javascripts directly ( #20001 )
...
* import javascript files directly
* move globally required js to _app
* fix: js initialization
* set next env for tests
2021-06-21 21:55:49 +00:00
Kevin Heis
ef48759cb0
React: remove expose ( #19771 )
...
* React: remove expose
* Update context.js
* More changes
* fix: scripts check for IS_NEXTJS_PAGE so there's no timing issue
* run lint
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com >
2021-06-10 16:53:43 +00:00
Mike Surowiec
a88e99c83a
Reactify: release notes ( #19799 )
...
* reactify release-notes pages
* update GHAE/ES react release notes to not rely on javascripts/release-notes.js
2021-06-09 20:44:32 +00:00
Mike Surowiec
75e5d2e2e1
Reactify: main landing page ( #19724 )
...
* update Search to allow mounting input and results in different places
2021-06-07 15:56:09 +00:00
Mike Surowiec
f8f72fc1d8
fix: nextjs stylesheet usage ( #19693 )
...
* fix: nextjs stylesheet usage
* remove builtAssets css from react context
2021-06-03 17:55:01 +00:00
Mike Surowiec
2de358187c
Performance testing NextJS / React ( #19540 )
...
* Remove json.parse(json.stringify( usage to improve performance
* Fix missing / duplicate keys in some renders
* Fix missing react-is dependency (only seemed to cause problems from pruning on the heroku deploy)
* Add nextjs tag to datadog-connect config when nextjs is a query param
* Fix router.asPath usage to exclude query param
* Fix styling inconsistencies noticed when testing
* Add a few tests
2021-05-27 15:17:27 -07:00
Mike Surowiec
2fc3e7e403
feat: wire up remaining head data, csrf token
2021-05-19 08:27:34 -07:00
Mike Surowiec
e8b7d3b9fc
Product landing page react (pt 4) ( #19336 )
...
* start SidebarNav, enable dark mode
* wip: sidebarnav, fix primer components theme rendering
* feat: ProductSiteTree, useFeatureFlag
* feat: add new product site tree (untested)
* wire up HomepageVersionPicker, run lint
* fix: remove re-render logic, fix homepage version picker to be natural width
* fix: support css + primer/components color modes
* fix: rename categoryId -> productId
* feat: ProductSiteTree and AllArticlesProduct
* fix: cleanup warnings
* fix: use next links on ProductSiteTreeNew
* fix: use next Link on AllArticlesProduct
* fix: add tooltip to ScrollButton, remove stylesheet dependency
* feat: ProductArticlesList component
* fix: convert color_mode value from cookie when necessary
* remove comments
* replace liquid with jsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
2021-05-19 02:49:51 +00:00
Mike Surowiec
419e738aca
wip: Header, HeaderNotifications
2021-05-06 15:07:15 -07:00
Mike Surowiec
f3a029b6dd
feat: add SupportSection
2021-05-05 15:58:21 -07:00
Mike Surowiec
34dcba51f1
feat: add DefaultLayout, add to sponsors landing page
2021-05-05 14:54:49 -07:00