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

132 Коммитов

Автор SHA1 Сообщение Дата
Peter Bengtsson 347a17097a
sitedata per translation (#26496)
* sitedata per translation

* be safer

* remove test that no longer makes sense
2022-03-30 14:51:29 +00: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
Peter Bengtsson 67b6d9a60b
don't test graphql type object validation repeatedly (#26197) 2022-03-15 15:48:32 -04:00
Peter Bengtsson 01baeda3c0
sync serialize sitedata to disk (#25749)
* sync serialize sitedata to disk

* use os.tmpdir

* refactor tests

* debugging

* use log

* debugging

* louder about syntax errors

* warn-before-tests

* louder about disk-caching redirects

* less loud

* only in development again
2022-03-09 20:57:40 -05:00
Peter Bengtsson eef77058ab
throw if no value not found in indented_data_reference (#25711)
* throw if no value not found in indented_data_reference

* better comment

* deliberate writer-error saple

* all strings are truthy'ish

* undo

* fix tests
2022-02-28 20:40:06 +00:00
Peter Bengtsson 6bc2600b3b
renable backfills missing translation site data test (#25303)
* renable backfills missing translation site data test

* adding a code comment to explain how finally relates to jest
2022-02-24 13:42:49 +00:00
Robert Sese ef9b6ebd0e
Test that categories all have the same child type (#25392)
* Track category child types

* Test that category children are all of the same type

* Add custom error message

Co-authored-by: Grace Park <gracepark@github.com>

Co-authored-by: Grace Park <gracepark@github.com>
2022-02-16 19:02:31 +00:00
Peter Bengtsson 19b246022a
handle search with colon (#25128)
* handle search with colon

* nicer 400 errors

* split up by words first to avoid dangerous regex

* code comment
2022-02-15 21:56:50 +00:00
Peter Bengtsson a1c78717d5
cache the search API (#25068)
* cache the search API

* extend tests
2022-02-09 17:21:49 +00:00
Peter Bengtsson ac30f9297c
basic tests of the search API (#25069)
* basic tests of the search API

* lfs
2022-02-07 17:11:08 +00:00
Peter Bengtsson 7acccdac9b
load webhook versions at runtime instead of import-time (#24788)
* load webhook versions at runtime instead of import-time

* fix tests
2022-01-28 18:27:00 +00:00
Peter Bengtsson 9a3adcff9c
lazy highlight json examples on Webhooks page (#24785)
* lazy-highlight JSON examples on Webhooks page

* it works

* using intersectionobserver

* explain in  formatAsJsonCodeBlock

* fix tests
2022-01-28 12:20:56 -05:00
Steve Guntrip 11d193bd7f
Reorganize support articles 2022-01-18 13:24:02 +00:00
Robert Sese cc69799558
a11y: landing page headings adjustments (#24295)
* Adjust heading level and only heading with intro text

* Adjust heading level

* Adjust code example and guide card heading levels

* Adjust tests for new heading levels

* Adjust rendering test for new heading levels
2022-01-14 17:23:05 +00:00
Rachael Sewell 0399d5f424
Translation tests (#24164)
* update translations tests

* update tests
2022-01-10 14:16:04 +00:00
Peter Bengtsson c200f12e57
crash on redirect_from with a trailing slash (#23888) 2022-01-04 18:33:13 +00:00
Matt Pollard 0744800757
Document version picker for GitHub Docs (#23703) 2021-12-17 09:53:30 +00:00
Peter Bengtsson ed48eab88d
check for redirect orphans (#23330)
* check for redirect orphans

Part of #1303

* timeout

* avoid external redirects in redirects_from too

* delete content/admin/advanced-security/viewing-your-github-advanced-security-usage.md

* remove from children: too

* remove some trailing slashes in redirect_froms

* fix a few more trailing slash redirects

* delete orphan pages
2021-12-16 12:54:59 +00:00
Peter Bengtsson fe5a08ece6
content unit tests shouldn't depend on github.blog (#23578) 2021-12-13 08:57:00 +00:00
docubot b0cafa65fe
New translation batch for ja (#23559)
* Add crowdin translations

* Run script/i18n/homogenize-frontmatter.js

* Run script/i18n/lint-translation-files.js --check parsing

* Run script/i18n/lint-translation-files.js --check rendering

* run script/i18n/reset-files-with-broken-liquid-tags.js --language=ja

* run script/i18n/reset-known-broken-translation-files.js

* Check in ja CSV report

* Skip test to unblock translation batch

See docs-engineering #923

* Remove console log

Co-authored-by: Marcelo Jacobus <marcelo.jacobus@gmail.com>
2021-12-13 02:11:48 +00:00
Jules Parker 2a08f64ad2 out of date branch Merge branch 'main' into jules-4795 2021-11-01 10:25:05 +01:00
Robert Sese df2e3be178
Small bits of test cleanup 🧹 (#22442)
* Unskip test, ghec graphql version added

* Link to test skip issue

* Stray console.log ✂️
2021-10-27 22:31:41 +00:00
Matt Pollard 5016286f81 Merge branch 'main' into jules-4795 2021-10-22 09:24:18 +02:00
Sarah Edwards ce5ab14f67
Not as big as it looks! Migrate guide.github.com content (#21942) 2021-10-20 14:53:24 +00:00
Matt Pollard ab397d54d8 Adjust expected number of featured links again 2021-10-20 12:35:25 +02:00
Matt Pollard 9a0b2eb7b7 Remove route with language code from test 2021-10-19 13:50:07 +02:00
Matt Pollard 86a2290aaf Update URL for test 2021-10-19 13:41:47 +02:00
Jules Parker 65a50a9b5b
Update featured-links.js 2021-10-18 15:28:34 +02:00
Jules Parker 13edfd8788 Merge branch 'main' into jules-4795 2021-10-18 15:11:48 +02: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
Jules Parker 0e8ab632ec
Update featured-links.js
Update hardcoded links
2021-10-11 14:50:08 +02:00
Grace Park fd3d223bce
Adding links to all skipped tests (#22037)
* adding links to all skipped tests

* updating links
2021-10-08 21:53:44 +00:00
Marcelo Jacobus aed6c1654f
translation batch 1632491035 (#21717) 2021-09-30 11:53:04 +00:00
Rachael Sewell c0a667a8d1
fix a few hardcoded tests temporarily (#21740) 2021-09-27 20:56:42 +00:00
Martin Lopes 83dc407ada
Restructure Actions guides (#21577)
Co-authored-by: Sarah Edwards <skedwards88@github.com>
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
2021-09-22 16:49:41 +10:00
Kevin Heis 43158e8392
Upgrade NPM packages (#21480)
* Upgrade a bunch of packages

* ...and upgrade highlightjs

* ... and ajv-formats (but not ajv)

* Revert graphql changes

* Revert "Revert graphql changes"

This reverts commit a5b8a34d52a48a7c2858415f6b1081c1d4902482.

* Update build-changelog.js

* Upgrade html-entities

* Upgrade commander, following migration guide
2021-09-13 23:31:43 +00:00
Mike Surowiec 06d8f81401
Two-pane Experiment (#21092)
* pull changes from docs-playground

* cleanup, add callout banner

* cleanup linting and test fixes

* add discussion link

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-08-26 14:19:40 -04:00
Rachael Sewell 039cb2270b
revert a search test change (#21142) 2021-08-25 20:13:18 -07:00
Rachael Sewell df16267a8f
remove cached-index-names file and dry run sync used for Algolia (#21133) 2021-08-25 22:04:26 +00:00
Laura Coursen 60b0d95f0d
Hide the GitHub Insights docs (#20414) 2021-08-25 18:36:35 +00:00
Kevin Heis b29e37318a
Remove `import x` statements (#20594)
* Clear out most import x

* Update rimraf use

* Move up readme blocks in scripts
2021-07-29 20:28:30 +00:00
Kevin Heis 1ed18e1448
Clear out some non-fn references to Algolia (#20592)
* Clear out some non-fn references to Algolia

* Update .github/workflows/dry-run-sync-search-indices.yml

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update contributing/search.md

Co-authored-by: James M. Greene <JamesMGreene@github.com>

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-07-29 20:20:55 +00: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
Kevin Heis 0b1ff73a46
Update some readFileSync to await readFile with top level await (#20525)
* Update some readFileSync to await readFile with top level await

* More updates

* Update all-products.js

* Use 'lib/readfile-async.js' in runtime files for better performance

* Remove unnecessary use of 'for await...of' loops

* Revert to importing 'fs/promises'

Co-authored-by: James M. Greene <jamesmgreene@github.com>
2021-07-29 16:45:46 +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
Sarah Schneider cc2d10d1b3
Rewrite Liquid deprecation script (#20225) 2021-07-19 22:36:15 +00: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
Kevin Heis d3403e8653
Address goofy exports (#20113)
* Address a goofy export

* Fix more exports

* Change two exports
2021-06-24 14:59:06 +00:00
Kevin Heis a92d820888
Remove remaining JSON requires (#20110)
* Remove remaining JSON requires

* Lint

* Update feature-flags.js
2021-06-23 14:57:50 -07:00