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

141 Коммитов

Автор SHA1 Сообщение Дата
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
Hector Alfaro c7bbfe4efa
Merge branch 'main' into hectorsector/redundant-version 2022-05-17 11:43:25 -04:00
Jules 7b54f85078
Merge branch 'main' into jules-4804 2022-05-16 12:54:46 +02: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
Hector Alfaro 80ff57ff47
squash bug missing nested conditionals 2022-05-13 12:40:05 -04:00
Vanessa 025332bc10
update packages article test (#27449) 2022-05-04 00:10:13 +00:00
Jules Parker 03b76f1f32 Pages landing page fix errors 2022-04-21 11:40:18 +02:00
Mike Surowiec dce7f676ec
fix(content): apostrophe in title renders incorrectly in production only (#26859)
* fix(content): apostrophe in title renders incorrectly in production only

* fix(ProductArticlesList): use renderedFullTitle to display childNodes

* fix(lint): run prettier
2022-04-11 18:29:08 -05:00
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