Rachael Sewell
2ade7d8489
reactify rest pages ( #25005 )
2022-02-28 18:30:54 +00:00
Peter Bengtsson
16113fd23a
don't check the productMap for translations ( #25589 )
...
* don't check the productMap for translations
* fix breaking test
2022-02-24 13:05:35 +00:00
Peter Bengtsson
177e197d8d
soft rate limit all requests ( #25556 )
...
* rate limit all requests
* set IP in tags to statsd
* expose _ip route for assuring we get the right IP
* remove old unit test
* nit
2022-02-23 16:46:29 +00:00
Peter Bengtsson
96701946ae
delete .frontmatterErrors after it has been used ( #25389 )
2022-02-22 21:03:14 +00:00
Peter Bengtsson
07c8fc3c2a
Decouple redirects from language ( #24597 )
...
* experimenting with redirects
* cleanup developer.json
* wip
* clean console.log
* progress
* some progress
* progress
* much progress
* debugging tests
* hacky progress
* ditch latest -> number redirects
* minor
* hacky progress
* lots of progress
* some small fixes
* fix rendering tests
* small fixes
* progress
* undo debugging
* better
* routing tests OK
* more cleaning
* unit tests
* undoing lineending edit
* undoing temporary debugging
* don't ever set this.redirects on Page
* cope with archived version redirects
* adding code comments on the major if statements
* address all feedback
* update README about redirects
* delete invalid test
* fix feedback
2022-02-14 20:19:10 +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
14ca55f670
cope with possible translation drift ( #24842 )
...
* cope with possible translation drift
* fix test
* don't shallow clone
* fix unit tests
* update code comments
* more code comment corrections
* more code comment
* feedbacked
2022-02-04 14:31:56 +00:00
Peter Bengtsson
cc79340595
cache individual renderContent instead of page.render ( #24955 )
...
* cache individual renderContent() instead of page.render()
* remove commented code
* unbreak unit tests
2022-02-03 16:56:05 +00:00
Peter Bengtsson
3c579b410c
delete customRanking ( #24659 )
2022-01-27 13:02:13 +00:00
Jules Parker
acf612ba03
fixes tests
2022-01-13 13:59:11 +01:00
Peter Bengtsson
78500789e5
Don't remove .feature frontmatter key inside getApplicableVersions() ( #24189 )
...
* goofing around to trigger an error
* only call warmServer once
* delete versions when it can be inherited
* fix nasty unit test
2022-01-11 02:00:19 +00:00
Kevin Heis
55ee70e06b
Check that actions specify hashes instead of allowlist ( #24042 )
...
* Check that actions specify hashes instead of allowlist
* Fixes for unhashed version
* Update actions-workflows.js
2022-01-04 17:43:40 +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
Peter Bengtsson
6363640cb1
in-memory cache the changelog RSS downloads ( #23582 )
...
* in-memory cache the changelog RSS downloads
* fix tests
2021-12-11 16:52:27 -05:00
Peter Bengtsson
9a7a8a761e
make lib/rest/index.js callable ( #23214 )
...
* Experiment with making the tarball smaller
Part of #1248
* try this
* stop debugging
* delete translations too
* delete heavy search indexes too
* push and popd
* try this hack
* delete but leave directory
* debug more
* faster delete of translations
* less loud
* async await
* async await
* no tree
* simplify
* experimenting more
* unfinished
* only the large files
* change order
* brotli with level 6
* cope better with decorated rest json files
* tidying
* keep images
* cleaning
* cleaning up
* refactored function
* try this
* better comment
* remove console logging
* more important changes
* make lib/rest/index.js callable
Part of #1177
* memoize
* remove console logging
2021-12-07 13:21:23 +00:00
Peter Bengtsson
1ab125dd08
draw title from first H1 only ( #23266 )
...
Part of #1218
2021-12-01 23:26:08 +00:00
Peter Bengtsson
8e1508d5fd
remove crowdin-support hack ( #23231 )
2021-12-01 22:56:03 +00:00
Rachael Sewell
63ab5664ca
remove test for previews in openapi schema ( #23181 )
2021-11-30 01:59:36 +00:00
Grace Park
ed2495ed97
using legacy fake timers ( #23110 )
2021-11-29 18:40:31 +00:00
Robert Sese
a0042e40a3
Add more syntax highlighting tests ( #23085 )
...
* Add more syntax highlighting tests
* Add erb highlighting test
* Test JS keyword highlighted
2021-11-24 17:30:29 +00:00
Francis
f66b87c934
enhancement: offer advice when unmatched English pages are detected ( #22893 )
2021-11-16 18:52:02 -08:00
Peter Bengtsson
5760b8512d
make FailBot unit tests independent of env ( #22871 )
...
Part of #1229
2021-11-16 20:40:08 +00:00
Kevin Heis
329a8c664e
Create a shared picker component ( #22836 )
...
* Unified picker component
* Add picker to storybook
* TS fixes
* Simplify "mobile" header spacing
* Fix a few testid
* Update Picker.tsx
* Update Picker.tsx
* Update Picker.tsx
* Fix unit test
* Fix rendering tests
2021-11-16 19:10:28 +00:00
Peter Bengtsson
ed53e2dd77
use @github/failbot with got ( #22842 )
...
* use @github/failbot
Part of #1222
* tests are not working yet
* fix unit tests
* cleanup
2021-11-16 16:48:40 +00:00
Marcelo Jacobus
0bb92d7b7e
Assert translated pages match an English one ( #22180 )
2021-11-12 18:36:26 +00:00
Rachael Sewell
0244fda807
search improvements ( #22443 )
2021-11-10 11:11:28 -08: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
Kevin Heis
dca7e56c3d
More hydro error info ( #22533 )
...
* Add more info to hydro failures
* Clean up
* Update hydro.js
* Move hydro names to event schema file
* Update hydro.js
2021-11-02 16:13:48 +00:00
Jules Parker
2a08f64ad2
out of date branch Merge branch 'main' into jules-4795
2021-11-01 10:25:05 +01:00
Rachael Sewell
684b8d79a1
Update test message with troubleshooting tips ( #22143 )
2021-10-28 23:01:45 +00:00
Mike Surowiec
e3074d998f
fix: detect language error on /_next/data/ input ( #22419 )
2021-10-26 21:03:47 +00:00
Jules Parker
3e72ad4dce
Merge branch 'main' into jules-4795
2021-10-26 12:01:50 +02:00
Mike Surowiec
bede852dc4
fix: detect-language correctly handles root path, add unit tests ( #22404 )
2021-10-26 03:22:25 +00:00
Kevin Heis
3b092b4cb8
Deprecate 2.22 b ( #22366 )
...
* Update enterprise-server-releases.js
* Run deprecation script
* Remove finding / managing security vulnerabilities
* remove vuln from translations
* remove more dead pages
* Restore heavily used files
* Remove 2.22 refs in tests
* Update working-with-the-npm-registry.md
2021-10-22 13:23:16 -07: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
Matt Pollard
51ad46b7ae
Update hardcoded link
2021-10-11 13:36:26 +02:00
Matt Pollard
8739d0670f
Update hardcoded link
2021-10-11 12:58:33 +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
Mike Surowiec
85f6a43502
Mini TOC semantic rendering ( #21836 )
...
* semantic rendering of miniTocItems
* feat: create nested mini toc structure to simplify semantic rendering
* remove className usage of indentationLevel in miniToc rendering
* manually run script/graphql/update-files.js to update pre-rendered files
* use less brittle regex method to extract number
2021-10-04 10:48:42 -04:00
Mike Surowiec
d81f51ebf7
Picker improvements ( #21765 )
...
* close Language and ArticleVersion pickers after click
* cleanup ArticleGridLayout due to VersionPicker changes
* fix tsc errors resulting from primer upgrade
* fix / update tests
* cleanup mobile pickers visual consistency
* use btn-sm on VersionPicker
* update translation and close on click for enterprise releases
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com >
2021-09-30 20:22:13 +00:00
Mike Surowiec
d2199e3deb
Use Doctocat link header style ( #21615 )
...
* update autolinkHeadings to use Doctocat link header style
* fix header link test
* update graphql/rest rendering to use doctocat header link
* fix: miniToc issue with stray anchor
Co-authored-by: Rachael Sewell <rachmari@github.com >
2021-09-21 18:14:38 -04:00
Laura Coursen
b8429d8248
"Authentication" top-level doc set ( #21531 )
2021-09-21 19:27:08 +00: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
d76c16da19
Scope markdown body ( #21082 )
...
* update article content to markdown ui component
* decouple lunr indexing from class name
* remove summary outline none rule, apply utility class instead
* improve typing
* scope more styles down to markdown-body/extended-markdown
* move all markdown-body style overrides to MarkdownContent component
* fix class targeting within css module
* clean up MarkdownContent header style
* rename data-lunr to data-search
* fix: inline code color issue
* fix: update article markdown to work with MarkdownContent
2021-08-30 14:24:49 +00:00
Laura Coursen
60b0d95f0d
Hide the GitHub Insights docs ( #20414 )
2021-08-25 18:36:35 +00:00
Laura Coursen
0f03dac1ea
Create "Account and profile" top-level docset ( #20982 )
2021-08-24 15:08:25 +00:00
Grace Park
5bf7cca35d
remove liquid tags ( #20937 )
2021-08-18 15:52:44 +00:00
Lucas Costi
fd84dcb3e5
Fix test markup to be CommonMark compliant ( #20790 )
2021-08-11 23:35:55 +00:00