Граф коммитов

75 Коммитов

Автор SHA1 Сообщение Дата
Peter Bengtsson e541364c9a
404 if the applicable version no longer matches (#33086) 2022-11-30 16:27:29 +00:00
Peter Bengtsson 988e68fa98
JIT data (#32140) 2022-11-17 13:08:49 +00:00
Rachael Sewell 738c16f6fc
filter OpenAPI dereferenced files (#32112)
Co-authored-by: Grace Park <gracepark@github.com>
2022-11-04 23:27:39 +00:00
Sophie 605b619588
[2022-10-07]: Security Features Enablement Enterprise-Level Policies - [GA] (#31406)
Co-authored-by: Sarah Schneider <sarahs@github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
Co-authored-by: Sarita Iyer <saritai@github.com>
2022-10-07 20:39:32 +00:00
Peter Bengtsson 8b1fb6ec2a
remove remnants of the disk-based redirects cache file (#31445) 2022-10-05 16:51:14 +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
Laura Coursen fd8ebcd1ce
Enterprise policy for project visibility changes (#30482) 2022-09-06 14:03:24 +00:00
Rachael Sewell 467459af7c
Reactify graphql pages (#28547) 2022-08-03 10:51:21 -07:00
Nick McCurdy d6a886b6d0 Rename github-community to community 2022-07-27 17:36:23 -04:00
Courtney Wilson be95e8e56d
Merge branch 'main' into fix-links-to-feedback-discussions 2022-07-26 15:56:10 -04:00
Sarah Schneider 7ad266949b update some filepaths that have changed 2022-07-21 10:08:47 -04: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
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 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 333a08804a we do not need this test anymore 2022-06-08 09:19:57 -04:00
Sarah Schneider f3bd355941 fix test fixture 2022-06-07 16:43:00 -04:00
Sarah Schneider ebbc664578 add a new test to validate versions FM in fixture 2022-06-07 16:14:29 -04:00
Sarah Schneider 25522dc1b5 Merge branch 'main' of github.com:github/docs-internal into versioned-redirects 2022-05-20 12:39:50 -04:00
Sarah Schneider a1e04edc96 Merge branch 'main' of github.com:github/docs-internal into versioned-redirects 2022-05-17 10:13:07 -04:00
Hector Alfaro 2fc4fb361f
clean up tests 2022-05-13 12:40:07 -04:00
Hector Alfaro dfa9cc1e0c
add test for conditionals with all versions 2022-05-13 12:40:06 -04:00
Sarah Schneider c649d153a5 Merge branch 'main' of github.com:github/docs-internal into versioned-redirects 2022-05-03 11:53:32 -04:00
Rachael Sewell 5f4f858b94
REST two-pane layout (#26954) 2022-05-02 10:10:33 -07:00
Sarah Schneider 3883fdce33 incorporate late changes to lib/redirects/static/redirect-exceptions.txt 2022-04-28 15:40:55 -04:00
Sarah Schneider f7270ea725 remove some cases where /enterprise/ links redirect to GHES (instead of GHEC) because a GHES version does exist, so it it does not trigger the hierarchy of fallbacks (okayed by @lecoursen) 2022-04-27 18:11:26 -04:00
Sarah Schneider 1c02d01554 move the redirect exceptions into test fixtures and tests 2022-04-27 17:57:28 -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
Rachael Sewell e86dc05ecc
add openapi example tests (#26860) 2022-04-11 16:08:15 -07:00
Robert Sese 33c05d81ce
Change product landing page `introLinks` to a general map of link titles to links (#26360)
* 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>
2022-04-01 11:01:37 -05:00
Peter Bengtsson c4489e6fa4
Throw an error if a 'data' Liquid tag fails (#25730) 2022-03-04 12:16:32 +00:00
Peter Bengtsson 22cd55f3e3
cache changelog feed in CI (#25759)
* cache changelog feed in CI

* unbreak unit tests

* feedbacked

Co-authored-by: Robert Sese <rsese@github.com>
2022-03-03 20:32:34 +00:00
Rachael Sewell 2ade7d8489
reactify rest pages (#25005) 2022-02-28 18:30:54 +00:00
Peter Bengtsson 987fef9315
correct how legacy enterprise links are rewritten (#25183)
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
2022-02-09 16:09:42 +00:00
Peter Bengtsson cc44b2725e
an empty 'product', 'permissions', or 'learningTracks' gets stuck (#25070)
* and empty 'this.product' gets stuck

* add test to prove change
2022-02-07 16:08:51 +00:00
Peter Bengtsson 98491c759f
hardcode popular redirect tests (#24602)
* hardcode popular redirect tests

* don't follow redirects

* 302 beacause it inject /en

* 60x longer timeout
2022-01-25 16:16:24 +00:00
Peter Bengtsson ed6e80bd20
remove tool-switcher (#24242) 2022-01-12 16:32:30 +00:00
Robert Sese a2bd8ae67f
Add support for videos to landing pages (#23801)
* 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.
2021-12-17 11:09:00 -06:00
Rachael Sewell daafb8cb9d
break up large rest pages (#23652) 2021-12-14 20:39:25 +00:00
Peter Bengtsson fe5a08ece6
content unit tests shouldn't depend on github.blog (#23578) 2021-12-13 08:57:00 +00:00
Grace Park 4ff5167e51
Updating name: sublanding to guides and using DropdownMenu for type/topics filter (#23290)
* updating sublanding to guides page and using DropdownMenu primer component

* fix linting error

* remove unnecessary import

* updating translation files

* move data-testid

* trying to fix test

* fix browser tests

* Update content/README.md

Co-authored-by: Francis <15894826+francisfuzz@users.noreply.github.com>

Co-authored-by: Francis <15894826+francisfuzz@users.noreply.github.com>
2021-12-02 18:43:33 +00:00
Marcelo Jacobus ed9e3d79cb
Add test and script to ensure 1:1 parity of liquid tags between source and translation (#22472)
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2021-11-04 10:59:17 -03:00
Laura Coursen 8f964ea2cb
GHEC version (#20947)
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: Steve Guntrip <12534592+stevecat@users.noreply.github.com>
Co-authored-by: Robert Sese <sese@github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-10-15 15:41:33 -05:00
Sarah Schneider cc2d10d1b3
Rewrite Liquid deprecation script (#20225) 2021-07-19 22:36:15 +00:00
Sarah Schneider 2427f92893 write tests to ensure that ghes versioning in a feature gets combined with ghes versioning frontmatter, and does NOT overwrite it 2021-06-23 15:03:12 -04:00
Sarah Schneider 0049c7868b test feature versioning in liquid conditionals 2021-06-17 11:42:02 -04:00
Sarah Schneider 7b6611a03c test feature versioning in frontmatter 2021-06-17 11:40:58 -04:00
Sarah Schneider ba105bf3b2 move dummy pages into test fixtures 2021-06-17 11:40:31 -04:00