Peter Bengtsson
49dd50b47d
remove all uses of encodeEntities ( #34202 )
2023-01-26 20:29:04 +00:00
Grace Park
2533776ab8
[Content folks: Merge when ready] Remove atom from sidebar ( #31286 )
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com >
2022-12-15 20:27:21 +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
Aryn
f4d4d821f0
Update electron hyperlink ( #22098 )
2022-11-28 13:16:44 +00:00
Peter Bengtsson
18d23e91f3
don't use loadSiteData in tests/rendering/sidebar.js ( #32732 )
2022-11-23 18:54:42 +00:00
Peter Bengtsson
64ee6b2f09
optimize the getCurrentProductTree function ( #31620 )
2022-10-27 20:13:00 +00:00
Sarah Edwards
d2a2113c11
REST new user guidance ( #29642 )
2022-08-23 19:31:01 +00:00
Kevin Heis
c8ae2081b7
Remove feature flags ( #29968 )
2022-08-16 11:23:02 +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
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
Robert Sese
61a777f18d
Update rendering tests to use different products
2022-06-08 12:05:45 -05:00
Matt Pollard
f117de3e4d
Fix test
2022-06-08 14:47:20 +02: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
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
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
Peter Bengtsson
8362602503
do rendering end-to-end tests with a real server ( #26169 )
...
* reinstate
* start server manually
* routing tests too
* skip more
* sleep more and fail if not 200
* use e2etest for content/ too
* feedbacked
2022-03-18 17:06:12 -04:00
Jules Parker
7f6e24474d
fixing tests
2022-01-13 11:59:43 +01:00
Edward Thomson
dba3b44ea9
frontpage: add npm documentation links ( #22173 )
...
Co-authored-by: Laura Coursen <lecoursen@github.com >
2021-10-15 22:16:03 +00:00
Sarah Edwards
95bd8c84f9
[Aug 24, 2021] Top level CLI docs set ( #20628 )
...
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com >
Co-authored-by: Mislav Marohnić <mislav@github.com >
Co-authored-by: Laura Coursen <lecoursen@github.com >
2021-08-24 15:44:25 +00:00
Laura Coursen
0f03dac1ea
Create "Account and profile" top-level docset ( #20982 )
2021-08-24 15:08:25 +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
Laura Coursen
88dd272f29
Rename GitHub product ( #20347 )
2021-07-21 12:22:30 +01:00
Kevin Heis
8a56437c93
Pretty format ( #20352 )
...
* Update prettier flow to include JS
* Run prettier
* ...run prettier
2021-07-14 14:35:01 -07:00
Kevin Heis
42e785b0a8
Migrate CommonJS to ESM ( #20301 )
...
* First run of script
* Get the app running --- ish
* Get NextJS working
* Remove `node:`
* Get more tests passing in unit directory
* Update FailBot test to use nock
* Update test.yml
* Update Dockerfile
* tests/content fixes
* Update page.js
* Update build-changelog.js
* updating tests/routing
* Update orphan-tests.js
* updating tests/rendering
* Update .eslintrc.js
* Update .eslintrc.js
* Install jest/globals
* "linting" tests
* staging update to server.mjs
* Change '.github/allowed-actions.js' to a ESM export
* Lint
* Fixes for the main package.json
* Move Jest to be last in the npm test command so we can pass args
* Just use 'npm run lint' in the npm test command
* update algolia label script
* update openapi script
* update require on openapi
* Update enterprise-algolia-label.js
* forgot JSON.parse
* Update lunr-search-index.js
* Always explicitly include process.cwd() for JSON file reads pathed from project root
* update graphql/update-files.js script
* Update other npm scripts using jest to pass ESM NODE_OPTIONS
* Update check-for-enterprise-issues-by-label.js for ESM
* Update create-enterprise-issue.js for ESM
* Import jest global for browser tests
* Convert 'script/deploy' to ESM
Co-authored-by: Grace Park <gracepark@github.com >
Co-authored-by: James M. Greene <jamesmgreene@github.com >
2021-07-14 13:49:18 -07:00
Matt Pollard
4e99bceff3
Change title for admin product from "GitHub Enterprise" back to "Enterprise administrators" ( #20089 )
2021-06-24 06:15:42 +00:00
Mike Surowiec
b084dbc23d
React: Enable all remaining pages ( #20012 )
...
* enable all remaining pages
* update tests for survey, filter card dropdowns
* fix search test
* fix: mobile search layout
* update sidebar test
* fix: learning track page is optional
* fix broken links
2021-06-21 19:52:58 +00:00
Mike Surowiec
5396f5f9e4
React: All landing pages ( #19943 )
...
* default all remaining landing pages to react, update tests
2021-06-17 10:04:53 -07:00
Mike Surowiec
306f6fc75e
Enable more react pages ( #19935 )
...
* enable more react landing pages
* move nextjs page logic to separate middleware
* enable codespaces landing page + fixes
* enable /education
* enable /admin
* use pathToRegexp to match routes for react rendering
* run lint
* fix: typo in url
* update sidebar test
2021-06-15 13:31:17 -07:00
Sarah Schneider
e30292c0fd
add feature flagged conditionals to tests
2021-05-18 20:44:46 -04:00
Sarah Schneider
a5d52dcef0
Add landing page for GitHub Enterprise ( #19041 )
2021-05-12 11:55:32 +00:00
Shati Patel
b7bbc707a9
Updating product landing page to include CodeQL ( #18150 )
2021-04-07 16:47:45 +00:00
Sarah Schneider
9809627129
lint
2021-01-14 17:10:12 -05:00
Sarah Schneider
affbc80a3c
update tests to remove free-pro-team from expected results
2021-01-14 17:08:30 -05:00
Sarah Schneider
b244d447dd
Merge branch 'main' of github.com:github/docs-internal into hidden-docs-alt
2020-12-01 12:38:48 -05:00
Sarah Schneider
18d25f6129
update references to old helpers.js
2020-11-24 15:42:11 -05:00
James M. Greene
d402a60833
Merge branch 'main' into hidden-docs-alt
2020-11-17 17:56:25 -06:00
Nick Schonning
b6de7c6887
chore: Convert Standard to eslint-config-standard ( #1328 )
...
* chore: Move standard to ESLint config
* fix: auto-fix ESLint indent issues
* fix: ESLint prefer-regex-literals
* fix: ESLint array-callback-return
- .filter must return a boolean value
- .map replaced with forEach when the value isn't used
* fix: ESLint no-extra-semi
2020-11-17 16:18:18 -05:00
James M. Greene
510a0e3871
Add test to verify Early Access does not show up as a product in the sidebar
2020-11-13 15:48:10 -06:00
Matt Pollard
2484cd3f16
Add external GitHub CLI product ( #16277 )
2020-11-03 08:11:49 +01: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