1
0
mirror of synced 2025-12-23 03:44:00 -05:00
Commit Graph

471 Commits

Author SHA1 Message Date
Peter Bengtsson
b685b6fda7 don't need disk caching for site data (#26333)
* reinstate

* start server manually

* routing tests too

* skip more

* sleep more and fail if not 200

* use e2etest for content/ too

* automatically start server for jest

* does this work?

* feedbacked

* rename things

* getting it to work

* add dev dependency

* install the right version

* don't need to start that

* fix package lock

* update readme about it

* feedbacked

* don't need disk caching for site-data
2022-03-19 16:05:27 +00:00
Peter Bengtsson
4fcd3ae25f automatically start server for jest (#26206)
* reinstate

* start server manually

* routing tests too

* skip more

* sleep more and fail if not 200

* use e2etest for content/ too

* automatically start server for jest

* does this work?

* feedbacked

* rename things

* getting it to work

* add dev dependency

* install the right version

* don't need to start that

* fix package lock

* update readme about it

* feedbacked
2022-03-18 21:46:07 +00:00
Peter Bengtsson
3d298dd88d CLI tool to rename file or tree (#25306)
* CLI tool to rename file or tree

* it works

* progress

* progress

* wip

* wip

* wip

* debugging

* fixed

* remove console logging

* add support for also updating learning-tracks

* cope with the 'children' key in the root content/index.md unicorn

* update childGroups too

* guardrails

* refactor

* tidying up arguments

* refactored for single files

* nicer error in pre-validation of the first file argument

* regression fix

* fix for moving directories

* delete lib/redirects/.redirects-cache.json if present
2022-03-18 20:44:43 +00:00
Grace Park
2c8713037d Move deploy keys from deployments to keys in rest pages (#26166)
* move deploy keys from deployments to keys in rest pages

* move minitocs above intro

* Update content/rest/reference/keys.md

Co-authored-by: Sarah Edwards <skedwards88@github.com>

* add to banner, add redirects from deployments

* remove deploy keys from deployments intro

* update data/reusables name

* update - to _

* update script and add redirects for subcategories turned categories

Co-authored-by: Sarah Edwards <skedwards88@github.com>
2022-03-17 17:25:12 +00: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
Rachael Sewell
9fd4fe0a6c remove prerendered response rest docs (#25652) 2022-03-04 21:24:46 +00:00
Rachael Sewell
0fcf31cdc3 Support OpenAPI 3.1 (#25710) 2022-03-03 05:51:25 +00:00
Rachael Sewell
2ade7d8489 reactify rest pages (#25005) 2022-02-28 18:30:54 +00:00
Robert Sese
f48d536bbf Fix management console API URLs (#25562)
* No /api/v3 for mgmt console operations

* Add updated decorated files
2022-02-24 22:51:01 +00:00
dependabot[bot]
619ce22bab Bump @graphql-inspector/core from 2.9.0 to 3.1.1 (#25384) 2022-02-22 23:08:35 +00:00
Lucas Costi
e6af9ae1e6 Remove Actions REST enterprise subcategory (moved to Actions page) (#25065)
Co-authored-by: Rachael Sewell <rachmari@github.com>
2022-02-17 15:18:07 +10:00
Peter Bengtsson
53796d44ac make octicon search svgs cached longer (#25421)
* make octicon search svgs cached longer

* not an orphan exception
2022-02-16 17:11:43 +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
Mike Surowiec
624581e527 Remove most of Heroku references (#25208)
* remove most of heroku references

* remove more stuff

* update codeowners
2022-02-10 17:36:07 -06:00
Peter Bengtsson
9e2cb3b03e remove update-short-titles-from-csv.js (#25129) 2022-02-08 21:05:05 +00:00
Peter Bengtsson
a0af48149e delete old deploy.js script (#24862) 2022-02-08 16:11:11 +00:00
Peter Bengtsson
6361591c45 serve a /favicon.ico (#24935)
* serve a /favicon.ico

* fix exception

* avoid res.sendFile() bcause CodeQL is worried
2022-02-03 00:11:59 +00:00
dependabot[bot]
a02a4355e3 Bump url-template from 2.0.8 to 3.0.0 (#24889)
* Bump url-template from 2.0.8 to 3.0.0

Bumps [url-template](https://github.com/bramstein/url-template) from 2.0.8 to 3.0.0.
- [Release notes](https://github.com/bramstein/url-template/releases)
- [Commits](https://github.com/bramstein/url-template/compare/v2.0.8...v3.0.0)

---
updated-dependencies:
- dependency-name: url-template
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* No more default export

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Robert Sese <rsese@github.com>
Co-authored-by: Robert Sese <robert.sese@gmail.com>
2022-02-02 22:27:30 +00:00
Peter Bengtsson
bd9d85ed0f remove need for 'count-array-values' (#24867) 2022-02-01 21:27:47 +00:00
Peter Bengtsson
53afd39a13 mention about false positives (#24864) 2022-02-01 16:33:49 +00:00
Peter Bengtsson
6efd78b0ac move 'csv-parse' to optional dependencies (#24852) 2022-02-01 12:45:30 +00:00
Peter Bengtsson
bb67c2a6f5 move 'bottleneck' to optional dependencies (#24829) 2022-01-31 18:30:38 +00:00
Rachael Sewell
ef4dee2e7d Revert "Revert "rest/reference/repos#statuses redirect"" (#24559) 2022-01-27 22:09:20 +00:00
Peter Bengtsson
3c579b410c delete customRanking (#24659) 2022-01-27 13:02:13 +00:00
Peter Bengtsson
7844ad4740 move 'image-size' to optional dependencies (#24670) 2022-01-26 19:50:01 +00:00
Peter Bengtsson
5f3036df69 shut down the old internal link check CI scripts (#23694) 2022-01-26 19:22:59 +00:00
Peter Bengtsson
2832e4f0f0 move 'website-scraper' to optional dependencies (#24651) 2022-01-26 16:50:13 +00:00
Robert Sese
c02a5ec9b3 Render the operation response description Markdown (#24466)
* Render the operation description Markdown

* Add updated decorated files
2022-01-24 20:11:40 +00:00
Peter Bengtsson
96e16d7ee6 sleep longer and more when code searching (#24385)
* sleep longer and more when code searching

* exponential
2022-01-18 20:08:52 +00:00
James M. Greene
e5d9186ed6 Allow rendered-content-link-checker script to be given a list of zero files (#24290)
#docs-friction
2022-01-13 21:53:16 +00:00
James M. Greene
a83f39beb2 Prevent Link Checker from erring on long file lists (#24269)
* Add '--list' parameter to rendered-content-link-checker script

* Utilize trilom/file-changes-action output files and pass to rendered-content-link-checker script

* Rename job to unique name

* Correct module path for import

* Move import into local imports section

* Dump the contents of the file listing

* Fix typo
2022-01-13 12:46:44 +00:00
Ryosuke Nakayama
e1a64337d3 Fix render translation test (#24235) 2022-01-12 13:26:58 +00:00
Ramya Parimi
ec6d783bb5 Update README.md (#24203)
very -> every
2022-01-11 10:46:03 -05:00
Ramya Parimi
738456c5b7 Revert "Update README.md"
This reverts commit 28f0d8c46e.
2022-01-11 09:20:30 -06:00
Ramya Parimi
28f0d8c46e Update README.md 2022-01-11 09:04:15 -06:00
James M. Greene
bb58be2d50 Partial revert of PR #24176 to fix lint errors (#24196) 2022-01-10 22:30:25 -06:00
Peter Bengtsson
4406fd9834 treat list of files as space separated (#24176)
* treat list of files as space separated

* debuggnig

* debuggnig

* better

* test now

* cleanup

* all cleanups

* mention feature request on the action
2022-01-11 02:58:45 +00: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
Rachael Sewell
a340162d84 reorganize repository apis (#23728)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-01-11 11:53:12 +10:00
dependabot[bot]
67bd87585e Bump linkinator from 2.16.2 to 3.0.3 (#24014) 2022-01-07 15:24:06 -08:00
James M. Greene
be4249b57c Remove the concept of "undeployment" as a part of the PR deployment lifecycle (#23731)
* Update remove-stale-staging-resources workflow to completely replace undeploy workflow
* Delete the staging-undeploy-pr workflow file
* Delete all undeployment scripts and logic
* Remove all references to the automated-block-deploy label used for undeployment
* Simplify staging cross-workflow concurrency needs
2022-01-06 16:27:48 +00:00
Robert Sese
9234921dca Fix server URL for repos/upload-release-asset (#23838)
* Fix server URL for repos/upload-release-asset

* Add updated decorated file
2022-01-05 14:58:00 -06:00
Peter Bengtsson
26d2c5438a Check for orphaned assets in CI (#24074) 2022-01-05 16:26:45 +00:00
Peter Bengtsson
3a8c8c4ba3 retract deletion of search-XX.svg assets (#24075) 2022-01-05 16:22:12 +00:00
Mike Surowiec
cfbc6f694f remove await-sleep, less reliant on external pkgs (#24033) 2022-01-04 21:06:04 +00:00
Peter Bengtsson
47763c5ca5 Script to find orphaned assets (#23567)
* script/find-orphaned-assets.mjs to list orphan images

* better filtering
2022-01-04 18:38:38 +00:00
Rachael Sewell
45f1a41e79 prerender graphql mutations page (#23757) 2021-12-15 12:28:39 -08:00
Peter Bengtsson
f68eb74d90 Make a dedicated, fast, workflow just for docs-internal only (#23289)
* Make a dedicated, fast, workflow just for docs-internal only

Part of #1297

* make staging-build-pr only for github/docs

* prune later

* make it louder and clearer about disabling workflows

* does it merge?

* typo

* rename ref

* rename

* early access should be good to go

* far from perfect

* start with that

* gzip

* rearrange

* html_url

* correction of actions/checkout sha

* correction of actions/setup-node sha

* quote

* ooops

* actually deploy

* move @octokit/rest to dependencies

* await-sleep hack

* reinstall npm

* typo

* CONTEXT_NAME

* deployments:write permission

* pull-requests:read permission

* actions:read and statuses:write permissions

* private repo mention exception

* it's called github.run_id

* Apply suggestions from code review

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

* make CONTEXT_NAME optional (if it works)

* comment out CONTEXT_NAME

* simplifying

* going to run on on.pull_request instead

* remove comment

* only the 2-phase staging deploy on github/docs

* better if statement on label check

* refactor of staging-deploy script

* switch to npm install to get the deDependencies back

* using --only=dev

* updating comments

* event_name

* not on pushes to main

* add staging-commit-status-success

* testing testing

* fix linting error

* Remove other docs-internal references from staging-deploy-pr.yml

* Cleaning up new staging-commit-status-success script and usage

* Remove unnecessary environment refs

* Remove unnecessary fallback

Since the only event trigger is pull_request now instead of also push

* Remove unnecessary env vars from workflow

* docs-internal or docs but not both

* Don't provide unnecessary environment refs

* remove now moot exception

* setting it to pull_request_target

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-12-14 08:57:54 -05:00
Peter Bengtsson
ae3dadfc66 cache asset images more aggressively (#23553)
* cache asset images more aggressively

* more careful about which gets the manual surrogate key

* fix rendered-content-link-checker script too

* feedbacked
2021-12-10 13:01:48 +00:00
Peter Bengtsson
0142b04d03 use Promise.all() on iterator of async functions (#23520) 2021-12-09 16:24:24 +00:00