1
0
mirror of synced 2026-01-01 18:05:46 -05:00
Commit Graph

1315 Commits

Author SHA1 Message Date
GitHub Actions
ba6f13c17c update search indexes 2021-11-21 16:51:08 +00:00
github-openapi-bot
1a1fd4d946 Update OpenAPI Descriptions (#23017) 2021-11-19 22:59:34 +00:00
github-openapi-bot
72915ce510 Update OpenAPI Descriptions (#23011) 2021-11-19 22:52:13 +00:00
Kevin Heis
5b1ac53379 A few things that Prettier seemed to miss (#23005) 2021-11-19 18:32:20 +00:00
github-openapi-bot
874c76aa11 Update OpenAPI Descriptions 2021-11-19 12:55:18 +00:00
Peter Bengtsson
e8637b582b exit early in renderContent() on empty template (#22979)
Part of #1187

Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com>
2021-11-19 04:51:12 +00:00
Mike Surowiec
1500186f28 fix: out-of-bounds depth map in getDocumentType (#22834)
* fix: out-of-bounds depth map in getDocumentType

* convert document type map to array
2021-11-18 13:20:20 -06:00
rachmari
162badfa10 Action ran graphql script"update-files" 2021-11-18 16:40:05 +00:00
github-openapi-bot
a45a14f4d2 Update OpenAPI Descriptions 2021-11-18 11:06:42 +00:00
github-openapi-bot
e510c827b3 Update OpenAPI Descriptions 2021-11-18 08:19:46 +00:00
Grace Park
5a809be3dc MiniTocItems: rerender tocs and fix bugs (#22948)
* add key to force rerender tocs

* move up platform specific to properly display none and go back to using contents

* remove i
2021-11-17 22:29:07 -08:00
Steve Guntrip
4575fe2ea2 Update excluded-links.js 2021-11-18 04:15:38 +00:00
Grace Park
8f7bba1dd9 adding back pagemap (#22426) 2021-11-18 03:56:13 +00:00
Grace Park
0afdf66a08 Primer Update: Table of Contents (#22933)
* update to ActionList

* fix nested mini tocs

* adding key

* remove li and fix tests

* update font size to 14px

* remove border radius
2021-11-18 00:27:12 +00:00
Patrick Ellis
4b5e01365c Use in_progress workflow_job example, not queued (#22880)
* Use in_progress workflow_job example, not queued

### tl;dr

This changes the example `workflow_job` payload to be an `in_progress` event instead of `queued` event.

### why

In #22174, I added some keys to the example workflow_job json. This was correct, but by adding non-null _values_, **I introduced a subtle bug**.

It's a bug because a `queued` workflow is—by definition—_not_ yet assigned to a runner. So all the `runner_*` attributes will be `null` in the real world. 

After the workflow becomes `in_progress`, all the values are guaranteed to exist. So let's change the example to be an `in_progress` event, since it's a better example for documentation.

* Explain more about the runner_* attributes in "workflow_job_properties.md"

* Consistentize naming

Co-authored-by: Martin Lopes <martin389@github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
2021-11-17 15:48:31 +00:00
github-openapi-bot
92b8d62b4a Update OpenAPI Descriptions 2021-11-17 13:54:58 +00:00
github-openapi-bot
f0d21eef26 Update OpenAPI Descriptions (#22906) 2021-11-17 09:50:30 +00:00
github-openapi-bot
01808cf493 Update OpenAPI Descriptions 2021-11-17 09:08:30 +00:00
Mike Surowiec
9952744db2 fix: certain articles not correctly identified as having platform specific content (#22887) 2021-11-16 22:39:09 +00:00
Peter Bengtsson
5760b8512d make FailBot unit tests independent of env (#22871)
Part of #1229
2021-11-16 20:40:08 +00:00
Peter Bengtsson
5d080b74e0 Search with and on title first and favor that more (#22730)
* search improvements

* expose search result score on debug=1 qs (#22452)

* Search index improvements (#22428)

* concatenate headings for search ranking (#22445)

* search index improvements

* update index

* add data-search property used to create search records

* direct match title and normalize results to one per article

* the search index is getting huge

* add chinese lang, intro, and boost

* create a article level record with no heading for each article

* remove chinese language and exact match, boost breadcrumbs

* break out debug mode into separate branch

* break adding chinese out into another branch

* one record per article remove limits

* revert added spaces

* revert adding property on article page

* concatenate headings for search ranking

* remove slug property, fix test

* update record format in tests

* revert adding this property back

* scrape article-body not contents

* adding heading property to tests

* add headings to content property

* Update script/search/parse-page-sections-into-records.js

Co-authored-by: Peter Bengtsson <peterbe@github.com>

* Update script/search/parse-page-sections-into-records.js

Co-authored-by: Peter Bengtsson <peterbe@github.com>

Co-authored-by: Peter Bengtsson <peterbe@github.com>

* search by popularity (#22496)

* search by popularity

* adjust factors based on length of query and normalize Lunr score

* Apply suggestions from code review

Co-authored-by: Rachael Sewell <rachmari@github.com>

Co-authored-by: Rachael Sewell <rachmari@github.com>

* turn html into text with appropriate spaces (#22528)

* turn HTML into text with appropriate spaces

Part of #1141

* fix unit test

* improve tests

* small refactor

* slice the search results .content (#22514)

* search by popularity

* adjust factors based on length of query and normalize Lunr score

* slice the search result .content

Part of #1142

* Update lib/search/lunr-search.js

Co-authored-by: Rachael Sewell <rachmari@github.com>

Co-authored-by: Rachael Sewell <rachmari@github.com>

* truncate translated search index records (#22475)

* truncate translated search index records

* page entire page object

* revert search indexes

* try reverting search indexes again...

* out of sync with main in parent branch so reverting last commit again

* rever deleted indexes

* remove debug lines

* correct package-lock.json

* slice content string better (#22586)

Part of #1149

* include home pages in the search (#22568)

* Search remove hyphen as token (#22584)

* slice better when not present in content (#22672)

* fix missing search breadcrumbs (#22681)

* fix missing search breadcrumbs

* hopefully fix tests

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* Highlight based on combined matchData (#22692)

* highlight based on combined matchData

* refactoring

* remove results when lang or version changes (#22697)

* search with AND on title first and favor that more

* commented out code

* Update lib/search/lunr-search.js

* only apply the wildcard to the title search if the last word is short

Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-11-16 20:22:09 +00:00
Peter Bengtsson
b1bbafef70 use a smart got() retry in failbot (#22867)
Part of #1225
2021-11-16 19:46:20 +00:00
GitHub Actions
f43957f6ea update search indexes 2021-11-16 18:02:02 +00:00
Rachael Sewell
4cab1e7bc9 stop gap for open redirect (#22839) 2021-11-16 17:48:12 +00:00
Octomerger Bot
1066e91d05 Branch was updated using the 'autoupdate branch' Actions workflow. 2021-11-16 11:49:04 -05: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
rachmari
0afe1a6bf7 Action ran graphql script"update-files" 2021-11-16 16:39:27 +00:00
github-openapi-bot
faa20aee57 Update OpenAPI Descriptions 2021-11-16 10:23:18 +00:00
GitHub Actions
c2e558957f update search indexes 2021-11-16 10:00:03 +00:00
rachmari
34a762dbcc 🤖 ran script/update-enterprise-dates.js 2021-11-16 02:45:41 +00:00
GitHub Actions
7056a436b8 update search indexes 2021-11-16 02:13:01 +00:00
Peter Bengtsson
fab5bef972 Avoid an infinite FailBot.report() loop (#22837)
* Avoid an infinite FailBot.report() loop

Part of #1221

* Update middleware/events.js

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-11-16 01:05:03 +00:00
GitHub Actions
857bffa76e update search indexes 2021-11-15 18:06:24 +00:00
github-openapi-bot
fdf6ff03b0 Merge pull request #22823 from github/openapi-update-c9eaa42243c79c3cc71745e015da3073851378001a517d197607b7333f62230b
Update OpenAPI Descriptions
2021-11-15 11:25:01 +00:00
GitHub Actions
63599e43d6 update search indexes 2021-11-15 10:02:58 +00:00
Mike Surowiec
6a96293319 fix: node-fetch was throwing error when auth was in url (#22821) 2021-11-15 03:54:10 -06:00
Lucas Costi
10ff422248 Change the copy code button to the copy octicon (#22769)
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2021-11-15 02:33:59 +00:00
GitHub Actions
369a7cb765 update search indexes 2021-11-15 02:25:24 +00:00
GitHub Actions
f6313dec22 update search indexes 2021-11-14 18:07:11 +00:00
GitHub Actions
57d04b032f update search indexes 2021-11-14 09:53:49 +00:00
GitHub Actions
894523b380 update search indexes 2021-11-14 02:21:18 +00:00
GitHub Actions
04d213858b update search indexes 2021-11-13 18:05:59 +00:00
Peter Bengtsson
4b59dfd863 Search results content HTML is not escaped (#22782)
Part of #1207
2021-11-13 13:05:06 -05:00
GitHub Actions
dfa9ed4b96 update search indexes 2021-11-13 09:57:33 +00:00
GitHub Actions
c4c15956fa update search indexes 2021-11-13 02:19:19 +00:00
github-openapi-bot
deb4ae7007 Update OpenAPI Descriptions (#22807)
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
2021-11-12 20:48:36 +00:00
GitHub Actions
ddccebc852 update search indexes 2021-11-12 18:12:26 +00:00
github-openapi-bot
2fe9a34db3 Update OpenAPI Descriptions (#22767)
* Update OpenAPI Descriptions

* Add decorated OpenAPI schema files

Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
2021-11-12 14:54:25 +00:00
Mike Surowiec
7310fc998a Refactor display-platform-specific-content (#22665)
* refactor display-platform-specific-content

* update PlatformPicker tests and cleanup
2021-11-12 14:40:35 +00:00
GitHub Actions
6ca01eab65 update search indexes 2021-11-12 10:01:46 +00:00