1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Commit Graph

147 Commits

Author SHA1 Message Date
Zen van Riel
672fb8d3d4 Add GH Pages SSL check flow to Securing Pages doc (#39020) 2023-07-13 14:38:01 +00:00
Peter Bengtsson
2ec905fc77 trailingCommas:all on prettier (#38888) 2023-07-11 11:44:52 +00:00
Peter Bengtsson
9041a57ae5 Refactor how currentProductTree works (#37808)
Co-authored-by: Grace Park <gracepark@github.com>
2023-07-10 19:26:10 +00:00
Hector Alfaro
d1e26f57bb Make inline layout available from frontmatter (#37720) 2023-06-12 13:14:51 +00:00
Peter Bengtsson
567b77012a Homepage links (#37432) 2023-06-05 21:03:08 +00:00
Kevin Heis
cad57eeca3 Create landings subject folder (#37416) 2023-06-02 17:50:08 +00:00
Kevin Heis
85675f9f81 Move more files into automated pipelines directory (#37415) 2023-06-01 17:50:58 +00:00
Jenny Sharps
f94132fbd9 Add 2FA flow to the 2FA auth page (#36847)
Co-authored-by: Zen van Riel <45333650+Zenulous@users.noreply.github.com>
2023-05-09 14:58:25 +00:00
Grace Park
784e937b85 Remove code examples on code security and codespaces landing pages (#36496) 2023-04-20 15:14:07 +00:00
Peter Bengtsson
6990a4ae82 Guides home page should use page's title (#35988) 2023-04-06 17:45:41 +00:00
Zen van Riel
e66e2ab5ac Support Portal & Docs Collaboration: Virtual Assistant in Docs (#35772)
Co-authored-by: Peter Bengtsson <peterbe@github.com>
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
2023-03-29 12:38:47 +00:00
Hector Alfaro
add2b833be Add support for video transcripts in top-level pages (#34528)
Co-authored-by: Rachael Sewell <rachmari@github.com>
2023-02-09 22:21:32 +00:00
Robert Sese
9c57e8a298 rename Guides featured links to Start here (#34425) 2023-02-06 18:14:35 +00:00
Peter Bengtsson
bad81adba1 remove 'contributor' functionality (#34117) 2023-01-23 17:04:35 +00:00
Peter Bengtsson
35cf066d00 ToC landing pages should display HTML in intro (#33916) 2023-01-12 17:01:59 +00:00
Peter Bengtsson
1a32b39f78 don't htmlencode 'title' (#33920) 2023-01-12 16:57:34 +00:00
hubwriter
18a2cc8498 Remove experimental format ("playground") page from Codespaces docs (#33732)
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2023-01-11 19:52:51 +00:00
Evan Bonsignori
c3944238ed add learning track card (#33300)
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2023-01-05 20:59:23 +00:00
Peter Bengtsson
862172e8af only send the minimal language needed as prop (#32765)
Co-authored-by: Grace Park <gracepark@github.com>
2023-01-04 19:43:37 +00:00
Peter Bengtsson
b240055443 Permissions statement rendering on automated pages (#33718) 2023-01-03 19:44:44 +00:00
Grace Park
e3f8f71c42 Rest api versioning redo (#33011)
Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: Sarah Edwards <skedwards88@github.com>
Co-authored-by: Grace Park <gracepark@Graces-MacBook-Pro-2.local>
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
Co-authored-by: Sarah Schneider <sarahs@github.com>
2022-11-28 11:55:02 -08:00
Peter Bengtsson
988e68fa98 JIT data (#32140) 2022-11-17 13:08:49 +00:00
Robert Sese
b2e5d14036 Automate + Reactify webhooks page (#29534)
Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com>
Co-authored-by: Sarah Edwards <skedwards88@github.com>
Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-11-15 22:12:16 +00:00
Grace Park
0ed7777736 Bring back wip temporarily for the dark ship of fr, ru, ko, and de (#32539) 2022-11-11 00:25:50 +00:00
Peter Bengtsson
26291a6e52 remove pageVersionTitle from page context data (#32453) 2022-11-10 13:38:40 +00:00
Peter Bengtsson
64ee6b2f09 optimize the getCurrentProductTree function (#31620) 2022-10-27 20:13:00 +00:00
Peter Bengtsson
97cc0eb572 only render product_video when needed (#32048) 2022-10-25 20:05:50 +00:00
Peter Bengtsson
d3fe424810 only include productGroups in main context on homepage (#31640) 2022-10-17 20:27:19 +00:00
Peter Bengtsson
72d40de414 make getMainContext async (#31622) 2022-10-12 16:43:58 +00:00
Sarah Schneider
b7f48ea2c1 Support GHAE internal-only semantic versioning (#29178)
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
2022-09-22 08:26:58 +02:00
github-openapi-bot
757066487d Update OpenAPI Descriptions (#30924)
Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: Grace Park <gracepark@Graces-MacBook-Pro-2.local>
Co-authored-by: Hector Alfaro <hectorsector@github.com>
Co-authored-by: Ashwin Jeyaseelan <8gitbrix@github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
Co-authored-by: Sarita Iyer <66540150+saritai@users.noreply.github.com>
2022-09-19 10:28:23 -07:00
Robert Sese
8d60c08173 Fix featured video links versioning (#30788) 2022-09-15 16:51:14 +00:00
Grace Park
b84b627e8c Fix bug for ghec version of experimental pages (#30494) 2022-09-06 16:14:25 +00:00
Kevin Heis
3cb36aa99f Remove airgap mode (#29964) 2022-08-15 21:05:21 +00:00
Peter Bengtsson
e23f968e6e find article by path only in PlaygroundContextProvider (#29838) 2022-08-11 15:45:28 +00:00
Rachael Sewell
7061516b37 allow videos to be versioned on landing pages (#29781) 2022-08-10 20:06:33 +00:00
Peter Bengtsson
a1e3866fa5 don't get available languages from session (#29715)
* don't get available languages from session

* update useSession

* one more fix
2022-08-08 11:13:27 -04:00
Robert Sese
4a039244b3 Handle microsoft translation frontmatter properties (#28994)
* 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>
2022-07-29 19:40:11 +00:00
Kevin Heis
0886faddac Move language context to browser/session (#29433) 2022-07-28 18:50:46 +00:00
Rachael Sewell
26e4dbc4bf refactor rest context provider to be generic (#29021) 2022-07-14 14:09:38 +00: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
Peter Bengtsson
071c95a91c make miniToc pure data and no html strings (#28517)
* make miniToc pure data and no html strings

* fixups

* some types refactoring
2022-06-15 18:31:36 +00:00
Hector Alfaro
4b27213cc6 Merge branch 'main' into hectorsector/consolidate-tool-picker 2022-05-24 11:01:46 -04:00
Hector Alfaro
91778790d8 clean up and comment tool picker stuff 2022-05-24 10:40:46 -04:00
Hector Alfaro
3b825a46d2 pull out tools from page.js and ToolPicker component 2022-05-23 10:48:49 -04: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
Lucas Costi
5cef9e2fe7 Remove Actions experimental articles (#27524) 2022-05-18 00:35:40 +00:00
Sarah Schneider
a9d3390c2f change hiddenNoBanner to noEarlyAccessBanner 2022-05-13 16:35:33 -04:00
Sarah Schneider
2962666b55 update banner component 2022-05-13 12:47:11 -04: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