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
Rachael Sewell
5f4f858b94
REST two-pane layout ( #26954 )
2022-05-02 10:10:33 -07: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
Sarah Schneider
66a1dc493c
support short versions in frontmatter
2021-06-14 19:51:38 -04:00
Kevin Heis
f6acb1f08a
Update dependencies ( #19408 )
...
* Update dependencies 2
* Lint fixes
* Update graphql packages
* Update changelog-entry.json
* Update @octokit/rest
* Update commander with help from @rachmari
@rachmari
* Upgrade helmet
* Upgrade js-yaml
* Update server.js
* Update cheerio
* Revert "Update cheerio"
This reverts commit 8aa17c39fbf564ee554037d89e7a473027d16984.
2021-05-19 17:32:47 +00:00
Sarah Schneider
e30292c0fd
add feature flagged conditionals to tests
2021-05-18 20:44:46 -04:00
mc
8a9683d345
Quickstart guide about issues, pull requests, GitHub Discussions and team discussions (the return) ( #18980 )
...
* made a start
* start addressing comments
* simplify, simplify, simplify
* more changes
* rework completely
* tidy up, fix typos
* Update content/github/getting-started-with-github/be-social.md
Co-authored-by: Sarah Edwards <skedwards88@github.com >
* Update content/github/collaborating-with-issues-and-pull-requests/quickstart-for-communicating-on-github.md
Co-authored-by: Sarah Edwards <skedwards88@github.com >
* Update content/github/collaborating-with-issues-and-pull-requests/quickstart-for-communicating-on-github.md
Co-authored-by: Sarah Edwards <skedwards88@github.com >
* Update content/github/collaborating-with-issues-and-pull-requests/quickstart-for-communicating-on-github.md
Co-authored-by: Sarah Edwards <skedwards88@github.com >
* Update content/github/collaborating-with-issues-and-pull-requests/quickstart-for-communicating-on-github.md
Co-authored-by: Sarah Edwards <skedwards88@github.com >
* Apply suggestions from code review
Co-authored-by: Sarah Edwards <skedwards88@github.com >
* address comments
* tidy up
* upcase topic
* add more topics
* use test fixture instead of live content
* Apply suggestions from code review
Co-authored-by: Sarah Edwards <skedwards88@github.com >
* address latest comments
Co-authored-by: Sarah Edwards <skedwards88@github.com >
Co-authored-by: Sarah Schneider <sarahs@github.com >
2021-05-07 08:25:11 +01:00
Sarah Edwards
be8aa2bccb
Add tabs for cli/desktop/ui ( #19071 )
2021-05-04 16:53:52 +00:00
Vanessa Yuen
bbd9f03f6e
Populate product-landing "What's new" section using GitHub Changelog ( #18328 )
...
Co-authored-by: Jason Etcovitch <jasonetco@github.com >
Co-authored-by: Rachael Sewell <rachmari@github.com >
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com >
2021-04-08 20:51:37 +00:00
Sarah Schneider
0c91835cee
add tests
2021-04-01 11:12:31 -04:00
Felicity Chapman
28bec608c7
Group user docs on code security into a new "product" - with more redirects ( #18278 )
2021-03-22 09:28:35 +00:00
Sarah Schneider
5006cdaff2
add tests
2021-03-17 10:30:16 -04:00
Felicity Chapman
6a7e93f225
Revert "Group user docs on code security into a new "product" ( #18196 )" ( #18277 )
2021-03-17 08:07:11 +00:00
Felicity Chapman
024014740b
Group user docs on code security into a new "product" ( #18196 )
2021-03-16 17:25:29 +00:00
Vanessa Yuen
4038e9ca85
Add topic property and filter to guides page ( #17328 )
...
Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com >
2021-01-29 12:32:31 +00:00
Sarah Schneider
affbc80a3c
update tests to remove free-pro-team from expected results
2021-01-14 17:08:30 -05:00
Sarah Schneider
79a7a7972f
Merge branch 'main' of github.com:github/docs-internal into remove-fpt
2021-01-13 16:58:05 -05:00
Sarah Schneider
e3d0009949
remove no-longer needed tests for removed redirects now that legay /v3 and /v4 links have all been updated
2021-01-13 16:50:54 -05:00
Vanessa Yuen
641ed02e81
Actions Guides sublanding page ( #16740 )
...
Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com >
Co-authored-by: Cynthia Rich <crichID@github.com >
2021-01-11 18:30:57 +01:00
Rachael Sewell
6a3d326fcf
add one-off cases for hooks and pre-receive-hooks ( #16784 )
...
* add one-off cases for hooks and pre-receive-hooks
* add forum redirect
* update redirect test
* update 2.19-2.22 fixutres
* revert 2.18/2.19 changes
* remove dotcom test
* update dotcom test
2020-12-09 19:50:46 +00:00
Robert Mosolgo
aeedfac37e
Add graphql tests to CI, move snapshots to fixures, use mockdate
2020-11-25 11:12:13 -05:00
jmarlena
45398e709c
Password authentication and OAuth Authorizations API deprecation ( #16375 )
...
* Version password examples for GHES only
* Remove unnecessary note
* Versioned deprecation reusable for GHES only?
* Update troubleshooting article
* Version OAuthorizations REST API page for enterprise-only
* Remove deprecations reusable
* Add tentative note
* Rework two-factor authentication sections
* Fix double redirect reference
* versioning tweak
* Versioning tweaks
* adding back the endifs
* random link reformatting
* OAuth Authorization API versioned for 2.22
* /
* Fix internal docs links
* remove static redirect for dotcom
* Try deleting redirect
* Apply @martin389's suggested changes
Co-authored-by: Martin Lopes <54248166+martin389@users.noreply.github.com >
* Remove best practice assumptions
* Apply suggestions from code review
Co-authored-by: Martin Lopes <54248166+martin389@users.noreply.github.com >
* Add note
* restore redirects in content file and remove free-pro-team expected path from test fixture
* change note position
* handle path that was available on dotcom in developer site but is now GHES only
Co-authored-by: Martin Lopes <54248166+martin389@users.noreply.github.com >
Co-authored-by: Sarah Schneider <sarahs@github.com >
2020-11-13 11:01:17 -08:00
Sarah Schneider
095410dcb0
Throw error on mismatched versioning ( #16191 )
...
* throw an error if a page is available in a version that its parent product is not available in
* add tests
* fix one Insights content file versioned for FPT when Insights is only available in GHES currently
2020-10-23 11:13:05 -04:00
Sarah Schneider
da60aa51e1
Support enterpriseServerVersions in Liquid statements ( #16058 )
...
* remove outdated and redundant context.enterpriseVersions and add new context.enterpriseServerVersions
* update references from context.enterpriseVersions -> context.enterpriseServerReleases
* add test
* also test oldest supported enterprise version in addition to the latest
* Script to update not-free-pro-team conditionals (#16060 )
* script to update not-free-pro-team conditionals
* change string to regex so we can do replace all
* remove stray test.only
* Update middleware/context.js
Co-authored-by: James M. Greene <JamesMGreene@github.com >
* Update tests/unit/page.js
Co-authored-by: James M. Greene <JamesMGreene@github.com >
* Update tests/unit/page.js
Co-authored-by: James M. Greene <JamesMGreene@github.com >
* Update tests/fixtures/page-versioned-for-all-enterprise-releases.md
Co-authored-by: James M. Greene <JamesMGreene@github.com >
Co-authored-by: James M. Greene <JamesMGreene@github.com >
2020-10-15 16:20:41 -04:00
Sarah Schneider
0b1c7ad466
Update Enterprise Liquid deprecation handling to use new versions ( #15818 )
...
* update Liquid deprecation fixtures to use new versions
* update module that removes deprecated GHES frontmatter for new versions
* update module that removes deprecated GHES conditionals for new versions
* update script to use new versions and also remove internal-developer checkout option
* update deprecated Liquid tests to use new versions
* remove unnecessary leading slash in getEnterpriseServerNumber pattern
* include a step that runs script/remove-unused-assets.js
* Update script/remove-deprecated-enterprise-version-markup.js
Co-authored-by: Jason Etcovitch <jasonetco@github.com >
* require script instead of execSync
Co-authored-by: Jason Etcovitch <jasonetco@github.com >
2020-09-30 19:29:08 -04:00
Jason Etcovitch
caaee7a124
Update all files to use {% data %} ( #15253 )
...
* Add back changes from prior to purge
* Manually fix some invalid Liquid
* Updoot render-content
* Improve test messages to show correct output
* Run el scripto
* Pass the remaining test
2020-09-29 16:01:04 -04:00
Sarah Schneider
aa5a62d49d
Remove versions feature flag code ( #15793 )
...
* remove FEATURE_NEW_VERSIONS from feature-flags.json
* remove process.env.FEATURE_NEW_VERSIONS from include files
* remove process.env.FEATURE_NEW_VERSIONS from lib files
* remove process.env.FEATURE_NEW_VERSIONS from middleware files
* remove process.env.FEATURE_NEW_VERSIONS from script files
* remove process.env.FEATURE_NEW_VERSIONS from test files
* update test fixtures to use new versions as canonical fixtures
2020-09-29 13:36:07 -04:00
Vanessa Yuen
3df90fc9b8
Hello git history spelunker!
...
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00